![]() |
IPv6 Implementation Guide, Cisco IOS XE Release 3S
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Implementing ADSL for IPv6
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contents
Implementing ADSL for IPv6Last Updated: August 1, 2012
This module describes the implementation of prefix pools, the authorization, authentication, and accounting (AAA) server, and per-user Remote Access Dial-In User Service (RADIUS) attributes in IPv6. It also describes the deployment of IPv6 in Digital Subscriber Line (DSL) and dial-access environments. Asymmetric Digital Subscriber Line (ADSL) provides the extensions that make large-scale access possible for IPv6 environments, including IPv6 RADIUS attributes, stateless address configuration on Point-to-Point Protocol (PPP) links, per-user static routes, and access control lists (ACLs). Finding Feature InformationYour software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required. Restrictions for Implementing ADSL for IPv6ADSL deployment is available for interfaces with PPP encapsulation enabled, including PPP over ATM (PPPoA), PPP over Ethernet (PPPoE, PPPoEoVLAN, PPPoEoQinQ) and PPPoEoA. Information About Implementing ADSL for IPv6Address Assignment for IPv6A Cisco router configured with IPv6 will advertise its IPv6 prefixes on one or more interfaces, allowing IPv6 clients to automatically configure their addresses. In IPv6, address assignment is performed at the network layer, in contrast to IPv4 where a number of functions are handled in the PPP layer. The only function handled in IPv6 Control Protocol is the negotiation of a unique interface identifier. Everything else, including DNS server discovery, is done within the IPv6 protocol itself. In IPv6, ISPs assign long-lived prefixes to users, which has some impact on the routing system. In typical IPv4 environments, each network access server (NAS) has a pool of 24-bit addresses and users get addresses from this pool when dialing in. If a user dials another POP or is connected to another NAS at the same POP, a different IPv4 address is assigned. Addresses for IPv6 are assigned by the following methods. Stateless Address AutoconfigurationAssigning addresses using the stateless address autoconfiguration method can be used only to assign 64-bit prefixes. Each user is assigned a 64-bit prefix, which is advertised to the user in a router advertisement (RA). All addresses are automatically configured based on the assigned prefix. A typical scenario is to assign a separate 64-bit prefix per user; however, users can also be assigned a prefix from a shared pool of addresses. Using the shared pool limits addresses to only one address per user. This method works best for the cases where the customer provider edge (CPE) router is a single PC or is limited to only one subnet. If the user has multiple subnets, Layer 2 (L2) bridging, multilink subnets or proxy RA can be used. The prefix advertised in the RA can come from an authorization, authentication, and accounting (AAA) server, which also provides the prefix attribute, can be manually configured, or can be allocated from a prefix pool. The Framed-Interface-Id AAA attribute influences the choice of interface identifier for peers and, in combination with the prefix, the complete IPv6 address can be determined. Prefix DelegationAn IPv6 prefix delegating router selects IPv6 prefixes to be assigned to a requesting router upon receiving a request from the client. The delegating router might select prefixes for a requesting router in the following ways:
Contrary to IPv4 address assignment, an IPv6 user will be assigned a prefix, not a single address. Typically the Internet service provider (ISP) assigns a 64- or 48-bit prefix. Accounting Start and Stop MessagesPPP calls a registry to allow DHCPv6 to append the delegated prefix information to accounting start and stop messages. Forced Release of a BindingThe DHCPv6 server maintains an automatic binding table in memory to track the assignment of some configuration parameters, such as prefixes between the server and its clients. The automatic bindings can be stored permanently in the database agent, which can be, for example, a remote TFTP server or local NVRAM file system. DHCPv6 invokes a routine when the virtual interface used by PPP terminates. This routine automatically releases any delegated prefix bindings associated with the PPP virtual interface that is being terminated. When a PPP virtual interface terminates, the routine runs through the full table of DHCPv6 bindings checking for the matching interface. Because PPP uses a virtual interface, this subroutine clears any related lease information when the PPP connection terminates. AAA over IPv6Vendor-specific attributes (VSAs) are used to support AAA over IPv6. Cisco VSAs are inacl, outacl, prefix, and route. You can configure prefix pools and pool names by using the AAA protocol. Customers can deploy an IPv6 RADIUS server or a TACACS+ server to communicate with Cisco devices. RADIUS over IPv6The following RADIUS attributes, as described in RFC 3162, are supported for IPv6: The following RADIUS attributes are also supported for IPv6:
The attributes listed above can be configured on a RADIUS server and downloaded to access servers, where they can be applied to access connections.
Prerequisites for Using AAA Attributes for IPv6AAA attributes for IPv6 are compliant with RFC 3162 and require a RADIUS server capable of supporting RFC 3162. RADIUS Per-User Attributes for Virtual Access in IPv6 EnvironmentsThe following IPv6 RADIUS attributes are supported for virtual access and can be used as attribute-value (AV) pairs:
Delegated-IPv6-PrefixThe Delegated-IPv6-Prefix attribute indicates an IPv6 prefix to be delegated to a user for use in a network. This attribute is used during DHCP prefix delegation between a RADIUS server and a delegating device. A Network Access Server (NAS) that hosts a DHCP Version 6 (DHCPv6) server can act as a delegating device. The following example shows how to use the Delegated-IPv6-Prefix attribute: ipv6:delegated-prefix=2001:DB8::/64 Delegated-IPv6-Prefix-PoolThe Delegated-IPv6-Prefix-Pool attribute indicates the name of a prefix pool from which a prefix is selected and delegated to a device. Prefix delegation is a DHCPv6 option for delegating IPv6 prefixes. Prefix delegation involves a delegating device that selects a prefix and assigns it on a temporary basis to a requesting device. A delegating device uses many strategies to choose a prefix. One method is to choose a prefix from a prefix pool with a name that is defined locally on a device. The Delegated-IPv6-Prefix-Pool attribute indicates the name of an assigned prefix pool. A RADIUS server uses this attribute to communicate the name of a prefix pool to a NAS hosting a DHCPv6 server and acting as a delegating device. You may use DHCPv6 prefix delegation along with ICMPv6 stateless address autoconfiguration (SLAAC) on a network. In this case, both the Delegated-IPv6-Prefix-Pool attribute and the Framed-IPv6-Pool attribute may be included within the same packet. To avoid ambiguity, the Delegated-IPv6-Prefix-Pool attribute should be restricted to the authorization and accounting of prefix pools used in DHCPv6 delegation, and the Framed-IPv6-Pool attribute should be used for the authorization and accounting of prefix pools used in SLAAC. The following example shows how an address prefix is selected from a pool named pool1. The prefix pool pool1 is downloaded to a delegating device from a RADIUS server by using the Delegated-IPv6-Prefix-Pool attribute. The device then selects the address prefix 2001:DB8::/64 from this prefix pool. Cisco:Cisco-AVpair = "ipv6:delegated-ipv6-pool = pool1" ! ipv6 dhcp pool pool1 address prefix 2001:DB8::/64 ! DNS-Server-IPv6-AddressThe DNS-Server-IPv6-Address attribute indicates the IPv6 address of a Domain Name System (DNS) server. A DHCPv6 server can configure a host with the IPv6 address of a DNS server. The IPv6 address of the DNS server can also be conveyed to the host using router advertisement messages from ICMPv6 devices. A NAS may host a DHCPv6 server to handle DHCPv6 requests from hosts. The NAS may also act as a device that provides router advertisement messages. Therefore, this attribute is used to provide the NAS with the IPv6 address of the DNS server. If a NAS has to announce more than one recursive DNS server to a host, this attribute can be included multiple times in Access-Accept packets sent from the NAS to the host. The following example shows how you can define the IPv6 address of a DNS server by using the DNS-Server-IPv6-Address attribute: Cisco:Cisco-AVpair = "ipv6:ipv6-dns-servers-addr=2001:DB8::" Framed-Interface-IdThe Framed-Interface-Id attribute indicates an IPv6 interface identifier to be configured for a user. This attribute is used during IPv6 Control Protocol (IPv6CP) negotiations of the Interface-Identifier option. If negotiations are successful, the NAS uses this attribute to communicate a preferred IPv6 interface identifier to the RADIUS server by using Access-Request packets. This attribute may also be used in Access-Accept packets. Framed-IPv6-PoolThe Framed-IPv6-Pool attribute indicates the name of a pool that is used to assign an IPv6 prefix to a user. This pool should be either defined locally on a device or defined on a RADIUS server from where pools can be downloaded. Framed-IPv6-PrefixThe Framed-IPv6-Prefix attribute indicates an IPv6 prefix (and a corresponding route) to be configured for a user. So this attribute performs the same function as a Cisco VSA and is used for virtual access only. A NAS uses this attribute to communicate a preferred IPv6 prefix to a RADIUS server by using Access-Request packets. This attribute may also be used in Access-Accept packets and can appear multiple times in these packets. The NAS creates a corresponding route for the prefix. This attribute is used by a user to specify which prefixes to advertise in router advertisement messages of the Neighbor Discovery Protocol. This attribute can also be used for DHCPv6 prefix delegation, and a separate profile must be created for a user on the RADIUS server. The username associated with this separate profile has the suffix "-dhcpv6". The Framed-IPv6-Prefix attribute is treated differently in this separate profile and the regular profile of a user. If a NAS needs to send a prefix through router advertisement messages, the prefix is placed in the Framed-IPv6-Prefix attribute of the regular profile of the user. If a NAS needs to delegate a prefix to the network of a remote user, the prefix is placed in the Framed-IPv6-Prefix attribute of the separate profile of the user.
Framed-IPv6-RouteThe Framed-IPv6-Route attribute indicates the routing information to be configured for a user on a NAS. This attribute performs the same function as a Cisco VSA. The value of the attribute is a string and is specified by using the ipv6 route command. IPv6 ACLThe IPv6 ACL attribute is used to specify a complete IPv6 access list. The unique name of an access list is generated automatically. An access list is removed when the respective user logs out. The previous access list on the interface is then reapplied. The inacl and outacl attributes enable you to specify an existing access list configured on a device. The following example shows how to define an access list identified with number 1: cisco-avpair = "ipv6:inacl#1=permit 2001:DB8:cc00:1::/48", cisco-avpair = "ipv6:outacl#1=deny 2001:DB8::/10", IPv6_DNS_ServersThe IPv6_DNS_Servers attribute is used to send up to two DNS server addresses to the DHCPv6 server. The DNS server addresses are saved in the interface DHCPv6 subblock and override other configurations in the DHCPv6 pool. This attribute is also included in attributes returned for AAA start and stop notifications. IPv6 PoolThe IPv6 Pool attribute extends the IPv4 address pool attribute to support the IPv6 protocol for RADIUS authentication. This attribute specifies the name of a local pool on a NAS from which a prefix is chosen and used whenever PPP is configured and the protocol is specified as IPv6. The address pool works with local pooling and specifies the name of a local pool that is preconfigured on the NAS. IPv6 Prefix#The IPv6 Prefix# attribute indicates which prefixes to advertise in router advertisement messages of the Neighbor Discovery Protocol. When this attribute is used, a corresponding route (marked as a per-user static route) is installed in the routing information base (RIB) tables for a given prefix. The following example shows how to specify which prefixes to advertise: cisco-avpair = "ipv6:prefix#1=2001:DB8::/64", cisco-avpair = "ipv6:prefix#2=2001:DB8::/64", IPv6 RouteThe IPv6 Route attribute is used to specify a static route for a user. A static route is appropriate when Cisco software cannot dynamically build a route to the destination. See the ipv6 route command for more information about building static routes. The following example shows how to use the IPv6 Route attribute to define a static route: cisco-avpair = "ipv6:route#1=2001:DB8:cc00:1::/48", cisco-avpair = "ipv6:route#2=2001:DB8:cc00:2::/48", PPP IPv6 Accounting Delay EnhancementsThis feature enhances accounting records for dual-stack networks. It ensures that a unique IPv6 address is assigned to PPP IPv6 and IPv4 sessions for IP addresses that are received from RADIUS. When this feature is enabled, it automatically creates a database to hold new incoming access-accept responses from RADIUS. The access-accept responses in this database are then checked for duplicates of a specific set of attributes. If the attributes are already present in the database, then the RADIUS server has already offered them to an existing session; therefore, the new session is immediately removed and a stop-record message sent. If none of the specific set of attributes are in the database, they are immediately added to the database, and the session proceeds normally. When the session is removed, the entries in the database are also removed. The following RADIUS attributes are tracked in the database and checked at access-accept time:
The attributes are available as standard RFC-defined binary format, or as Cisco VSAs. (The Delegated-IPv6-Prefix attribute currently does not have a VSA definition in AAA.) TACACS+ Over an IPv6 TransportAn IPv6 server can be configured to use TACACS+. Both IPv6 and IPv4 servers can be configured to use TACACS+ using a name instead of an IPv4 or IPv6 address. IPv6 Prefix PoolsThe function of prefix pools in IPv6 is similar to that of address pools in IPv4. The main difference is that IPv6 assigns prefixes rather than single addresses. As in IPv4, a pool or a pool definition in IPv6 can be configured locally or it can be retrieved from an AAA server. Overlapping membership between pools is not permitted. Once a pool is configured, it cannot be changed. If you change the configuration, the pool will be removed and re-created. All prefixes previously allocated will be freed. Prefix pools can be defined so that each user is allocated a 64-bit prefix or so that a single prefix is shared among several users. In a shared prefix pool, each user may receive only one address from the pool. Broadband IPv6 Counter Support at LNSThis feature provides support for broadband PPP IPv6 sessions at the layer 2 tunneling protocol (L2TP) network server (LNS). The sessions are forwarded by L2TP access concentrator (LAC) using layer 2 tunneling protocol L2TP over IPv6. This feature is enabled automatically when the user configures LNS and enables IPv6. How to Configure ADSL in IPv6
Configuring the NAS
SUMMARY STEPS
DETAILED STEPS Enabling the Sending of Accounting Start and Stop MessagesSUMMARY STEPS
DETAILED STEPS Forcing Release of Prefix BindingsPerform this task to release any delegated prefix bindings associated with the PPP virtual interface that is being terminated. DETAILED STEPS Configuring DHCPv6 AAA Options
SUMMARY STEPS
DETAILED STEPS Configuring PPP IPv6 Accounting Delay EnhancementsSUMMARY STEPS
DETAILED STEPS Configuring TACACS+ over IPv6
Configuring the TACACS+ Server over IPv6SUMMARY STEPS
DETAILED STEPS Specifying the Source Address in TACACS+ PacketsSUMMARY STEPS
DETAILED STEPS Configuring TACACS+ Server Group OptionsSUMMARY STEPS
DETAILED STEPS Verifying Broadband IPv6 Counter Support at the LNSThis feature is enabled automatically when the user configures LNS and enables IPv6. To verify information about this feature, you can use any or all of the following optional commands as needed. DETAILED STEPS Configuration Examples for Implementing ADSL for IPv6
Example NAS ConfigurationThis configuration for the ISP NAS shows the configuration that supports access from the remote CE router. hostname hostname1 aaa new-model aaa authentication ppp default if-needed group radius aaa authorization network default aaa accounting network default start-stop group radius aaa accounting send counters ipv6 interface virtual-template 1 ip unnumbered loopback interface1 ipv6 address autoconfig no ipv6 nd ra suppress ppp authentication chap ppp accounting list1 no snmp trap link-status no logging event link-status exit aaa group service radius group1 server-private 10.1.1.1 timeout 5 retransmit 3 key xyz radius-server host 192.0.2.176 test username test1 auth-port 1645 acct-port 1646 radius-server vsa send accounting radius-server vsa send authentication Example RADIUS ConfigurationThis RADIUS configuration shows the definition of AV pairs to establish the static routes.
campus1 Auth-Type = Local, Password = "mypassword"
User-Service-Type = Framed-User,
Framed-Protocol = PPP,
cisco-avpair = "ipv6:inacl#1=permit dead::/64 any",
cisco-avpair = "ipv6:route=library::/64",
cisco-avpair = "ipv6:route=cafe::/64",
cisco-avpair = "ipv6:prefix=library::/64 0 0 onlink autoconfig",
cisco-avpair = "ipv6:prefix=cafe::/64 0 0 onlink autoconfig",
cisco-avpair = "ip:route=10.0.0.0 255.0.0.0",
Examples: Verifying Broadband IPv6 Counter Support at the LNS
Example: show l2tp session CommandThe show l2tp session command used with the packets and ipv6keywords displays information about IPv6 packets and byte counts in an L2TP session.
Router# show l2tp session packets ipv6
L2TP Session Information Total tunnels 1 sessions 1 LocID RemID TunID Pkts-In Pkts-Out Bytes-In Bytes-Out 16791 53352 27723 30301740 30301742 20159754280 20523375360 Example: show l2tp tunnel CommandThe show l2tp tunnel command used with the packets and ipv6 keywords displays information about IPv6 packet statistics and byte counts in L2TP tunnels.
Router# show l2tp tunnel packets ipv6
L2TP Tunnel Information Total tunnels 1 sessions 1
LocTunID Pkts-In Pkts-Out Bytes-In Bytes-Out
27723 63060379 63060383 39400320490 40157045438
Example: show l2tun session CommandThe show l2tun session command used with the packetsand ipv6keywords displays information about IPv6 packet statistics and byte counts in an L2TUN session.
Router# show l2tun session packets ipv6
L2TP Session Information Total tunnels 1 sessions 1
LocID RemID TunID Pkts-In Pkts-Out Bytes-In Bytes-Out
16791 53352 27723 31120707 31120708 21285014938 21658462236
Example: show vpdn session CommandThe show vpdn session command used with the l2tp, packets, and ipv6keywords displays session information about IPv6 packet statistics and byte counts in an active layer 2 session for a VPDN.
Router# show vpdn session l2tp packets ipv6
L2TP Session Information Total tunnels 1 sessions 1
LocID RemID TunID Pkts-In Pkts-Out Bytes-In Bytes-Out
16791 53352 27723 35215536 35215538 22616342688 23038929320
Example: show vpdn tunnel CommandThe show vpdn tunnelcommand used with the l2tp, packets, and ipv6keywords displays session information about IPv6 packet statistics and byte counts in an active layer 2 tunnel for a VPDN.
Device# show vpdn tunnel l2tp packets ipv6
L2TP Tunnel Information Total tunnels 1 sessions 1
LocTunID Pkts-In Pkts-Out Bytes-In Bytes-Out
27723 61422447 61422451 37149801922 37886871686
Additional ReferencesRelated Documents
MIBsTechnical Assistance
Feature Information for Implementing ADSL for IPv6The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. © 2012 Cisco Systems, Inc. All rights reserved.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|