327
# Configure CE 1.
<CE1> system-view
[CE1] interface loopback 0
[CE1-LoopBack0] ip address 2.2.2.9 32
[CE1-LoopBack0] quit
[CE1] mpls lsr-id 2.2.2.9
[CE1] mpls
[CE1-mpls] quit
[CE1] mpls ldp
[CE1-mpls-ldp] quit
[CE1] isis 2
[CE1-isis-2] network-entity 10.0000.0000.0000.0002.00
[CE1-isis-2] quit
[CE1] interface loopback 0
[CE1-LoopBack0] isis enable 2
[CE1-LoopBack0] quit
[CE1] interface pos 5/1/1
[CE1-POS5/1/1] ip address 10.1.1.2 24
[CE1-POS5/1/1] isis enable 2
[CE1-POS5/1/1] mpls
[CE1-POS5/1/1] mpls ldp
[CE1-POS5/1/1] quit
After the configurations, LDP and IS-IS neighbor relationship can be established between PE 3 and
CE 1.
NOTE:
Configurations on PE 4 and CE 2 are similar to those on PE 3 and CE 1 respectively, and are thus omitted
here.
3.
Connect CE 1 and CE 2 to service provider PEs.
# Configure PE 1.
[PE1] ip vpn-instance vpn1
[PE1-vpn-instance-vpn1] route-distinguisher 200:1
[PE1-vpn-instance-vpn1] vpn-target 1:1
[PE1-vpn-instance-vpn1] quit
[PE1] interface pos 5/1/1
[PE1-POS5/1/1] ip binding vpn-instance vpn1
[PE1-POS5/1/1] ip address 11.1.1.2 24
[PE1-POS5/1/1] mpls
[PE1-POS5/1/1] quit
[PE1] bgp 100
[PE1-bgp] ipv4-family vpn-instance vpn1
[PE1-bgp-vpn1] peer 11.1.1.1 as-number 200
[PE1-bgp-vpn1] quit
[PE1-bgp] quit
# Configure CE 1.
[CE1] interface pos 5/1/2
[CE1-POS5/1/2] ip address 11.1.1.1 24