Enable BGP-LS
Context
BGP-LS needs to be deployed on the controller and the devices connected to it. The Switch will summarize process or AS topology information and report the complete information to the controller by using the bgp after the BGP-LS is enabled.
Procedure
- Run system-view
The system view is displayed.
- Run bgp { as-number-plain | as-number-dot }
BGP is started, the local AS number is specified, and the BGP view is displayed.
- Run peer { group-name | ipv4-address } as-number { as-number-plain | as-number-dot }
The IP address and AS number of a BGP peer is specified.
A BGP-LS peer relationship needs to be established between each switch that collects topology information and the controller, and between switches on which BGP-LS is enabled.
- Run link-state-family unicast
The BGP-LS address family view is displayed.
- Run peer { group-name | ipv4-address } enable
The BGP-LS route exchange with the specified peer or peer group is enabled.
- (Optional) Run domain identifier domain-id
Configure a BGP-LS domain ID.
A BGP-LS domain ID indicates that BGP-LS is enabled on a device. If no BGP-LS domain ID is configured, a BGP router ID is used as the BGP-LS domain ID by default. One BGP-LS domain ID can be configured for multiple devices so that the controller calculates routes based on the combined topology information reported by the devices.
- (Optional) Run domain as { domain as-plain | domain as-dot }
Configure a BGP-LS domain AS number.
By default, a BGP AS number is used as the BGP-LS domain AS number. Two devices with different BGP AS numbers must have the same BGP-LS domain AS number configured using the domain as command so that the controller can obtain combined topology information about the two ASs for route calculation.
- (Optional) Run peer { group-name | ipv4-address } reflect-client
Configure an RR and specify a client for it.
The device where the peer reflect-client command is run functions as the RR, and the specified peer or peer group functions as a client.
If the clients of an RR are fully meshed, you can run the undo reflect between-clients command to disable route reflection among these clients to reduce bandwidth consumption.
If a cluster has multiple RRs configured, run the reflector cluster-id cluster-id command to configure the same cluster ID for all the RRs. This command is applicable only to RRs.
- (Optional) Run peer { group-name | ipv4-address } route-limit limit [ percentage ] [ alert-only | idle-forever | idle-timeout minutes ]
The maximum number of BGP-LS routes that can be received from a specified peer is set.
In most cases, the BGP-LS routing table contains a large number of BGP-LS routes. If a lot of BGP-LS routes are received from peers, many system resources will be consumed. To reduce system resource consumption, you can configure the maximum number of routes that a router can receive from a BGP-LS peer.
- (Optional) Run peer { group-name | ipv4-address } route-policy route-policy-name { import | export }
Specify a route-policy for the BGP-LS routes to be received from or advertised to a specified BGP peer or peer group.
After a route-policy is created, you can run the peer route-policy command to use the route-policy to filter the BGP-LS routes to be received from or advertised to a specified BGP peer or peer group. The command configuration ensures that only desired routes are accepted or advertised, which helps manage routes and reduces the BGP-LS routing table size and system resource consumption.
- (Optional) Run peer { group-name | ipv4-address } route-update-interval interval
Configure an interval at which the device sends Update messages carrying the same route prefix to a specified peer or peer group.
When BGP-LS routes change, the switch sends Update messages to notify its peers. If a route changes frequently, to prevent the switch from sending Update messages for every change, you can run this command to set an interval at which the device sends Update messages carrying the same route prefix to a specified peer or peer group.
- (Optional) Run commit
The configuration is committed.