beautypg.com

H3C Technologies H3C S10500 Series Switches User Manual

Page 88

background image

80

[DeviceC-behavior-qppb] car cir 2000 green pass red discard

[DeviceC-behavior-qppb] quit

[DeviceC] qos policy qppb

[DeviceC-qospolicy-qppb] classifier qppb behavior qppb mode qppb-manipulation

[DeviceC-qospolicy-qppb] quit

# Enable MPLS on interface VLAN-interface 300.

[DeviceC] interface vlan-interface 300

[DeviceC-Vlan-interface300] mpls

[DeviceC-Vlan-interface300] mpls ldp

# Bind interface VLAN-interface 400 to VPN instance VPN1.

[DeviceC] interface vlan-interface 400

[DeviceC-Vlan-interface400] ip binding vpn-instance vpn1

[DeviceC-Vlan-interface400] ip address 169.1.1.2 24

[DeviceC-Vlan-interface400] quit

# Apply the QoS policy to both the incoming and outgoing traffic of VLAN 400.

[DeviceC] qos vlan-policy qppb vlan 400 inbound

[DeviceC] qos vlan-policy qppb vlan 400 outbound

5.

Configure Device D

# Configure BGP.

system-view

[DeviceD] bgp 300

[DeviceD-bgp] peer 169.1.1.2 as-number 200

[DeviceD-bgp] import direct

[DeviceD-bgp] quit

6.

Verify the configuration

# Check whether the related routes on Device A take effect.

[DeviceA] display ip routing-table

Routing Tables: Public

Destinations : 7 Routes : 7

Destination/Mask Proto Pre Cost NextHop Interface

127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0

127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0

167.1.1.0/24 Direct 0 0 167.1.1.1 Vlan200

167.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0

192.168.1.0/24 Direct 0 0 192.168.1.2 Vlan100

192.168.1.2/32 Direct 0 0 127.0.0.1 InLoop0

192.168.2.0/24 BGP 255 0 167.1.1.2 Vlan200

# Check whether the related routes on Device B take effect.

[DeviceB] display ip routing-table

Routing Tables: Public

Destinations : 6 Routes : 6

Destination/Mask Proto Pre Cost NextHop Interface

1.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0

2.2.2.2/32 OSPF 10 1 168.1.1.1 Vlan300

127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0

127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0

This manual is related to the following products: