R0106-HP MSR Router Series ACL and QoS Configuration Guide(V7)
81
[RouterC] interface gigabitethernet 2/1/0
[RouterC-GigabitEthernet2/1/0] bgp-policy destination ip-qos-map
[RouterC-GigabitEthernet2/1/0] quit
# Bind interface GigabitEthernet 2/1/0 to the VPN instance vpn1.
[RouterC] interface gigabitethernet 2/1/0
[RouterC-GigabitEthernet2/1/0] ip binding vpn-instance vpn1
[RouterC-GigabitEthernet2/1/0] ip address 169.1.1.2 24
# Apply the QoS policy qppb to the incoming and outgoing traffic of interface GigabitEthernet
2/1/0.
[RouterC-GigabitEthernet2/1/0] qos apply policy qppb inbound
[RouterC-GigabitEthernet2/1/0] qos apply policy qppb outbound
5. Configure a BGP connection on Router D.
<RouterD> system-view
[RouterD] bgp 300
[RouterD-bgp] peer 169.1.1.2 as-number 200
[RouterD-bgp] peer 169.1.1.2 connect-interface gigabitethernet 2/1/1
[RouterD-bgp] address-family ipv4
[RouterD-bgp-ipv4] peer 169.1.1.2 enable
[RouterD-bgp-ipv4] import-route direct
[RouterD-bgp-ipv4] quit
Verifying the configuration
# Verify that the related routes on Router A take effect.
[RouterA] display ip routing-table
Destinations : 18 Routes : 18
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
167.1.1.0/24 Direct 0 0 167.1.1.1 GE2/1/1
167.1.1.0/32 Direct 0 0 167.1.1.1 GE2/1/1
167.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
167.1.1.255/32 Direct 0 0 167.1.1.1 GE2/1/1
169.1.1.0/24 BGP 255 0 167.1.1.2 GE2/1/1
192.168.1.0/24 Direct 0 0 192.168.1.2 GE2/1/0
192.168.1.0/32 Direct 0 0 192.168.1.2 GE2/1/0
192.168.1.2/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.255/32 Direct 0 0 192.168.1.2 GE2/1/0
192.168.3.0/24 BGP 255 0 167.1.1.2 GE2/1/1
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
# Verify that the related routes on Router B take effect.
[RouterB] display ip routing-table