Label Distribution Protocol¶
VyOS’ MPLS support is not finished yet, its funcitionality is limited. Currently it can only be configured as a P router, that is, an LSR in the core of an MPLS network.
The Multi-Protocol Label Switching (MPLS) architecture does not assume a single protocol to create MPLS paths. VyOS supports the Label Distribution Protocol (LDP) as implemented by FRR, based on RFC 5036.
LDT it is an MPLS signaling protocol that distributes labels creating MPLS paths in a dynamic manner. LDT is not exactly a routing protocol, as it relies on other routing protocols for forwarding decisions.
In order to allow the exchange of label advertisements required for LDP, a TCP session should be established between routers. Routers will need to learn each other’s transport address in order to establish the TCP session.
You may want to use the same address for both the LDP router-id and the discovery transport address, but for VyOS MPLS LDP to work both parameters must be explicitely set in the configuration.
set interfaces dummy dum0 address '220.127.116.11/32' set interfaces ethernet eth1 address '10.0.0.2/24' set interfaces ethernet eth2 address '10.0.255.1/24' set protocols mpls ldp discovery transport-ipv4-address '18.104.22.168' set protocols mpls ldp interface 'eth1' set protocols mpls ldp interface 'eth2' set protocols mpls ldp router-id '22.214.171.124' set protocols ospf area 0 network '0.0.0.0/0' set protocols ospf parameters router-id '126.96.36.199'
When LDP is working, you will be able to see label information in the
show ip route. Besides that information, there are also
specific show commands for LDP: