MPLS L2VPN Configuration Example
1447
<Sysname> system-view
[Sysname] sysname PE2
[PE2] interface loopback 0
[PE2-LoopBack0] ip address 192.3.3.3 32
[PE2-LoopBack0] quit
# Configure the LSR ID and enable MPLS globally.
[PE2] mpls lsr-id 192.3.3.3
[PE2] mpls
# Configure the LSP establishment triggering policy.
[PE2-mpls] lsp-trigger all
[PE2-mpls] quit
# Enable MPLS L2VPN and LDP globally.
[PE2] mpls l2vpn
[PE2] mpls ldp
[PE2-mpls-ldp] quit
# Configure the interface connected with the P device, namely POS 1/0, and
enable LDP on the interface.
[PE2] interface pos 1/0
[PE2-POS1/0] link-protocol ppp
[PE2-POS1/0] ip address 10.2.2.1 24
[PE2-POS1/0] mpls
[PE2-POS1/0] mpls ldp
[PE2-POS1/0] quit
# Configure OSPF on PE 2 for establishing LSPs.
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 10.2.2.1 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] network 192.3.3.3 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-1] quit
# On the interface connecting C 2, namely POS 1/1, create an SVC MPLS L2VPN
connection. The interface requires no IP address.
[PE2] interface pos 1/1
[PE2-POS1/1] link-protocol ppp
[PE2-POS1/1] mpls static-l2vc destination 192.2.2.2 transmit-vpn-lab
el 200 receive-vpn-label 100
[PE2-POS1/1] quit
5 Configure CE 2
<Sysname> system-view
[Sysname] sysname CE2
[CE2] interface pos 1/0
[CE2-POS1/0] link-protocol ppp
[CE2-POS1/0] ip address 100.1.1.2 24
Need help?
Do you have a question about the MSR 50 Series and is the answer not in the manual?
Questions and answers