
Operation Manual – MPLS Hybrid Insertion
H3C S9500 Series Routing Switches
Chapter 1 MPLS Hybrid Insertion Configuration
1-9
2)
Configure PE 1
# Configure the global MPLS.
[PE1] mpls lsr-id 1.1.1.1
[PE1] mpls
[PE1] mpls ldp
# Configure a public network interface and enable MPLS on it.
[PE1] interface loopback 0
[PE1-LoopBack0] ip address 1.1.1.1 32
[PE1-LoopBack0] quit
[PE1] vlan 100
[PE1-vlan100] port GigabitEthernet 2/2/1
[PE1-vlan100] interface vlan-interface 100
[PE1-vlan-interface100] ip address 196.168.1.1 255.255.255.0
[PE1-vlan-interface100] mpls
[PE1-vlan-interface100] mpls ldp
[PE1-vlan-interface100] quit
# Start the OSPF on the interface connecting PE 1 and the P routing device and on the
loopback interface.
[PE1] ospf 1 router-id 1.1.1.1
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 196.168.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] quit
# Configure the VPN-instance. The configuration on VPN B is similar with that on VPN
A. The following provides the configuration on VPN A only.
<PE1> system-view
[PE1] ip vpn-instance vpna
[PE1-vpn-vpna] route-distinguisher 100:1
[PE1-vpn-vpna] vpn-target 100:1 both
[PE1-vpn-vpna] quit
# Configure the MPLS service loopback group:
[PE1] link-aggregation group 1 mode manual
[PE1] link-aggregation group 1 service-type mpls
# Add multiple ports to the MPLS service loopback group.
[PE1] interface GigabitEthernet 2/2/3
[PE1-GigabitEthernet2/2/3] stp disable
[PE1-GigabitEthernet2/2/3] port link-aggregation group 1
[PE1-GigabitEthernet2/2/3] interface GigabitEthernet 2/2/4
[PE1-GigabitEthernet2/2/4] stp disable