beautypg.com

Qppb configuration examples, Network requirements, Configuration procedure – H3C Technologies H3C S10500 Series Switches User Manual

Page 84: Qppb configuration example in an ipv4 network

background image

76

QPPB configuration examples

QPPB configuration example in an IPv4 network

Network requirements

As shown in

Figure 24

, all switches run BGP. Device B receives routes, sets the QPPB QoS-local IDs, and

uses the QoS policy to limit the traffic from Device B to Device A to 512 kbps.

Figure 24 Network diagram for QPPB configuration example in an IPv4 network

Configuration procedure

1.

Configure IP addresses for each interface (omitted)

2.

Configure Device A

# Configure a BGP connection.

system-view

[DeviceA] bgp 1000

[DeviceA-bgp] peer 168.1.1.2 as-number 2000

[DeviceA-bgp] network 1.1.1.0 255.0.0.0

[DeviceA-bgp] quit

3.

Configure Device B

# Configure a BGP connection.

system-view

[DeviceB] bgp 2000

[DeviceB-bgp] peer 168.1.1.1 as-number 1000

[DeviceB-bgp] peer 168.1.1.1 route-policy qppb import

[DeviceB-bgp] network 2.2.2.0 255.0.0.0

[DeviceB-bgp] quit

# Configure a routing policy.

[DeviceB] route-policy qppb permit node 0

[DeviceB-route-policy] apply qos-local-id 3

[DeviceB-route-policy] quit

# Configure a QoS policy.

[DeviceB] traffic classifier qppb

[DeviceB-classifier-qppb] if-match qos-local-id 3

[DeviceB-classifier-qppb] quit

[DeviceB] traffic behavior qppb

[DeviceB-behavior-qppb] car cir 512 green pass red discard

[DeviceB-behavior-qppb] quit

This manual is related to the following products: