R0106-HP MSR Router Series ACL and QoS Configuration Guide(V7)

75
Configuring a QoS policy
The classes in the QoS policy use the IP precedence and local QoS ID set by the routing policy as match
criteria.
Applying the QoS policy to an interface
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type
interface-number
N/A
3. Apply the specified policy to
the interface.
qos apply policy policy-name
{ inbound | outbound }
By default, a QoS policy is not
applied.
QPPB configuration examples
QPPB configuration example in an IPv4 network
Network requirements
As shown in Figure 22, all routers run BGP.
Configure QPPB so that Router B can perform the following tasks:
Receive routes.
Set IP precedence values and local QoS IDs according to the routing policy.
Use the QoS policy to limit the traffic rate to 512 kbps.
Figure 22 Network diagram
Configuration procedure
1. Configure IP addresses for each interface. (Details not shown.)
2. Configure a BGP connection to Router B, and add the network 1.1.1.0/8 to the BGP routing table
on Router A.
<RouterA> system-view
[RouterA] bgp 1000
[RouterA-bgp] peer 168.1.1.2 as-number 2000
[RouterA-bgp] peer 168.1.1.2 connect-interface GigabitEthernet 2/1/1
[RouterA-bgp] address-family ipv4
[RouterA-bgp-ipv4] import-route direct
[RouterA-bgp-ipv4] peer 168.1.1.2 enable