Configuring traffic steering on L2TP LAC

The following steps show the commands used to configure traffic steering on L2TP LAC.

  1. Enable L2TP on a base router.

         router
             l2tp
                  no shutdown
                  exit
             exit
    
  2. Create VAS routers and interfaces.

         vprn 100 customer 1 create
             description ‟VAS router for access”
             route-distinguisher 65001:100
             vrf-target target:65001:100
             l2tp
                 no shutdown
                 exit
             interface ‟L2TP LAC endpoint”
                 address 10.0.0.1
                 loopback
                 exit
             interface ‟Access interface to VAS”
                 address 10.0.100.100/24
                 vas-if-type to-from-access
                 exit
             static-route-entry 20.0.0.1/32 next-hop 10.0.100.200
         vprn 200 customer 1 create
             description ‟VAS router for network”
             route-distinguisher 65001:200
             vrf-target target:65001:200
             interface ‟Network interface to VAS”
                 address 10.0.100.200/24
                 exit
             grt-lookup
                 enable-grt
                 exit
             static-route-entry 10.0.0.1/32 next-hop 10.0.100.100
    

    The L2TP endpoint IP addresses used by the base router and the access router must be the same.

    The VAS-facing interface on the access router must be configured as vas-if-type to-from-access to avoid a traffic loop between BNG and VAS.

  3. Configure the steering profile.

         subscriber-mgmt
             steering-profile ‟SP1” create
                 access router 100
                     exit
                 network next-hop 10.0.100.200 router 200
                     exit
             exit
    
  4. (Optional) Configure the LUDB host entry for the steered L2TP/PPPoE session.

         subscriber-mgmt
             local-user-db "LAC-steering"
                 ppp
                     match-list sap-id
                     host "lag-1:1" create
                         host-identification
                             sap-id "lag-1:1"
                         exit
                         auth-policy "AUTH1"
                         pre-auth-policy "PRE1"
                         steering-profile ‟SP1”
                         identification-strings 254 create
                             sla-profile-string "SLA1"
                             sub-profile-string "SUB1"
                         exit
                         no shutdown
                     exit