110
Green : 0(Packets) 0(Bytes)
Red : 0(Packets) 0(Bytes)
QPPB configuration example in an IPv6 network
Network requirements
As shown in
, all routers run BGP.
Configure QPPB, so that Router B can receive routes and set the QPPB IP precedence. Configure a
QoS policy to limit the rate of traffic with the set IP precedence to 512 kbps.
Figure 38 Network diagram
Configuration procedure
1.
Enable IPv6 globally, and configure IP addresses for each interface. (Details not shown.)
2.
Configure Router A:
# Configure BGP.
<RouterA> system-view
[RouterA] bgp 1000
[RouterA-bgp] ipv6-family
[RouterA-bgp-af-ipv6] peer 168::2 as-number 2000
[RouterA-bgp-af-ipv6] network 1:: 64
[RouterA-bgp-af-ipv6] quit
[RouterA-bgp] quit
3.
Configure Router B:
# Configure BGP.
<RouterB> system-view
[RouterB] bgp 2000
[RouterB-bgp] ipv6-family
[RouterB-bgp-af-ipv6] peer 168::1 as-number 1000
[RouterB-bgp-af-ipv6] peer 168::1 route-policy qppb import
[RouterB-bgp-af-ipv6] network 2:: 64
[RouterB-bgp-af-ipv6] quit
[RouterB-bgp] quit
# Configure a routing policy.
[RouterB] route-policy qppb permit node 0
[RouterB-route-policy] apply ip-precedence 4
[RouterB-route-policy] quit
# Enable QPPB on interface GigabitEthernet 1/0/1.
[RouterB] interface gigabitethernet 1/0/1
[RouterB-GigabitEthernet1/0/1] bgp-policy destination ip-prec-map
# Configure a QoS policy.