Table Of Contents
L2TP Calling Station ID Suppression
Prerequisites for L2TP Calling Station ID Suppression
How to Configure L2TP Calling Station ID Suppression
Configuring L2TP Calling Station ID Suppression for Local Authorization
Configuring L2TP Calling Station ID Suppression As a Global Router Authorization Setting
Configuring L2TP Calling Station ID Suppression with RADIUS Domain Authorization
Configuration Examples for L2TP Calling Station ID Suppression
Calling Station ID Suppression for Local Authorization: Example
Calling Station ID Suppression with RADIUS Authorization: Example
l2tp attribute clid mask-method
vpdn l2tp attribute clid mask-method
L2TP Calling Station ID Suppression
When a Layer 2 Tunnel Protocol (L2TP) access concentrator (LAC) connects to an L2TP network server (LNS), the LAC transfers numerous attribute-value pairs as part of the session setup process. One of these attribute-value pairs is the Calling Station ID (L2TP AVP 22). The Calling Station ID provides detailed information about the originator of the session, such as the phone number of the originator, the Logical Line ID (LLID) used to make the connection on the LAC, or the MAC address of the PC connecting to the network. However, the Calling Station ID can be considered to be sensitive information in cases where the LAC and LNS are being managed by different entities. Therefore, depending on security requirements of the LAC or end users, it may be necessary for the LAC to suppress parts or all of the Calling Station ID.
Management of L2TP tunnels and sessions is available through router command-line interface (CLI) configuration commands or through the use of RADIUS vendor-specific attributes (VSAs) via authorization responses. This feature provides commands using both methods that allow you to mask parts or remove completely the Calling Station ID. Calling station ID suppression will be done on any Calling Station ID seen by L2TP when it sends it to an LNS via L2TP AVP 22 for any sessions matching the required criteria.
History for the L2TP Calling Station ID Suppression Feature
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Prerequisites for L2TP Calling Station ID Suppression
•
How to Configure L2TP Calling Station ID Suppression
•
Configuration Examples for L2TP Calling Station ID Suppression
Prerequisites for L2TP Calling Station ID Suppression
This feature is enabled on the LAC. Before proceeding, a basic LAC setup should be configured on the router. For an example configuration, see the "Layer 2 Tunnel Protocol" chapter of the Cisco 6400 Feature Guide, Release 12.3 at http://www.cisco.com/en/US/products/hw/routers/ps314/products_feature_guide_chapter09186a00801bf067.html
How to Configure L2TP Calling Station ID Suppression
This section contains the following procedures:
•
Configuring L2TP Calling Station ID Suppression for Local Authorization
•
Configuring L2TP Calling Station ID Suppression As a Global Router Authorization Setting
•
Configuring L2TP Calling Station ID Suppression with RADIUS Domain Authorization
Configuring L2TP Calling Station ID Suppression for Local Authorization
To configure L2TP Calling Station ID suppression on a virtual private dial-up network (VPDN) group for local authorization to mask characters in the L2TP calling line ID, perform the following steps.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
vpdn enable
4.
vpdn-group name
5.
request-dialin
6.
protocol protocol-name
7.
domain domain-name
8.
domain domain-name
9.
initiate-to ip address
10.
local name name
11.
l2tp tunnel password password
12.
l2tp attribute clid mask-method {right mask-character bytes | remove} [match match-string]
DETAILED STEPS
Configuring L2TP Calling Station ID Suppression As a Global Router Authorization Setting
To globally configure a LAC router to remove the L2TP calling line ID, perform the following steps:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
vpdn enable
4.
vpdn l2tp attribute clid mask-method remove [match match-string]
or
vpdn l2tp attribute clid mask-method right mask-character bytes [match match-string]
5.
vpdn search-order domain
DETAILED STEPS
Configuring L2TP Calling Station ID Suppression with RADIUS Domain Authorization
To configure a RADIUS server to "tell" the LAC router to mask or remove the L2TP calling line ID, add an attribute to the domain authorization response with the following format:
Cisco-Avpair = vpdn:l2tp-clid-mask-method=<rule>
Where <rule> is either the word "remove" or a masking rule in the format right:<mask char>:<bytes>.
The following example attribute tells the LAC to completely remove the L2TP Calling Station ID:
Cisco-Avpair = vpdn:l2tp-clid-mask-method=remove
The following example attribute tells the LAC to mask the 5 right characters with the character %:
Cisco-Avpair = vpdn:l2tp-clid-mask-method=right:%:5
Configuration Examples for L2TP Calling Station ID Suppression
This section provides the following configuration examples:
•
Calling Station ID Suppression for Local Authorization: Example
•
Calling Station ID Suppression with RADIUS Authorization: Example
Calling Station ID Suppression for Local Authorization: Example
The following example shows a LAC router managing PPP over Ethernet over virtual LAN (PPPoEoVLAN) end users. The router obtains a Calling Station ID from Logical Line ID network access server (NAS) port preauthorization through RADIUS and supports a per-user privacy option on the username (when including #184 in username), using local domain authorization.
Current configuration : 3158 bytes!version 12.3loader bypass-initservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname LAC!boot-start-markerboot-end-marker!enable secret 5 $1$8qtb$MHcYeW2kn8VNYgz932eXl.enable password lab!aaa new-model!!aaa group server radius LLID-Radiusserver 192.168.1.5 auth-port 1645 acct-port 1646!aaa group server radius LAC-Radiusserver 192.168.1.6 auth-port 1645 acct-port 1646!aaa authentication ppp default localaaa authorization network default localaaa authorization network LLID group LLID-Radiusaaa accounting network default start-stop group LAC-Radiusaaa nas port extendedaaa session-id common!resource manager!clock timezone GMT 1ip subnet-zeroip cefno ip domain lookup!!virtual-profile virtual-template 1vpdn enablevpdn search-order domain!vpdn-group L2TPrequest-dialinprotocol l2tpdomain cisco.comdomain cisco.com#184initiate-to ip 192.168.1.4local name testl2tp tunnel password 0 ciscol2tp attribute clid mask-method remove match #184!vpdn-group UUTaccept-dialinprotocol pppoevirtual-template 1!subscriber access pppoe pre-authorize nas-port-id LLID send username!interface Loopback0no ip address!interface Loopback1ip address 10.1.1.1 255.255.255.0!interface Ethernet0/0ip address 192.168.1.3 255.255.255.0no cdp enable!interface Ethernet0/0.20encapsulation dot1Q 1024no snmp trap link-statuspppoe enablepppoe max-sessions 200no cdp enable!interface Ethernet1/0ip address 10.1.1.10 255.255.255.0no cdp enable!interface Serial2/0no ip addressshutdownserial restart-delay 0!interface Serial3/0no ip addressshutdownserial restart-delay 0!interface Virtual-Template1ip unnumbered Ethernet1/0ip mroute-cacheno peer default ip addressppp authentication pap!ip classlessip route 0.0.0.0 0.0.0.0 Ethernet0/0ip route 10.0.0.0 255.0.0.0 Ethernet1/0!no ip http server!!radius-server attribute 69 clearradius-server host 192.168.1.5 auth-port 1645 acct-port 1646radius-server host 192.168.1.6 auth-port 1645 acct-port 1646radius-server domain-stripping delimiter #radius-server key ciscoradius-server vsa send accountingradius-server vsa send authentication!control-plane!!line con 0exec-timeout 0 0line aux 0line vty 0 4password labCalling Station ID Suppression with RADIUS Authorization: Example
The following example shows a LAC router managing PPPoEoVLAN end users. The router obtains a Calling Station ID from Logical Line ID NAS port preauthorization through RADIUS and supports a per-user privacy option on the username (when including #184 in username), using RADIUS domain authorization that includes the Cisco VSA l2tp-clid-mask-method.
Current configuration : 3158 bytes!version 12.3loader bypass-initservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname LAC!boot-start-markerboot-end-marker!enable secret 5 $1$8qtb$MHcYeW2kn8VNYgz932eXl.enable password lab!aaa new-model!!aaa group server radius LLID-Radiusserver 192.168.1.5 auth-port 1645 acct-port 1646!aaa group server radius LAC-Radiusserver 192.168.1.6 auth-port 1645 acct-port 1646!aaa authentication ppp default localaaa authorization network default group LAC-Radiusaaa authorization network LLID group LLID-Radiusaaa accounting network default start-stop group LAC-Radiusaaa nas port extendedaaa session-id common!resource manager!clock timezone GMT 1ip subnet-zeroip cefno ip domain lookup!!virtual-profile virtual-template 1vpdn enablevpdn search-order domain!vpdn-group UUTaccept-dialinprotocol pppoevirtual-template 1!subscriber access pppoe pre-authorize nas-port-id LLID send username!interface Loopback0no ip address!interface Loopback1ip address 10.1.1.1 255.255.255.0!interface Ethernet0/0ip address 192.168.1.3 255.255.255.0no cdp enable!interface Ethernet0/0.20encapsulation dot1Q 1024no snmp trap link-statuspppoe enablepppoe max-sessions 200no cdp enable!interface Ethernet1/0ip address 10.1.1.10 255.255.255.0no cdp enable!interface Serial2/0no ip addressshutdownserial restart-delay 0!interface Serial3/0no ip addressshutdownserial restart-delay 0!interface Virtual-Template1ip unnumbered Ethernet1/0ip mroute-cacheno peer default ip addressppp authentication pap!ip classlessip route 0.0.0.0 0.0.0.0 Ethernet0/0ip route 10.0.0.0 255.0.0.0 Ethernet1/0!no ip http server!!radius-server attribute 69 clearradius-server host 192.168.1.5 auth-port 1645 acct-port 1646radius-server host 192.168.1.6 auth-port 1645 acct-port 1646radius-server domain-stripping delimiter #radius-server key ciscoradius-server vsa send accountingradius-server vsa send authentication!control-plane!!line con 0exec-timeout 0 0line aux 0line vty 0 4password labIn the RADIUS server pointed to by LAC-Radius, configure an entry for cisco.com with the following authorization attributes:
Cisco-Avpair = vpdn:l2tp-tunnel-password=cisco
Cisco-Avpair = vpdn:tunnel-type=l2tp
Cisco-Avpair = vpdn:tunnel-id=test
Cisco-Avpair = vpdn:ip-addresses=192.168.1.4
Cisco-Avpair = vpdn:l2tp-clid-mask-method=right:X:6
Additional References
The following sections provide references related to the L2TP Calling Station ID Suppression feature.
Related Documents
Related Topic Document TitleLayer 2 Tunnel Protocol
"Layer 2 Tunnel Protocol" chapter in the Cisco 6400 Feature Guide, Release 12.3
MIBs
Technical Assistance
Command Reference
This section documents new commands only.
•
l2tp attribute clid mask-method
•
vpdn l2tp attribute clid mask-method
l2tp attribute clid mask-method
To configure a network access server (NAS) to provide Layer 2 Tunnel Protocol (L2TP) calling line ID suppression for local authorization, use the l2tp attribute clid mask-method command in VPDN group configuration mode. To disable this function, use the no form of this command.
l2tp attribute clid mask-method {right mask-character bytes | remove} [match match-string]
no l2tp attribute clid mask-method {right mask-character bytes | remove} [match match-string]
Syntax Description
Command Default
The Calling Station ID is not masked or dropped.
Command Modes
VPDN group configuration
Command History
Usage Guidelines
Use the l2tp attribute clid mask-method command in VPDN group configuration mode to mask the caller ID for calls belonging to that virtual private dialup network (VPDN) group.
Use the vpdn l2tp attribute clid mask-method command to mask the caller ID globally for all VPDN groups configured on the NAS.
You can either substitute characters for a portion of the calling line ID or drop the calling line ID.
Examples
The following example shows how to use the l2tp attribute clid mask-method command to remove the caller ID during local authorization if the username contains the string #184:
vpdn-group L2TPrequest-dialinprotocol l2tpdomain cisco.comdomain cisco.com#184initiate-to ip 192.168.1.4local name router32l2tp tunnel password 0 ciscol2tp attribute clid mask-method remove match #184Related Commands
Command Descriptionvpdn l2tp attribute clid mask-method
Configures a NAS to provide L2TP calling line ID suppression globally on the router.
vpdn l2tp attribute clid mask-method
To configure a network access server (NAS) to provide Layer 2 Tunnel Protocol (L2TP) calling line ID suppression globally on the router, use the vpdn l2tp attribute clid mask-method command in global configuration mode. To disable this function, use the no form of this command.
vpdn l2tp attribute clid mask-method {right mask-character bytes | remove} [match match-string]
no vpdn l2tp attribute clid mask-method {right mask-character bytes | remove} [match match-string]
Syntax Description
Command Default
The Calling Station ID is not masked or dropped.
Command Modes
Global configuration
Command History
Usage Guidelines
Use the vpdn l2tp attribute clid mask-method command to mask the caller ID globally for all virtual private dialup network (VPDN) groups configured on the NAS. Use the l2tp attribute clid mask-method command in VPDN group configuration mode to mask the caller ID for calls belonging only to that VPDN group.
You can either substitute characters for a portion of the calling line ID or drop the calling line ID.
Examples
The following example shows how to use the vpdn l2tp attribute clid mask-method command globally to mask the L2TP calling line ID during authorization if the username contains the string #184.
vpdn enablevpdn l2tp attribute clid mask-method right # 255 match #184vpdn search-order domainRelated Commands
Command Descriptionl2tp attribute clid mask-method
Configures a NAS to provide L2TP calling line ID suppression for local authorization.
Copyright © 2005 Cisco Systems, Inc. All rights reserved.

