beautypg.com

H3C Technologies H3C S10500 Series Switches User Manual

Page 87

background image

79

[DeviceB-Vlan-interface300] mpls ldp

[DeviceB-Vlan-interface300] quit

4.

Configure Device C

# Configure a VPN instance.

system-view

[DeviceC] ip vpn-instance vpn1

[DeviceC-vpn-instance-vpn1] route-distinguisher 200:1

[DeviceC-vpn-instance-vpn1] vpn-target 200:1 export-extcommunity

[DeviceC-vpn-instance-vpn1] vpn-target 200:1 import-extcommunity

[DeviceC-vpn-instance-vpn1] quit

# Configure a BGP connection.

[DeviceC] router id 2.2.2.2

[DeviceC] bgp 200

[DeviceC-bgp] peer 1.1.1.1 as-number 200

[DeviceC-bgp] peer 1.1.1.1 connect-interface loopback 0

[DeviceC-bgp] ipv4-family vpn-instance vpn1

[DeviceC-bgp-vpn1] peer 169.1.1.1 as-number 300

[DeviceC-bgp-vpn1] peer 169.1.1.1 route-policy qppb import

[DeviceC-bgp-vpn1] quit

[DeviceC-bgp] ipv4-family vpnv4

[DeviceC-bgp-af-vpnv4] peer 1.1.1.1 enable

[DeviceC-bgp-af-vpnv4] peer 1.1.1.1 route-policy qppb import

[DeviceC-bgp-af-vpnv4] quit

[DeviceC-bgp] quit

# Configure a routing policy.

[DeviceC] route-policy qppb permit node 0

[DeviceC-route-policy] apply qos-local-id 1023

[DeviceC-route-policy] quit

# Configure MPLS.

[DeviceC] mpls lsr-id 2.2.2.2

[DeviceC] mpls

[DeviceC-mpls] quit

[DeviceC] mpls ldp

[DeviceC-mpls-ldp] quit

# Configure OSPF.

[DeviceC] ospf

[DeviceC-ospf-1] area 0

[DeviceC ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0

[DeviceC ospf-1-area-0.0.0.0] network 168.1.1.0 0.0.0.255

[DeviceC ospf-1-area-0.0.0.0] quit

[DeviceC-ospf-1] quit

# Configure a QoS policy.

[DeviceC] traffic classifier qppb

[DeviceC-classifier-qppb] if-match qos-local-id 1023

[DeviceC-classifier-qppb] quit

[DeviceC] traffic behavior qppb

This manual is related to the following products: