home

Supported platforms

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.

Minimum MPLS LDP example

Minimum configuration example for MPLS LDP

MPLS LDP must be enabled on interfaces before MPLS LDP is supported.
This configuration example is for MPLS LDP on LSR1, LSR2, and LSR3 in the following topology:

LSR1 ------ LSR2 ------- LSR3

  1. Enter the following configuration commands on LSR1.
    
     set interfaces dataplane dp0p1s1 address 10.1.2.1/30 
     set interfaces loopback lo1 address 1.1.1.1/32 
     set protocols mpls-ldp address-family ipv4 transport-address 1.1.1.1 
     set protocols mpls-ldp discovery interfaces interface dp0p1s1 address-family ipv4 
     set protocols mpls-ldp lsr-id 1.1.1.1 
     set protocols ospf area 0.0.0.0 network 1.1.1.1/32 
     set protocols ospf area 0.0.0.0 network 10.1.2.0/30 
     set protocols ospf parameters router-id 1.1.1.1
     commit
    
  2. Enter the following configuration commands on LSR2.
    
     set interfaces dataplane dp0p1s1 address 10.1.2.2/30 
     set interfaces dataplane dp0p1s2 address 10.1.3.1/30 
     set interfaces loopback lo1 address 2.2.2.2/32 
     set protocols mpls-ldp discovery interfaces interface dp0p1s1 address-family ipv4 
     set protocols mpls-ldp discovery interfaces interface dp0p1s2 address-family ipv4 
     set protocols mpls-ldp lsr-id 2.2.2.2 
     set protocols ospf area 0.0.0.1 network 2.2.2.2/32 
     set protocols ospf area 0.0.0.0 network 10.1.2.0/30 
     set protocols ospf area 0.0.0.0 network 10.1.3.0/30 
     set protocols ospf parameters router-id 2.2.2.2 
     commit
    
  3. Enter the following configuration commands on LSR3.
    
    set interfaces dataplane dp0p1s1 address 10.1.3.2/30 
    set interfaces loopback lo1 address 3.3.3.3/32 
    set protocols mpls-ldp discovery interfaces interface dp0p1s1 address-family ipv4 
    set protocols mpls-ldp lsr-id 3.3.3.3 
    set protocols ospf area 0.0.0.0 network 3.3.3.3/32 
    set protocols ospf area 0.0.0.0 network 10.1.3.0/30 
    set protocols ospf parameters router-id 3.3.3.3 
    commit
    
Verify the MPLS LDP configuration by entering the following command on LSR2.
run show mpls ldp session 
Peer IP Address            IF Name          My Role State          KeepAlive 
1.1.1.1                    dp0p1s1          Passive OPERATIONAL    30 
3.3.3.3                    dp0p1s2          Passive OPERATIONAL    30