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 an LNS-to-LNS tunnel with OSPF routes

This section shows the topology of a sample L2TPv3 LNS-to-LNS IPv4 tunnel with Open Shortest Path First (OSPF) 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 tunnel interface settings on R1).
    2. Configure the OSPF settings (Configuring the OSPF settings of the LNS-to-LNS tunnel on R1).
  2. Configure the L2TPv3 tunnel settings and LNS settings on the R2 router.
    1. Configure the L2TPv3 tunnel settings (Configuring the L2TPv3 tunnel interface settings on R2).
    2. Configure the OSPF settings (Configuring the OSPF settings of the LNS-to-LNS tunnel on R2).
      Figure 1. Sample LNS-to-LNS IPv4 tunnel with OSPF routes

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

      Table 1. Configuring the L2TPv3 tunnel interface settings 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.3.1.1'
      

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

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

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

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

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

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

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

      vyatta@vyatta# set interfaces l2tpeth lttp1111 address '2.2.2.1/29'
      

      Configuring the OSPF settings of the LNS-to-LNS tunnel on R1 shows how to configure the OSPF settings for the tunnel on R1. For more information about configuring OSPF settings, refer to OSPF Reference Guide.

      Table 2. Configuring the OSPF settings of the LNS-to-LNS tunnel on R1
      Step Command

      Specify the network address of the OSPF area.

      vyatta@vyatta# set protocols ospf area 0 network '2.2.2.0/29'
      

      Specify the network address of the OSPF area.

      vyatta@vyatta# set protocols ospf area 0 network '44.44.44.0/24'
      

      Commit the configuration.

      vyatta@vyatta# commit
      

      Save the configuration.

      vyatta@vyatta# save
      

      Show the OSPF route information.

      vyatta@vyatta# run show ip ospf route
      
      
      OSPF process 0:
      Codes: C - connected, D - Discard, O - OSPF, IA - OSPF inter area
             N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
             E1 - OSPF external type 1, E2 - OSPF external type 2
      
      C  2.2.2.0/29 [10] is directly connected, lttp2222, Area 0.0.0.0
      C  44.44.44.0/24 [10] is directly connected, dp0p224p1, Area 0.0.0.0
      O  55.55.55.0/24 [20] via 2.2.2.2, lttp2222, Area 0.0.0.0

      Show the OSPF database information.

      vyatta@vyatta# run show ip ospf database
      
      
                  OSPF Router with ID (100.3.1.1) (Process ID 0 VRF default)
      
                      Router Link States (Area 0.0.0.0)
      
      Link ID         ADV Router       Age      Seq#       CkSum  Link count
      100.3.1.1       100.3.1.1        309      0x80000006 0x0d98 2
      200.3.1.1       200.3.1.1        288      0x80000004 0xf9c2 2
      
                      Net Link States (Area 0.0.0.0)
      
      Link ID         ADV Router       Age      Seq#       CkSum
      2.2.2.1         100.3.1.1        325      0x80000001 0x4059

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

      Table 3. Configuring the L2TPv3 tunnel interface settings 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.3.1.1'
      

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

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

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

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

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

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

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

      vyatta@vyatta# set interfaces l2tpeth lttp1111 address '2.2.2.2/29'
      

      Configuring the OSPF settings of the LNS-to-LNS tunnel on R2 shows how to configure the OSPF settings for the tunnel on R2. For more information about configuring OSPF settings, refer to OSPF Reference Guide.

      Table 4. Configuring the OSPF settings of the LNS-to-LNS tunnel on R2
      Step Command

      Specify the network address of the OSPF area.

      vyatta@vyatta# set protocols ospf area 0 network '2.2.2.0/29'
      

      Specify the network address of the OSPF area.

      vyatta@vyatta# set protocols ospf area 0 network '55.55.55.0/24'
      

      Commit the configuration.

      vyatta@vyatta# commit
      

      Save the configuration.

      vyatta@vyatta# save
      

      Show the RIP settings.

      vyatta@vyatta# run show ip ospf
      
      
      Codes: R - RIP, Rc - RIP connected, Rs - RIP static, K - Kernel,
             C - Connected, S - Static, O - OSPF, I - IS-IS, B - BGP
      
         Network            Next Hop         Metric From            If     Time
      Rc 2.2.2.0/29                               1                 lttp2222
      Rc 44.44.44.0/24                            1                 dp0p224p1
      R  55.55.55.0/24      2.2.2.2               2 2.2.2.2         lttp2222 02:40