
Operation Manual – MPLS Hybrid Insertion
H3C S9500 Series Routing Switches
Chapter 1 MPLS Hybrid Insertion Configuration
1-12
[PE2-vlan200] port GigabitEthernet 2/2/1
[PE2-vlan200] interface vlan-interface 200
[PE2-vlan-interface200] ip address 196.168.2.1 255.255.255.0
[PE2-vlan-interface200] mpls
[PE2-vlan-interface200] mpls ldp
[PE2-vlan-interface200] quit
# Start the OSPF on the interface connecting PE 2 and the P routing device and on the
loopback interface.
[PE2] ospf 1 router-id 2.2.2.2
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 196.168.1.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
[PE2-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.
[PE2] ip vpn-instance vpna
[PE2-vpn-vpna] route-distinguisher 100:1
[PE2-vpn-vpna] vpn-target 100:1 both
[PE2-vpn-vpna] quit
# Configure the MPLS service loopback group:
[PE2] link-aggregation group 1 mode manual
[PE2] link-aggregation group 1 service-type mpls
# Add multiple ports to the MPLS service loopback group.
[PE2] inter GigabitEthernet 2/2/3
[PE2-GigabitEthernet2/2/3] stp disable
[PE2-GigabitEthernet2/2/3] port link-aggregation group 1
[PE2-GigabitEthernet2/2/3] interface GigabitEthernet 2/2/4
[PE2-GigabitEthernet2/2/4] stp disable
[PE2-GigabitEthernet2/2/4] port link-aggregation group 1
# Configure the port-based QoS policy:
[PE2] acl number 2000
[PE2-acl-basic-2000] rule 0 permit source any
[PE2] traffic classifier one
[PE2-classifier-one] if-match acl 2000
[PE2-classifier-one] traffi behavior one
[PE2-behavior-one] remark service-vlan-id 10
[PE2-behavior-one] redirect link-aggregation group 1
[PE2] qos policy one
[PE2-qospolicy-one] classifier one behavior one
[PE2-qospolicy-one] interface e3/1/1