Feedback
|
Table Of Contents
Configuring the Managed IPv6 Layer 2 Tunnel Protocol Network Server
Prerequisites for Configuring the Managed IPv6 LNS
Restrictions for Configuring the Managed IPv6 LNS
Information About Configuring the Managed IPv6 LNS
How to Configure the Managed LNS
Configuring a Virtual Template Interface
Assigning a VRF via the RADIUS Server
Configuring the LNS to Initiate and Receive L2TP Traffic
Limiting the Number of Sessions per Tunnel
Configuring RADIUS Attribute Accept or Reject Lists
Configuring AAA Accounting Using Named Method Lists
Configuring the LNS for RADIUS Tunnel Authentication
Configuring RADIUS Tunnel Authentication Method Lists on the LNS
Configuring AAA Authentication Methods
Configuration Examples for the Managed IPv6 Layer 2 Tunnel Protocol Network Server
Example: Managed IPv6 LNS Configuration
Example: LNS Tunnel Accounting Configuration
Example: Verifying the User Profile on the RADIUS Server
Feature Information for Configuring Managed IPv6 Layer 2 Tunnel Protocol Network Server
Configuring the Managed IPv6 Layer 2 Tunnel Protocol Network Server
First Published: March 29, 2011Last Updated: June 24, 2011This document describes how to enable the Managed IPv6 Layer 2 Tunnel Protocol Network Server feature.
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see 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 for Configuring Managed IPv6 Layer 2 Tunnel Protocol Network Server" section.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Contents
•
Prerequisites for Configuring the Managed IPv6 LNS
•
Restrictions for Configuring the Managed IPv6 LNS
•
Information About Configuring the Managed IPv6 LNS
•
How to Configure the Managed LNS
•
Configuration Examples for the Managed IPv6 Layer 2 Tunnel Protocol Network Server
•
Feature Information for Configuring Managed IPv6 Layer 2 Tunnel Protocol Network Server
Prerequisites for Configuring the Managed IPv6 LNS
For the router to function as an LNS, you must enable Authentication, Authorization, and Accounting (AAA) on the Layer 2 Tunnel Protocol Network Server (LNS) and the Layer 2 Access Concentrator (LAC), by entering the aaa new-model global configuration command. For more information, see the "Authentication, Authorization, and Accounting" chapter in the Cisco IOS XE Security: Securing User Services Configuration Guide.
Restrictions for Configuring the Managed IPv6 LNS
Only PPP session termination into Virtual Routing and Forwarding (VRF)-lite is supported. PPP session termination into an Multiprotocol Label Switching (MPLS)-VPN is not supported.
Information About Configuring the Managed IPv6 LNS
L2TP Network Server
The router can function as an LNS. The LNS is a peer to the LAC and sits on one side of an L2TP tunnel. The LNS routes packets to and from the LAC and a destination network. When the router functions as an LNS, you can configure the router to terminate the PPP sessions and route the client IP packets onto the ISP or corporate network toward their final destination (see Figure 1). The router can use the Managed IPv6 LNS feature to terminate L2TP sessions from the LAC and place each session into the appropriate IPv6 VRF instance based on the VRF applied to the virtual template interface or alternatively, based on the VRF received for the user through AAA. The router then routes each session within the VRF to the destination network.
Figure 1 Terminating and Forwarding Sessions from the LAC
![]()
Tunnel Accounting
The tunnel accounting feature enhances AAA accounting by adding the ability to include tunnel-related statistics in the RADIUS information. Before you can collect tunnel usage information, you must configure the following attributes on the RADIUS server:
•
Acct-Tunnel-Connection—Specifies the identifier assigned to the tunnel session. This attribute and the Tunnel-Client-Endpoint and Tunnel-Server-Endpoint attributes provide a way to uniquely identify a tunnel session for auditing purposes.
•
Acct-Tunnel-Packets-Lost—Specifies the number of packets lost on a given link.
Table 1 describes the values for the Acct-Status-Type attribute that support tunnel accounting on the RADIUS server.
For more information about the RADIUS tunnel accounting attributes or the Acct-Status-Type values that support RADIUS tunnel accounting, see RFC 2867, RADIUS Accounting Modifications for Tunnel Protocol Support.
For information about RADIUS accounting attributes supported on the Cisco ASR 1000 Series Aggregation Services Routers, see the "RADIUS Attributes" chapter in the Cisco IOS XE Security Configuration Guide: Securing User Services.
For more information on configuring RADIUS, see your RADIUS user documentation.
How to Configure the Managed LNS
•
Configuring a VRF on the LNS (required)
•
Configuring a Virtual Template Interface (required)
•
Assigning a VRF via the RADIUS Server (optional)
•
Configuring the LNS to Initiate and Receive L2TP Traffic (required)
•
Limiting the Number of Sessions per Tunnel (optional)
•
Configuring RADIUS Attribute Accept or Reject Lists (optional)
•
Configuring AAA Accounting Using Named Method Lists (optional)
•
Configuring the LNS for RADIUS Tunnel Authentication (optional)
Configuring a VRF on the LNS
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
vrf definition vrf-name
4.
rd route-distinguisher
5.
address-family {ipv4 | ipv6}
6.
route-target {import | export | both} route-target-ext-community
7.
exit-address-family
8.
address-family {ipv4 | ipv6}
9.
route-target {import | export | both} route-target-ext-community
10.
end
11.
show ipv6 route vrf vrf-name
DETAILED STEPSConfiguring a Virtual Template Interface
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface virtual-template number
4.
vrf forwarding name
5.
ppp authentication chap
6.
end
7.
show interfaces virtual-access number [configuration]
8.
debug ppp chap
9.
debug ppp negotiation
10.
debug ppp negotiation chap
DETAILED STEPS
Assigning a VRF via the RADIUS Server
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
aaa authorization configuration method-name group group-name
4.
ipv6 dhcp pool poolname
5.
prefix-delegation aaa [method-list method-list]
6.
dns-server ipv6-address
7.
exit
8.
interface virtual-template number
9.
ipv6 nd prefix framed-ipv6-prefix
10.
ipv6 dhcp server pool-name rapid-commit
11.
end
DETAILED STEPS
Configuring the LNS to Initiate and Receive L2TP Traffic
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
vpdn enable
4.
vpdn-group group-name
5.
accept-dialin
6.
protocol 12tp
7.
virtual-template template-number
8.
exit
9.
terminate-from hostname hostname
10.
end
DETAILED STEPS
Limiting the Number of Sessions per Tunnel
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
vpdn-group group-name
4.
accept-dialin
5.
protocol 12tp
6.
virtual-template template-number
7.
exit
8.
terminate-from hostname host-name
9.
session-limit limit-number
10.
exit
DETAILED STEPS
Configuring RADIUS Attribute Accept or Reject Lists
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
aaa authentication ppp default group group-name
4.
aaa authorization network group group group-name
5.
aaa group server radius group-name
6.
server-private ip-address [acct-port port-number] [timeout seconds] [retransmit retries] [key string]
7.
authorization [accept | reject] list-name
8.
exit
9.
radius-server attribute list listname
10.
attribute value1 [value2 [value3...]]
11.
end
12.
show accounting
DETAILED STEPS
Configuring AAA Accounting Using Named Method Lists
Note
System accounting does not use named method lists. For system accounting you can define only the default method list. For more information, see the "Configuring Accounting" chapter in the
Cisco IOS XE Security Configuration Guide: Securing User Services.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
aaa accounting network list-name start-stop group radius
4.
line [aux | console | vty] [line-number]
5.
accounting {arap | commands level | connection | exec | resource} [default | list-name]
6.
end
7.
debug aaa accounting
DETAILED STEPS
Configuring the LNS for RADIUS Tunnel Authentication
Perform the following tasks to configure LNS for RADIUS Tunnel Authentication:
•
Configuring RADIUS Tunnel Authentication Method Lists on the LNS (required)
•
Configuring AAA Authentication Methods (required)
Note
Cisco ASR 1000 Series Aggregation Services Routers supports L2TP tunnel authorization. However, RADIUS does not provide attributes for such parameter values as L2TP tunnel timeouts, L2TP tunnel hello intervals, and L2TP tunnel receive window size. When the Cisco ASR 1000 Series Aggregation Services Router does not receive a RADIUS attribute for a parameter, the router uses the default value.
Configuring RADIUS Tunnel Authentication Method Lists on the LNS
To configure method lists on the LNS for RADIUS tunnel authentication, perform the following task.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
aaa authorization network list-name method1 [method2...]
4.
vpdn tunnel authorization network method-list-name
5.
vpdn tunnel authorization virtual-template vtemplate-number
6.
vpdn tunnel authorization password dummy-password
7.
end
8.
debug aaa authorization
DETAILED STEPSConfiguring AAA Authentication Methods
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
aaa new-model
4.
Configure RADIUS security protocol parameters.
5.
aaa authentication
6.
Apply the authentication to method lists to an interface.
7.
end
DETAILED STEPS
Step 1
enable
Step 2
configure terminal
Step 3
aaa new-model
Enter this command in global configuration mode to enable AAA.
Step 4
Configure RADIUS security protocol parameters. For more information about RADIUS, see the "Configuring RADIUS" chapter in the Cisco IOS XE Security Configuration Guide: Securing User Services.
Step 5
aaa authentication
Enter this command to define the authentication method lists.
Step 6
Apply the authentication method lists to an interface, a line, or a set of lines as required. For more information about authentication method lists, see the "Configuring Authentication" chapter in the Cisco IOS XE Security Configuration Guide: Securing User Services.
Step 7
end
Configuration Examples for the Managed IPv6 Layer 2 Tunnel Protocol Network Server
•
Example: Managed IPv6 LNS Configuration
•
Example: LNS Tunnel Accounting Configuration
•
Example: Verifying the User Profile on the RADIUS Server
Example: Managed IPv6 LNS Configuration
The following example shows how to configure Managed IPv6 LNS features on the router. In this example, the router terminates the tunnel from the LAC and associates the VRFs with the interfaces and the virtual template interfaces. This configuration also shows how to configure RADIUS attribute screening and AAA accounting for the VRFs.
!!vrf definition Mgmt-intf!address-family ipv4exit-address-family!address-family ipv6exit-address-family!vrf definition user_vrf1rd 1:1route-target export 1:1route-target import 1:1!address-family ipv6exit-address-family!logging buffered 10000000enable password lab!aaa new-model!!aaa group server radius radius_authen1server-private 10.1.1.2 acct-port 0 timeout 7 retransmit 3 key cisco1ip radius source-interface Loopback20000!aaa authentication login default noneaaa authentication ppp default group radius_authen1aaa authorization network default group radius_authen1aaa authorization configuration DHCPv6-PD group radius_authen1!!!!!aaa session-id commonaaa policy interface-config allow-subinterfaceppp hold-queue 80000clock timezone EST -5 0ip source-routeno ip gratuitous-arps!!!!!!!no ip domain lookupip host mcp-matrix 10.0.0.2ip host mcp-sun-2 10.0.0.2!!ipv6 unicast-routingipv6 dhcp binding track pppipv6 dhcp pool ipv6_dhcp_pool1prefix-delegation aaa method-list DHCPv6-PD!!!!multilink bundle-name authenticatedvpdn enable!vpdn-group VPDN_LNS1accept-dialinprotocol l2tpvirtual-template 1terminate-from hostname test_LAC1source-ip 10.0.0.2local name test_LNS1l2tp tunnel password 0 tunnel1l2tp tunnel receive-window 100l2tp tunnel timeout no-session 30l2tp tunnel retransmit retries 7l2tp tunnel retransmit timeout min 2!!no virtual-template snmp!!!!!!!!!username asifp1@test1 password 0 hello1!redundancynotification-timer 30000mode none!!!!!ip tftp source-interface GigabitEthernet 0!!!!!!!!interface Loopback1no ip address!interface Loopback20000ip address 209.165.202.131 255.255.255.224!interface GigabitEthernet1/1/0mac-address 8888.8888.8888no ip addressload-interval 30negotiation autohold-queue 4096 inhold-queue 4096 out!interface GigabitEthernet1/1/0.1encapsulation dot1Q 3ip address 209.165.202.132 255.255.255.224!interface GigabitEthernet1/1/1mac-address 4444.4444.4444no ip addressload-interval 30no negotiation autohold-queue 4096 inhold-queue 4096 out!interface GigabitEthernet1/1/1.1vrf forwarding user_vrf1encapsulation dot1Q 2ipv6 address 12::1/72!interface GigabitEthernet1/1/2no ip addressnegotiation auto!interface GigabitEthernet1/1/3no ip addressnegotiation auto!interface GigabitEthernet1/1/4no ip addressnegotiation auto!interface GigabitEthernet1/1/5no ip addressnegotiation auto!interface GigabitEthernet1/1/6no ip addressnegotiation auto!interface GigabitEthernet1/1/7description Connected to RADIUSip address 209.165.201.1 255.255.255.224negotiation auto!interface GigabitEthernet1/3/0no ip addressmedia-type sfpnegotiation auto!interface GigabitEthernet1/3/1no ip addressmedia-type sfpnegotiation auto!interface GigabitEthernet 0vrf forwarding Mgmt-intfip address 209.165.201.1 255.255.255.224negotiation auto!interface Virtual-Template 1no ip addressno logging event link-statusipv6 dhcp server ipv6_dhcp_pool1 rapid-commitkeepalive 30ppp mtu adaptiveppp authentication pap!ip default-gateway 10.1.0.5ip forward-protocol nd!no ip http serverno ip http secure-serverip route vrf Mgmt-intf 209.165.201.1 255.255.255.254 172.16.1.1ip route vrf Mgmt-intf 209.165.201.29 255.255.255.224 172.16.0.1!ip radius source-interface GigabitEthernet1/1/7logging esm configcdp runipv6 route vrf user_vrf1 ::/0 12::2!ipv6 neighbor 12::2 GigabitEthernet1/1/1.1 2222.2222.2222!!!control-plane!call admission limit 90!!!alias exec call show caller summalias exec caller show caller summalias exec palt show platalias exec plat show platformalias exec evsi sho plat hard cpp act feat ess stat!line con 0exec-timeout 0 0stopbits 1line vty 0 4exec-timeout 0 0password password1!exception data-corruption buffer truncateendExample: LNS Tunnel Accounting Configuration
The following example shows how to configure the LNS to send tunnel accounting records to the RADIUS server:
aaa new-model!!aaa accounting network m1 start-stop group radiusaaa accounting network m2 stop-only group radiusaaa session-id commonenable secret 5 $1$ftf.$wE6Q5Yv6hmQiwL9pizPCg1!username ENT_LNS password 0 tunnelpassusername user1@example.com password 0 labusername user2@example.com password 0 labspe 1/0 1/7firmware location system:/ucode/mica_port_firmwarespe 2/0 2/9firmware location system:/ucode/mica_port_firmware!!resource-pool disableclock timezone est 2!ip subnet-zerono ip domain-lookupip host CALLGEN-SECURITY-V2 10.24.80.28 10.47.0.0ip host dirt 172.16.1.129!vpdn enablevpdn tunnel accounting network m1vpdn session accounting network m1!vpdn-group 1accept-dialinprotocol l2tpvirtual-template 1terminate-from hostname ISP_LAClocal name ENT_LNS!isdn switch-type primary-5ess!!fax interface-type modemmta receive maximum-recipients 0!interface Loopback 0ip address 172.16.0.101 255.255.255.0!interface Loopback 1ip address 192.168.0.101 255.255.255.0!interface Ethernet 0ip address 10.1.26.71 255.255.255.0no ip mroute-cacheno cdp enable!interface virtual-template 1ip unnumbered Loopback 0peer default ip address pool vpdn-pool1ppp authentication chap!interface virtual-template 2ip unnumbered Loopback1peer default ip address pool vpdn-pool2ppp authentication chap!interface fastethernet 0no ip addressno ip mroute-cacheshutdownduplex autospeed autono cdp enable!ip local pool vpdn-pool1 172.16.5.1 172.16.128.100ip local pool vpdn-pool2 10.0.0.1 10.0.0.100ip default-gateway 10.1.26.254ip classlessip route 0.0.0.0 0.0.0.0 10.1.26.254ip route 192.168.1.2 255.255.255.255 10.1.26.254no ip http serverip pim bidir-enable!!dialer-list 1 protocol ip permitno cdp run!!radius-server host 172.16.192.80 auth-port 1645 acct-port 1646 key rad123radius-server retransmit 3call rsvp-syncend
Note
For additional accounting examples, see the "Configuring Accounting" chapter in the Cisco IOS XE Security: Secure Services Configuration Guide.
Example: Verifying the User Profile on the RADIUS Server
The following is an example user profile on the RADIUS server. The Cisco ASR 1000 Series Aggregation Services Routers retrieves the information in the user profile from the RADIUS server.
Radius Profile "user1"Auth-Type = Local, User-Password = "pwd"User-Service-Type = Framed-UserFramed-Protocol = PPPcisco-avpair = "lcp:interface-config=vrf forwarding VRF01"cisco-avpair = "lcp:interface-config=ipv6 unnumbered loopback1"Framed-IPv6-Prefix = "2001:DB8:4567:1234::/64"Delegated-IPv6-Prefix = "2001:DB8:AAAA::/48"
Additional References
Related Documents
Related Topic Document TitleCisco IOS commands
Cisco IOS XE MPLS commands
Authentication, authorization and accounting
Configuring RADIUS
Configuring accounting
RADIUS attributes
"RADIUS Attributes Overview and RADIUS IETF Attributes" module in the Cisco IOS XE Security Configuration Guide: Securing User Services
Standards
Standard TitleNo new or modified standards are supported, and support for existing standards has not been modified.
—
MIBs
RFCs
Technical Assistance
Feature Information for Configuring Managed IPv6 Layer 2 Tunnel Protocol Network Server
Table 2 lists the features in this module and provides links to specific configuration information.
Use Cisco Feature Navigator to find information about platform support and software image support. Cisco Feature Navigator enables you to determine which software images support a specific software release, feature set, or platform. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Note
Table 2 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.
Cisco and the Cisco Logo are trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and other countries. A listing of Cisco's trademarks can be found at 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. (1005R)
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.
© 2011 Cisco Systems, Inc. All rights reserved.
Feedback
