[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Configuring the LAC

A single E-series router can function as an LAC for some tunnels and an LNS for others, but the router does not support termination at both ends of the same tunnel or session in the same router.

The router can initiate L2TP tunnels based either on a locally configured domain map or RADIUS profile information. In either case, the data is selected by domain name.

l2tp checksum

l2tp destruct-timeout

l2tp retransmission

Configuring Calling Number AVP Formats

The E-series LAC generates L2TP Calling Number AVP 22 for incoming-call request (ICRQ) packets that the LAC sends to the LNS. By default, the E-series LAC generates the Calling Number AVP 22 in descriptive format.

You can also prevent the E-series LAC from sending the Calling Number AVP in ICRQ packets.

NOTE: You cannot change the L2TP Calling Number AVP on tunnel switched interfaces.


You can set up the router to generate AVP 22 in any of the following formats. Agent-circuit-id is suboption 1 of the tags supplied by the PPPoE intermediate agent from the DSLAM. Agent-remote-id is suboption 2.

<interface ID> <delimit> <UID> <delimit> <interface description> <delimit> <connect info> <delimit> <PPPoE description>

<interface ID> <delimit> <UID> <delimit> <interface description> <delimit> <connect info> <delimit> <PPPoE description> <delimit> <agent-circuit-id>

<interface ID> <delimit> <UID> <delimit> <interface description> <delimit> <connect info> <delimit> <PPPoE description> <delimit> <agent-circuit-id> <delimit> <agent-remote-id>

<interface ID> <delimit> <UID> <delimit> <interface description> <delimit> <connect info> <delimit> <PPPoE description> <delimit> <agent-remote-id>

system name=westford, slot=4, port=3, and VLAN=12 produces the following calling number:

west0430000000012

<agent-circuit-id>

<agent-circuit-id> <delimit> <agent-remote-id>

<agent-remote-id>

Configuration Tasks

To set up the router to generate Calling Number AVP 22 in fixed format:

  1. Set the calling number format of the tunnel to fixed.
  2. host1(config)#aaa tunnel calling-number-format fixed 
    
    
    
  3. Set the format of the RADIUS Calling-Station-Id to fixed.
  4. host1(config)#radius calling-station-format fixed-format
    
    
    

To prevent the E-series LAC from sending the Calling Number AVP in ICRQ packets:

host1(config)#l2tp disable calling-number-avp

For more information about setting up the router to generate Calling Number AVP 22 in a format that includes either or both of the agent-circuit-id and agent-remote-id suboptions of the tags supplied by the PPPoE intermediate agent, see Configuring PPPoE Remote Circuit ID Capture in JUNOSe Link Layer Configuration Guide, Chapter 7, Configuring Point-to-Point Protocol over Ethernet.

Example Scenarios

The following examples show how you can synchronize the contents of RADIUS Calling-Station-Id (Attribute 31) and L2TP Calling-Number (AVP 22).

To send the PPPoE agent-circuit-id in RADIUS Attribute 31 and L2TP AVP 22 and specify that the fixed format is used when the PPPoE agent-circuit-id is unavailable, issue the following commands:

host1(config)#radius calling-station-format fixed-format
host1(config)#radius remote-circuit-id-delimiter #
host1(config)#radius override calling-station-id remote-circuit-id
host1(config)#radius remote-circuit-id-format agent-circuit-id

host1(config)#aaa tunnel calling-number-format include-agent-circuit-id
host1(config)#aaa tunnel calling-number-format-fallback fixed

To send the PPPoE agent-circuit-id and agent-remote-id in RADIUS Attribute 31 and L2TP AVP 22 and specify that the fixed format is used when both PPPoE agent-circuit-id and agent-remote-id are unavailable, issue the following commands:

host1(config)#radius calling-station-format fixed-format
host1(config)#radius remote-circuit-id-delimiter #
host1(config)#radius override calling-station-id remote-circuit-id
host1(config)#radius remote-circuit-id-format agent-circuit-id agent-remote-id

host1(config)#aaa tunnel calling-number-format include-agent-circuit-id 
include-agent-remote-id
host1(config)#aaa tunnel calling-number-format-fallback fixed

aaa tunnel calling-number-format

aaa tunnel calling-number-format-fallback

l2tp disable calling-number-avp

Mapping a User Domain Name to an L2TP Tunnel

The router uses either the local database related to the domain name or a RADIUS server to determine whether to terminate or tunnel PPP connections.

For information about setting up RADIUS to provide this mapping, see Chapter 1, Configuring Remote Access.

For a given domain map, you can choose one of two methods to map the domain to an L2TP tunnel locally on the router:

After configuring a tunnel group and the attributes for its tunnels, you can assign the tunnel group to the domain map from Domain Map mode. The tunnel group reference in the domain map is used instead of tunnel definitions configured from Domain Map Tunnel configuration mode.

The RADIUS server can reference tunnel groups through the RADIUS Tunnel Group [26-64] attribute. The advantages of RADIUS support for tunnel groups are:

Mapping from Domain Map Tunnel Mode

To map a domain to an L2TP tunnel locally on the router from Domain Map Tunnel mode, perform the following steps:

  1. Specify a domain name.
  2. host1(config)#aaa domain-map westford.com
    
    host1(config-domain-map)# 
    
    
    
  3. Specify a virtual router; in this case, the default router is specified.
  4. host1(config-domain-map)#router-name default
    
    
    
  5. Specify a tunnel to configure.
  6. host1(config-domain-map)#tunnel 3 
    
    
    
  7. Specify the LNS endpoint address of a tunnel.
  8. host1(config-domain-map-tunnel)#address 192.0.2.13
    
    
    
  9. Specify a preference for the tunnel.
  10. host1(config-domain-map-tunnel)#preference 5
    
    
    
  11. (Optional) Specify an authentication password.
  12. host1(config-domain-map-tunnel)#password temporary
    
    
    

    NOTE: If you specify a password for the LAC, the router requires that the peer (the LNS) authenticate itself to the router. In this case, if the peer fails to authenticate itself, the tunnel terminates.

  13. (Optional) Specify a hostname for the LAC end of the tunnel.
  14. host1(config-domain-map-tunnel)#client-name host4
    
    
    
  15. (Optional) Specify a server name for the LNS.
  16. host1(config-domain-map-tunnel)#server-name boston
    
    
    
  17. (Optional) Specify a source IP address for the LAC tunnel endpoint.
  18. host1(config-domain-map-tunnel)#source-address 192.0.3.3
    
    
    
  19. Specify a tunnel identification. (The router groups L2TP sessions with the same tunnel identification into the same tunnel.)
  20. host1(config-domain-map-tunnel)#identification acton
    
    
    
  21. Specify a medium type. (L2TP supports only IP version 4 [IPv4].)
  22. host1(config-domain-map-tunnel)#medium ipv4
    
    
    
  23. (Optional) Specify a default tunnel client name.
  24. host1(config-domain-map-tunnel)#exit
    
    host1(config-domain-map)#exit
    
    host1(config)#aaa tunnel client-name boxford 
    
    
    
  25. (Optional) Specify a default tunnel password.
  26. host1(config)#aaa tunnel password 3&92k%b#q4
    
    host1(config)#exit
    
    
    
  27. (Optional) Set the format for the tunnel assignment ID.
  28. host1(config)#aaa tunnel assignment-id-format assignmentID
    
    
    

    NOTE: If you do not set the tunnel assignment ID, the software sets it to default.

  29. (Optional) Specify whether or not to use the tunnel peer's Nas-Port [5] and Nas-Port-Type [61] attributes.
  30. host1(config)#aaa tunnel ignore nas-port enable
    
    host1(config)#aaa tunnel ignore nas-port-type disable 
    
    
    
  31. (Optional) Set up the router to ignore sequence numbers in data packets received on L2TP tunnels.
  32. host1(config)#l2tp ignore-receive-data-sequencing
    
    
    
  33. (Optional) Disable local tunnel authentication challenge generation.
  34. host1(config)#l2tp disable challenge
    
    
    
  35. Verify the L2TP tunnel configuration.
host1(config)#show aaa domain-map

Domain: westford.com; router-name: default; ipv6-router-name: default
                                                                            Tunnel
Tunnel   Tunnel         Tunnel        Tunnel   Tunnel    Tunnel    Tunnel   Client
 Tag      Peer          Source         Type    Medium   Password     Id      Name
------   ------------   -----------   ------   ------   ---------  ------   ------
3        192.168.2.13   192.168.3.3   l2tp     ipv4     temporary  acton    host4
 
         Tunnel                 Tunnel                     Tunnel
Tunnel   Server     Tunnel       Max                       Virtual
 Tag      Name    Preference   Sessions     Tunnel RWS     Router
------   ------   ----------   --------   --------------   -------
3        boston   5            0          system chooses   vr2

host1#show aaa tunnel-parameters
Tunnel password is 3&92k%b#q4
Tunnel client-name is <NULL>
Tunnel nas-port-method is none
Tunnel nas-port ignore disabled
Tunnel nas-port-type ignore disabled
Tunnel assignmentId format is assignmentId
Tunnel calling number format is descriptive 

Mapping from Tunnel Group Tunnel Mode

To map a domain to an L2TP tunnel locally on the router from Tunnel Group Tunnel Configuration mode, perform the following steps:

  1. Specify a domain name.
  2. host1(config)#aaa tunnel-group westford
    
    host1(config-tunnel-group)# 
    
    
    
  3. Specify a tunnel to configure.
  4. host1(config-tunnel-group)#tunnel 3 
    
    host1(config-tunnel-group-tunnel)#
    
    
    
  5. Specify a virtual router; in this case, the default router is specified.
  6. host1(config-tunnel-group-tunnel)#router-name default
    
    
    
  7. Specify the LNS endpoint address of a tunnel.
  8. host1(config-tunnel-group-tunnel)#address 192.0.2.13
    
    
    
  9. Specify a preference for the tunnel.
  10. host1(config-tunnel-group-tunnel)#preference 5
    
    
    
  11. (Optional) Specify an authentication password.
  12. host1(config-tunnel-group-tunnel)#password temporary
    
    
    

    NOTE: If you specify a password for the LAC, the router requires that the peer (the LNS) authenticate itself to the router. In this case, if the peer fails to authenticate itself, the tunnel terminates.

  13. (Optional) Specify a hostname for the LAC end of the tunnel.
  14. host1(config-tunnel-group-tunnel)#client-name host4
    
    
    
  15. (Optional) Specify a server name for the LNS.
  16. host1(config-tunnel-group-tunnel)#server-name boston
    
    
    
  17. (Optional) Specify a source IP address for the LAC tunnel endpoint.
  18. host1(config-tunnel-group-tunnel)#source-address 192.0.3.3
    
    
    
  19. Specify a tunnel identification. (The router groups L2TP sessions with the same tunnel identification into the same tunnel.)
  20. host1(config-tunnel-group-tunnel)#identification acton
    
    
    
  21. Specify a medium type. (L2TP supports only IP version 4 [IPv4].)
  22. host1(config-tunnel-group-tunnel)#medium ipv4
    
    
    
  23. Verify the L2TP tunnel configuration.
host1(config)#show aaa domain-map

Domain: westford.com; router-name: default; ipv6-router-name: default
                                                                            Tunnel
Tunnel   Tunnel         Tunnel        Tunnel   Tunnel    Tunnel    Tunnel   Client
 Tag      Peer          Source         Type    Medium   Password     Id      Name
------   ------------   -----------   ------   ------   ---------  ------   ------
3        192.168.2.13   192.168.3.3   l2tp     ipv4     temporary  acton    host4
 
         Tunnel                 Tunnel                     Tunnel
Tunnel   Server     Tunnel       Max                       Virtual
 Tag      Name    Preference   Sessions     Tunnel RWS     Router
------   ------   ----------   --------   --------------   -------
3        boston   5            0          system chooses   vr2


host1#show aaa tunnel-parameters
Tunnel password is 3&92k%b#q4
Tunnel client-name is <NULL>
Tunnel nas-port-method is none
Tunnel nas-port ignore disabled
Tunnel nas-port-type ignore disabled
tunnel assignmentId format is assignmentId
aaa tunnel calling number format is descriptive 

aaa domain-map

aaa tunnel assignment-id-format

aaa tunnel client-name

aaa tunnel-group

aaa tunnel ignore

aaa tunnel nas-port-method

aaa tunnel password

address

client-name

identification

l2tp disable challenge

l2tp ignore-receive-data-sequencing

max-sessions

medium ipv4

password

preference

receive-window

router-name

server-name

source-address

tunnel

tunnel group

type

Configuring the RX Speed on the LAC

You can configure the E-series LAC to generate L2TP Receive (RX) Speed AVP 38 when the receive speed equals the transmit (TX) speed. The AVPs can then be used to generate the RADIUS Connect-Info attribute [77] on the LNS. The information in the RADIUS attribute can be used by service providers to identify a customer's service.

To set up the router to generate the Receive Speed (AVP 38), complete the following steps:

  1. On the ATM subinterface, configure the advisory receive speed. See JUNOSe Link Layer Configuration Guide, Chapter 1, Configuring ATM for information about configuring the advisory speed.
  2. host1(config-subif)#atm atm1483 advisory-rx-speed 2000 
    
    
    
  3. Specify that the RX Speed AVP is always generated. If you do not specify this command, the RX Speed AVP is generated only when the RX speed differs from the TX speed.
  4. host1(config)#l2tp rx-connect-speed-when-equal
    
    
    

l2tp rx-connect-speed-when-equal

Managing the L2TP Destination Lockout Process

When multiple sets of tunneling parameters are available, L2TP uses a selection algorithm to choose the best tunnel for subscriber traffic. As part of this selection process, the JUNOSe software's L2TP implementation includes a lockout feature in which the router locks out, or disregards, destinations that are assumed to be unavailable.

By default, when a destination becomes unavailable, L2TP locks out that destination for a lockout timeout of 300 seconds (5 minutes). After the lockout timeout expires, L2TP assumes that the destination is now available and includes the destination when performing the selection algorithm.

Modifying the Lockout Procedure

You can optionally configure your own lockout procedure by specifying the lockout timeout you want to use or enabling a lockout test, or both. When the lockout timeout expires, the destination is either immediately unlocked (if lockout testing is not enabled) or begins the lockout test to verify that the destination is available.

L2TP performs the lockout test by attempting to establish a tunnel to the unavailable destination. For the test, L2TP must first obtain the parameters for a tunnel to the destination. If no such tunnel currently exists, L2TP must wait until it receives a new session request that has tunnel parameters for the locked out destination. The destination remains locked out while L2TP waits for the tunnel parameters and becomes available only after successful completion of the lockout test. Therefore, if lockout testing is enabled, the destination is actually locked out longer than the lockout timer you specify.


NOTE: Always configure the lockout timeout to be shorter than the destruct timeout. The destruct timeout (as described for l2tp destruct-timeout) overrides the lockout timeout—when the destruct timeout expires, all information about the locked out destination is deleted, including the time remaining on the destination's lockout timeout and the requirement to run a lockout test prior to returning the destination to service. As a result, the locked out destination might be returned to service prior to expiration of your configured lockout timeout and without completion of the lockout test you specified.


Figure 9 shows how locked-out destinations transition from a locked-out state to available status when using the default lockout configuration, a configuration that includes a modified lockout timer, and a configuration with both a modified timer and the lockout test.


Figure 9: Lockout States

You can use the following commands to manage L2TP destination lockout and configure a lockout process that meets the needs of your network environment:

l2tp destination lockout-test

l2tp destination lockout-timeout

l2tp unlock destination

l2tp unlock-test destination

Managing Address Changes Received from Remote Endpoints

A remote endpoint can use the Start-Control-Connection-Reply (SCCRP) packets that it sends to the E-series LAC to change the address that the LAC uses to communicate with the endpoint. By default, the LAC accepts the change and uses the new address to communicate with the endpoint. However, you can configure the LAC to ignore or reject the requested change. Setting up the LAC to ignore address changes in SCCRP packets enables the router to construct tunnels with separate receive and transmit addresses and to avoid problems due to a misconfiguration. Three possible configurations are available:

The reject specification takes precedence over the ignore specification.

The router accepts a change in receive address only once, during the tunnel establishment phase, and only on an SCCRP packet. Subsequent changes result in the router dropping packets. Any changes do not affect established tunnels.

Use the show l2tp command to display the SCCRP address change configuration.

l2tp ignore-transmit-address-change

l2tp reject-transmit-address-change


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]