R3303-HP HSR6800 Routers MPLS Configuration Guide
180
[PE1] ccc ce1-ce2 interface pos 5/1/0 in-label 100 out-label 200 out-interface pos
5/1/1
3. Configure the P device:
# Configure the LSR ID and enable MPLS globally.
<Sysname> system-view
[Sysname] sysname P
[P] interface loopback 0
[P-LoopBack0] ip address 10.0.0.2 32
[P-LoopBack0] quit
[P] mpls lsr-id 10.0.0.2
[P] mpls
[P-mpls] quit
# Configure interface POS 5/1/1, and enable MPLS.
[P] interface pos 5/1/1
[P-POS5/1/1] link-protocol ppp
[P-POS5/1/1] ip address 10.1.1.2 24
[P-POS5/1/1] mpls
[P-POS5/1/1] quit
# Configure interface POS 5/1/0, and enable MPLS.
[P] interface pos 5/1/0
[P-POS5/1/0] link-protocol ppp
[P-POS5/1/0] ip address 10.2.2.2 24
[P-POS5/1/0] mpls
[P-POS5/1/0] quit
# Create a static LSP for forwarding packets from PE 1 to PE 2.
[P] static-lsp transit pe1_pe2 incoming-interface pos 5/1/1 in-label 200
outgoing-interface pos 5/1/0 out-label 201
# Create a static LSP for forwarding packets from PE 2 to PE 1.
[P] static-lsp transit pe2_pe1 incoming-interface pos 5/1/0 in-label 101
outgoing-interface pos 5/1/1 out-label 100
4. Configure PE 2:
# Configure the LSR ID and enable MPLS globally.
<Sysname> system-view
[Sysname] sysname PE2
[PE2] interface loopback 0
[PE2-LoopBack0] ip address 10.0.0.3 32
[PE2-LoopBack0] quit
[PE2] mpls lsr-id 10.0.0.3
[PE2] mpls
[PE2-mpls] quit
# Enable L2VPN and MPLS L2VPN.
[PE2] l2vpn
[PE2-l2vpn] mpls l2vpn
[PE2-l2vpn] quit
# Configure interface POS 5/1/1.
[PE2] interface pos 5/1/1
[PE2-POS5/1/1] link-protocol ppp