H3C Technologies H3C S7500E Series Switches User Manual
Page 292

6-67
[ASBR-PE2] mpls ldp
[ASBR-PE2-mpls-ldp] quit
# Configure interface VLAN-interface 12, start IS-IS and enable MPLS and LDP on the interface.
[ASBR-PE2] interface vlan-interface 12
[ASBR-PE2-Vlan-interface12] ip address 9.1.1.1 255.0.0.0
[ASBR-PE2-Vlan-interface12] isis enable 1
[ASBR-PE2-Vlan-interface12] mpls
[ASBR-PE2-Vlan-interface12] mpls ldp
[ASBR-PE2-Vlan-interface12] quit
# Configure interface VLAN-interface 13 and enable MPLS on it.
[ASBR-PE2] interface vlan-interface 13
[ASBR-PE2-Vlan-interface13] ip address 11.0.0.1 255.0.0.0
[ASBR-PE2-Vlan-interface13] mpls
[ASBR-PE2-Vlan-interface13] quit
# Configure interface Loopback 0 and start IS-IS on it.
[ASBR-PE2] interface loopback 0
[ASBR-PE2-LoopBack0] ip address 4.4.4.9 32
[ASBR-PE2-LoopBack0] isis enable 1
[ASBR-PE2-LoopBack0] quit
# Start BGP on ASBR-PE 2.
[ASBR-PE2] bgp 600
[ASBR-PE2-bgp] peer 11.0.0.2 as-number 100
[ASBR-PE2-bgp] peer 11.0.0.2 connect-interface vlan-interface 13
[ASBR-PE2-bgp] peer 5.5.5.9 as-number 600
[ASBR-PE2-bgp] peer 5.5.5.9 connect-interface loopback 0
# Specify not to filter the received VPNv4 routes using the import target attribute.
[ASBR-PE2-bgp] ipv4-family vpnv4
[ASBR-PE2-bgp-af-vpnv4] undo policy vpn-target
# Configure both IBGP peer 5.5.5.9 and EBGP peer 11.0.0.2 as VPNv4 peers.
[ASBR-PE2-bgp-af-vpnv4] peer 11.0.0.2 enable
[ASBR-PE2-bgp-af-vpnv4] peer 5.5.5.9 enable
[ASBR-PE2-bgp-af-vpnv4] quit
[ASBR-PE2-bgp] quit
4) Configure PE 2
# Start IS-IS on PE 2.
[PE2] isis 1
[PE2-isis-1] network-entity 10.111.111.111.111.00
[PE2-isis-1] quit
# Configure LSR ID, enable MPLS and LDP.
[PE2] mpls lsr-id 5.5.5.9
[PE2] mpls
[PE2-mpls] label advertise non-null
[PE2-mpls] quit
[PE2] mpls ldp
[PE2-mpls-ldp] quit
# Configure interface VLAN-interface 12, start IS-IS and enable MPLS and LDP on the interface.
[PE2] interface vlan-interface 12