Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

Configuring an LNS-to-LNS IPv4 tunnel

This section shows the topology of a sample L2TPv3 LNS-to-LNS IPv4 tunnel configuration. To configure this sample LNS-to-LNS tunnel, perform the following steps in configuration mode.

  1. Configure the L2TPv3 tunnel settings and the LNS settings on the R1 router.
    1. Configure the L2TPv3 tunnel settings (Configuring the L2TPv3 settings for an LNS-to-LNS IPv4 tunnel on R1).
    2. Configure the LNS settings (Configuring the next hop for 55.55.55.0/24 traffic on R1).
  2. Configure the L2TPv3 tunnel settings and LNS settings on the R2 router.
    1. Configure the L2TPv3 tunnel settings (Configuring the L2TPv3 settings for an LNS-to-LNS IPv4 tunnel on R2).
    2. Configure the LNS settings (Configuring the next hop for 44.44.44.0/24 traffic on R2).
      Figure 1. Sample LNS-to-LNS IPv4 tunnel

      Configuring the L2TPv3 settings for an LNS-to-LNS IPv4 tunnel on R1 shows how to configure the L2TPv3 tunnel interface on R1.

      Table 1. Configuring the L2TPv3 settings for an LNS-to-LNS IPv4 tunnel on R1
      Step Command

      Specify IP as the encapsulation method to use for the lttp1111 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp1111 l2tp-session encapsulation 'ip'
      

      Specify the local IP address of the lttp1111 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp1111 l2tp-session local-ip '100.2.1.1'
      

      Specify the local session identifier of the lttp1111 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp1111 l2tp-session local-session-id '4294967295'
      

      Specify the remote IP address of the lttp1111 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp1111 l2tp-session remote-ip '200.2.1.1'
      

      Specify the remote session identifier of the lttp1111 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp1111 l2tp-session remote-session-id '4000000000'
      

      Specify the IP address of the tunnel interface to which the router is connected.

      vyatta@vyatta# set interfaces l2tpeth lttp1111 address '1.1.1.1/24'
      

      Commit the configuration.

      vyatta@vyatta# commit
      

      Save the configuration.

      vyatta@vyatta# save
      

      Configuring the next hop for 55.55.55.0/24 traffic on R1 shows how to configure on R1 the next hop for traffic that is destined for the 55.55.55.0/24 network.

      Table 2. Configuring the next hop for 55.55.55.0/24 traffic on R1
      Step Command

      Specify the IP address of the interface at the other end of the tunnel (1.1.1.2) as the next hop for traffic that is destined for the 55.55.55.0/24 network.

      For more information about this command, refer to Basic Routing Configuration Guide.

      vyatta@vyatta# set protocols static route 55.55.55.0/24 next-hop '1.1.1.2'
      

      Commit the configuration.

      vyatta@vyatta# commit
      

      Save the configuration.

      vyatta@vyatta# save
      

      Show the route.

      vyatta@vyatta# run show ip route 55.55.55.2
      
      Routing entry for 55.55.55.0/24
        Known via "static", distance 1, metric 0, best
        * 1.1.1.2, via lttp1111

      Exit the configuration mode.

      vyatta@vyatta# exit
      

      Show the configuration.

      vyatta@vyatta# show interfaces l2tpeth lttp1111
      
      address 1.1.1.1/24
      l2tp-session {
              encapsulation ip
              local-ip 100.2.1.1
              local-session-id 4294967295
              remote-ip 200.2.1.1
              remote-session-id 4000000000
      }

      Configuring the L2TPv3 settings for an LNS-to-LNS IPv4 tunnel on R2 shows how to configure the L2TPv3 tunnel interface on R2.

      Table 3. Configuring the L2TPv3 settings for an LNS-to-LNS IPv4 tunnel on R2
      Step Command

      Specify IP as the encapsulation method to use for the lttp1111 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp1111 l2tp-session encapsulation 'ip'
      

      Specify the local IP address of the lttp1111 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp1111 l2tp-session local-ip '200.2.1.1'
      

      Specify the local session identifier of the lttp1111 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp1111 l2tp-session local-session-id '4294967295'
      

      Specify the remote IP address of the lttp1111 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp1111 l2tp-session remote-ip '100.2.1.1'
      

      Specify the remote session identifier of the lttp1111 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp1111 l2tp-session remote-session-id '4000000000'
      

      Specify the IP address of the tunnel interface to which the router is connected.

      vyatta@vyatta# set interfaces l2tpeth lttp1111 address '1.1.1.2/24'
      

      Commit the configuration.

      vyatta@vyatta# commit
      

      Save the configuration.

      vyatta@vyatta# save
      

      Configuring the next hop for 44.44.44.0/24 traffic on R2 shows how to configure on R2 the next hop for traffic that is destined for the 44.44.44.0/24 network.

      Table 4. Configuring the next hop for 44.44.44.0/24 traffic on R2
      Step Command

      Specify the IP address of the interface at the other end of the tunnel (1.1.1.1) as the next hop for traffic that is destined for the 44.44.44.0/24 network.

      For more information about this command, refer to Basic Routing Configuration Guide.

      vyatta@vyatta# set protocols static route 44.44.44.0/24 next-hop '1.1.1.1'
      

      Commit the configuration.

      vyatta@vyatta# commit
      

      Save the configuration.

      vyatta@vyatta# save