Step
1.
Enter system view.
2.
Enter BGP view.
3.
Enable 4-byte AS
number suppression.
Setting the DSCP value for BGP packets
An IPv4 packet header contains an 8-bit Type of Service (TOS) field. As defined in RFC 2474, the first six
bits set the Differentiated Services Code Point (DSCP) value and the last two bits are reserved. Network
devices use the DSCP value as a reference to determine the packet priority for transmission.
You can set the DSCP value for BGP packets.
To configure the DSCP value for packets sent to a BGP peer or peer group:
Step
1.
Enter system view.
2.
Enter BGP view or
BGP-VPN view.
3.
Set the DSCP value
for the BGP packets
sent to the specified
BGP peer or peer
group.
Enabling quick EBGP session reestablishment
If the router receives no keepalive messages from a BGP peer within the holdtime, it disconnects from the
peer.
With quick EBGP connection reestablishment enabled, the router will reestablish a session to the EBGP
peer immediately when the link to a directly connected EBGP peer is down.
To enable quick EBGP session reestablishment:
Step
1.
Enter system view.
2.
Enter BGP view.
Enable quick EBGP session
3.
reestablishment.
Command
system-view
bgp as-number
peer { group-name | ip-address }
capability-advertise suppress-4-byte-as
Command
system-view
•
Enter BGP view:
bgp as-number
•
Enter BGP-VPN instance view:
a.
bgp as-number
b.
ipv4-family vpn-instance
vpn-instance-name
peer { group-name | ip-address } dscp
dscp-value
Command
system-view
bgp as-number
ebgp-interface-sensitive
151
Remarks
N/A
N/A
Disabled by default.
Remarks
N/A
Use either approach.
Optional.
By default, the DSCP value in BGP
packets is 48.
Remarks
N/A
N/A
Optional.
Not enabled by default.