R0106-HP MSR Router Series ACL and QoS Command Reference(V7)
108
QPPB commands
bgp-policy
Use bgp-policy to enable the QPPB function, which transmits the apply ip-precedence and apply
qos-local-id configuration through BGP routing policies.
Use undo bgp-policy to cancel the configuration.
Syntax
bgp-policy { destination | source } { ip-prec-map | ip-qos-map } *
undo bgp-policy { destination | source } [ ip-prec-map | ip-qos-map ] *
Default
QPPB is disabled.
Views
Interface view
Predefined user roles
network-admin
Parameters
destination: Searches the routing table by destination IP address.
source: Searches the routing table by source IP address. If the source keyword is specified, the source IP
address is used as the destination address for inverse lookup.
ip-prec-map: Sets an IP precedence value for matching packets.
ip-qos-map: Sets a local QoS ID for matching packets.
Usage guidelines
The bgp-policy command applies to only the incoming traffic.
In an MPLS L3VPN, the bgp-policy command is executed after the QoS features are performed in the
inbound direction of the public network interface of the PE. In any other case, the bgp-policy command
is executed before the QoS features.
If two bgp-policy commands are executed, one with the source keyword and the other with the
destination keyword, the most recent command entered applies.
Examples
# Configure interface GigabitEthernet 2/1/0 to get the IP precedence and local QoS ID by looking up
routes based on source IP address.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/0
[Sysname-GigabitEthernet2/1/0] bgp-policy source ip-prec-map ip-qos-map
Related commands
• apply ip-precedence (Layer 3—IP Routing Command Reference)