Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring a Dynamic Profile for Dynamic LNS Sessions

    You can configure L2TP to dynamically assign inline service interfaces for L2TP tunnels. You must define one or more dynamic profiles and assign a profile to each tunnel group. Both IPv4-only and dual-stack IPv4/IPv6 interfaces are supported.

    To configure the L2TP dynamic profile:

    1. Create the dynamic profile.
      [edit]user@host# edit dynamic-profiles profile-name
    2. Configure the interface to be dynamically assigned to the routing instance used by the tunneled PPP clients.
      [edit dynamic-profiles profile-name routing-instances “$junos-routing-instance”]user@host# set interface $junos-interface-name
    3. Configure the routing options for access routes in the routing instance.
      [edit dynamic-profiles profile-name routing-instances “$junos-routing-instance” routing-options access]user@host# set route next-hop $junos-framed-route-nexthopuser@host# set route metric $junos-framed-route-costuser@host# set route preference $junos-framed-route-distance
    4. Configure the routing options for access-internal routes in the routing instance.
      [edit dynamic-profiles profile-name routing-instances “$junos-routing-instance” routing-options access-internal]user@host# set route $junos-subscriber-ip-address
    5. Define the interfaces used by the dynamic profile. The variable is dynamically replaced by one of the configured inline service interfaces.
      [edit dynamic-profiles profile-name]user@host# set interfaces $junos-interface-ifd-name
    6. Configure the inline services logical interfaces to be dynamically instantiated.
      [edit dynamic-profiles profile-name interfaces “$junos-interface-ifd-name”]user@host# set unit $junos-interface-unit
    7. Specify an identifier for the logical interfaces.
      [edit dynamic-profiles profile-name interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit]user@host# set dial-options l2tp-interface-id name
    8. Configure each logical interface to be used for only one session at a time.
      [edit dynamic-profiles profile-name interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit]user@host# set dial-options dedicated
    9. Configure the address family for the logical interfaces and enable the local address on the LNS that provides local termination for the L2TP tunnel to be derived from the specified interface name.
      [edit dynamic-profiles profile-name interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit]user@host# set family inet unnumbered-address $junos-loopback-interface

    Published: 2012-11-29