R3303-HP HSR6800 Routers ACL and QoS Configuration Guide
104
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
[RouterB-bgp] peer 168.1.1.1 as-number 1000
[RouterB-bgp] peer 168.1.1.1 route-policy qppb import
[RouterB-bgp] network 2.2.2.0 255.255.255.0
[RouterB-bgp] quit
# Configure the routing policy qppb.
[RouterB] route-policy qppb permit node 0
[RouterB-route-policy] apply ip-precedence 1
[RouterB-route-policy] apply qos-local-id 3
[RouterB-route-policy] quit
# Enable QPPB on interface Serial 2/1/1.
[RouterB] interface serial 2/1/1
[RouterB-Serial2/1/1] bgp-policy source ip-prec-map ip-qos-map
[RouterB-Serial2/1/1] quit
# Configure a QoS policy.
[RouterB] traffic classifier qppb
[RouterB-classifier-qppb] if-match ip-precedence 1
[RouterB-classifier-qppb] if-match qos-local-id 3
[RouterB-classifier-qppb] quit
[RouterB] traffic behavior qppb
[RouterB-behavior-qppb] car cir 512 green pass red discard
[RouterB-behavior-qppb] quit
[RouterB] qos policy qppb
[RouterB-qospolicy-qppb] classifier qppb behavior qppb
[RouterB-qospolicy-qppb] quit
# Apply QoS policy qppb to incoming traffic on interface Serial 2/1./1
[RouterB] interface serial 2/1/1
[RouterB-Serial2/1/1] qos apply policy qppb inbound
[RouterB-Serial2/1/1] quit
4. Verify the configuration:
# Check whether the related route on Router B takes effect.
[RouterB] display ip routing-table 1.1.1.0 24 verbose
Routing Table : Public
Summary Count : 1