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 | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter BGP instance view. | bgp as-number [ instance instance-name ] | N/A |
3. Enable per-prefix label allocation. | label-allocation-mode per-prefix | By default, BGP allocates labels on a per-next-hop basis. |