peer dscp
Use peer dscp to set a DSCP value for outgoing BGP packets.
Use undo peer dscp to remove the configuration.
Syntax
peer { group-name | ipv6-address [ prefix-length ] } dscp dscp-value
undo peer { group-name | ipv6-address [ prefix-length ] } dscp
Default
The DSCP value for outgoing BGP packets is 48.
Views
BGP instance view
BGP-VPN instance view
Predefined user roles
network-admin
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created.
ipv4-address: Specifies a peer by its IPv4 address. The peer must have been created.
mask-length: Specifies a mask length in the range of 0 to 32. You can use the ipv4-address and mask-length arguments together to specify a subnet. If you specify a subnet, this command specifies a DSCP value for outgoing BGP packets to all dynamic peers in the subnet.
ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created.
prefix-length: Specifies a prefix length in the range of 0 to 128. You can use the ipv6-address and prefix-length arguments together to specify a subnet. If you specify a subnet, this command specifies a DSCP value for outgoing BGP packets to all dynamic peers in the subnet.
dscp-value: Specifies a DSCP value in the range of 0 to 63.
Usage guidelines
The DSCP value of an IP packet specifies the priority level of the packet and affects the transmission priority of the packet. A larger DSCP value represents a higher priority.
Examples
# In BGP instance view, set the DSCP value to 10 for outgoing BGP packets to peer group test.
<Sysname> system-view [Sysname] bgp 100 [Sysname-bgp-default] peer test dscp 10