102
Applying the QoS policy to an interface
Step 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
}
On some cards, QoS policies can be
applied but cannot take effect due to
limited system resources. In this case,
you can adjust related parameters (for
example, reducing the number of
queues) according to system prompt
and then apply a QoS policy again.
QPPB configuration examples
QPPB configuration example in an IPv4 network
Network requirements
As shown in
, all routers run BGP.
Configure QPPB, so that Router B can receive routes, set IP precedence and QoS-local IDs
according to the routing policy, and use the QoS policy to limit the traffic rate to 512 kbps.
Figure 36 Network diagram
Configuration procedure
1.
Configure IP addresses for each interface. (Details not shown.)
2.
Configure Router A:
# Configure a BGP connection to Router B, and add the network 1.1.1.0/8 to the BGP routing
table.
<RouterA> system-view
[RouterA] bgp 1000
[RouterA-bgp] peer 168.1.1.2 as-number 2000
[RouterA-bgp] network 1.1.1.0 255.255.255.0
[RouterA-bgp] quit
3.
Configure Router B:
# Configure a BGP connection to Router A, apply the routing policy
qppb
to routes from the
peer 168.1.1.1, and add the network 2.2.2.0/8 to the BGP routing table.
<RouterB> system-view
[RouterB] bgp 2000