home

Supported platforms

Vyatta documentation

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

Configuring a LAC-to-LAC IPv4 tunnel

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

  1. Configure the L2TPv3 tunnel and LAC cross-connect settings on the R1 router.
    1. Configure the L2TPv3 tunnel settings (Configuring the L2TPv3 settings for a LAC-to-LAC IPv4 tunnel on R1).
    2. Configure the LAC cross-connect settings (Configuring the LAC cross-connect settings on R1).
  2. Configure the L2TPv3 tunnel and LAC cross-connect settings on the R2 router.
    1. Configure the L2TPv3 tunnel settings (Configuring the L2TPv3 tunnel settings on R2).
    2. Configure the LAC cross-connect settings (Configuring the LAC cross-connect settings on R2).
      Figure 1. Sample LAC-to-LAC IPv4 tunnel

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

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

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

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

      Specify the cookie string used by R1 (the local router).

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-cookie '12345678'
      

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

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-ip '100.1.1.0/24'
      

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

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-session-id '88776655'
      

      Specify the local UDP port of the lttp20 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-udp-port '65535'
      

      Specify the cookie string used by R2 (the remote router).

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-cookie '87654321'
      

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

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-ip '200.1.1.0/24'
      

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

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-session-id '88776655'
      

      Specify the remote UDP port of the lttp20 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-udp-port '65534'
      

      Commit the configuration.

      vyatta@vyatta# commit
      

      Save the configuration.

      vyatta@vyatta# save
      

      Show the configuration.

      vyatta@vyatta:~$ show interfaces
      interfaces {
              dataplane dp0p160p1 {
                      address 10.18.179.216/21
              }
              dataplane dp0p192p1 {
                      address 100.1.1.1/24
              }
              dataplane dp0p1p1 {
              }
              l2tpeth lttp20 {
                      l2tp-session {
                              encapsulation udp
                              local-cookie abcd1234
                              local-ip 100.1.1.1
                              local-session-id 11223344
                              local-udp-port 60000
                              remote-cookie 1234abcd
                              remote-ip 200.1.1.1
                              remote-session-id 44332211
                              remote-udp-port 60000
                      }
              }
              loopback lo
      }

      Configuring the LAC cross-connect settings on R1 shows how to configure the LAC cross-connect settings on R1.

      Table 2. Configuring the LAC cross-connect settings on R1
      Step Command

      Specify the cross-connect parameters of the lttp20 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces dataplane dp0p1p1 xconnect l2tpeth 'lttp20'
      

      Commit the configuration.

      vyatta@vyatta# commit
      

      Save the configuration.

      vyatta@vyatta# save
      

      Show the configuration.

      vyatta@vyatta:~$ show interfaces
      interfaces {
              dataplane dp0p160p1 {
                      address 10.18.179.216/21
              }
              dataplane dp0p192p1 {
                      address 100.1.1.1/24
              }
              dataplane dp0p1p1 {
                      xconnect {
                              l2tpeth lttp20
                      }
              }
              dataplane dp0p256p1
              l2tpeth lttp20 {
                      l2tp-session {
                              encapsulation udp
                              local-cookie abcd1234
                              local-ip 100.1.1.1
                              local-session-id 11223344
                              local-udp-port 60000
                              remote-cookie 1234abcd
                              remote-ip 200.1.1.1
                              remote-session-id 44332211
                              remote-udp-port 60000
                      }
              }
              loopback lo
      }

      Configuring the L2TPv3 tunnel settings on R2 shows how to configure the L2TPv3 tunnel interface on R2.

      Table 3. Configuring the L2TPv3 tunnel settings on R2
      Step Command

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

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

      Specify the cookie string used by R2 (the local router).

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-cookie '87654321'
      

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

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-ip '200.1.1.1'
      

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

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-session-id '88776655'
      

      Specify the local UDP port of the lttp20 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session local-udp-port '65534'
      

      Specify the cookie string used by R1 (the remote router).

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-cookie '12345678'
      

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

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-ip '100.1.1.1'
      

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

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-session-id '88776655'
      

      Specify the remote UDP port of the lttp20 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces l2tpeth lttp20 l2tp-session remote-udp-port '65535'
      

      Commit the configuration.

      vyatta@vyatta# commit
      

      Save the configuration.

      vyatta@vyatta# save
      

      Show the configuration.

      vyatta@vyatta:~$ show interfaces
      interfaces {
              dataplane dp0p160p1 {
                      address 10.18.179.217/21
              }
              dataplane dp0p192p1 {
                      address 200.1.1.1/24
              }
              dataplane dp0p1p1 {
              }
              l2tpeth lttp20 {
                      l2tp-session {
                              encapsulation udp
                              local-cookie 1234abcd
                              local-ip 200.1.1.1
                              local-session-id 44332211
                              local-udp-port 60000
                              remote-cookie abcd1234
                              remote-ip 100.1.1.1
                              remote-session-id 11223344
                              remote-udp-port 60000
                      }
              }
              loopback lo
      }

      Configuring the LAC cross-connect settings on R2 shows how to configure the LAC cross-connect settings on R2.

      Table 4. Configuring the LAC cross-connect settings on R2
      Step Command

      Specify the cross-connect parameters of the lttp20 L2TPv3 tunnel interface.

      vyatta@vyatta# set interfaces dataplane dp0p1p1 xconnect 12tpeth 'lttp20'

      Commit the configuration.

      vyatta@vyatta# commit
      

      Save the configuration.

      vyatta@vyatta# save
      

      Show the configuration.

      vyatta@vyatta:~$ show interfaces
      interfaces {
              dataplane dp0p160p1 {
                      address 10.18.179.217/21
              }
              dataplane dp0p192p1 {
                      address 200.1.1.1/24
              }
              dataplane dp0p1p1 {
                      xconnect {
                              l2tpeth lttp20
                      }
              }
              l2tpeth lttp20 {
                      l2tp-session {
                              encapsulation udp
                              local-cookie 1234abcd
                              local-ip 200.1.1.1
                              local-session-id 44332211
                              local-udp-port 60000
                              remote-cookie abcd1234
                              remote-ip 100.1.1.1
                              remote-session-id 11223344
                              remote-udp-port 60000
                      }
              }
              loopback lo
      }