Step
2.
Enter BGP instance view
or BGP-VPN instance
view.
3.
Set a DSCP value for
outgoing BGP packets.
Enabling per-prefix label allocation
CAUTION:
A change to the label allocation mode enables BGP to re-advertise all routes, which will cause
service interruption. Use this command with caution.
Perform this task to enable BGP to allocate a label to each route prefix.
To enable per-prefix label allocation:
Step
1.
Enter system view.
2.
Enter BGP instance view.
3.
Enable per-prefix label
allocation.
Disabling optimal route selection for labeled routes without
tunnel information
Step
1.
Enter system view.
2.
Enter BGP instance view.
3.
Disable
selection
routes
information.
Command
•
Enter
bgp
instance-name
[ multi-session-thread ]
•
Enter BGP-VPN instance view:
a. bgp as-number [ instance
b. ip
peer { group-name | ipv4-address
[
mask-length
[ prefix-length ] } dscp dscp-value
Command
system-view
bgp
instance-name
[ multi-session-thread ]
label-allocation-mode
per-prefix
Command
system-view
bgp
instance-name
[ multi-session-thread ]
optimal
route
for
labeled
labeled-route ignore-no-tunnel
without
tunnel
BGP
instance
as-number
[
instance
instance-name
[ multi-session-thread ]
vpn-instance
vpn-instance-name
]
|
ipv6-address
as-number
[
instance
as-number
[
instance
277
Remarks
view:
]
N/A
]
By default, the DSCP value for
outgoing BGP packets is 48.
Remarks
N/A
]
N/A
By default, BGP allocates labels on a
per-next-hop basis.
Remarks
N/A
]
N/A
By default, labeled routes without
tunnel information can participate in
optimal route selection.