BGP-LS provides a simple and efficient method of collecting topology information.
BGP-LS needs to be deployed on the devices connected to the controller.
Before configuring BGP-LS, configure basic IPv4 IS-IS functions or basic OSPF functions.
The system view is displayed.
An IS-IS process is configured.
IS-IS topology advertisement to BGP is enabled.
To enable IS-IS to advertise the topology of a Level-1 area and filter the route prefixes leaked from a Level-2 area to the Level-1 area, run the bgp-ls enable level-1 level-2-leaking-route-ignore command.
A BGP-LS identifier is configured.
The configuration is committed.
The system view is displayed.
An OSPF process is configured.
OSPF topology advertisement to BGP is enabled.
A BGP-LS identifier is configured.
The configuration is committed.
Enable BGP-LS.
The system view is displayed.
BGP is enabled, 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 are specified.
BGP-LS is enabled, and the BGP-LS address family view is displayed.
BGP-LS route exchange with the specified peer or peer group is enabled.
(Optional) Run domain identifier domain-id
A BGP-LS domain ID is configured.
A BGP-LS domain ID identifies a device with BGP-LS enabled. If no BGP-LS domain ID is configured, a BGP router ID is used as the BGP-LS domain ID by default. The same 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 }
A BGP-LS domain AS number is configured.
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
An RR is configured, and an RR client is specified.
The router on which 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 through the RR to reduce bandwidth consumption.
If a cluster has multiple RRs configured, you can 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-limitlimit [ percentage ] [ alert-only | idle-forever | idle-timeoutminutes ]
The maximum number of BGP-LS routes that the local device can receive 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, excessive system resources will be consumed. To minimize system resource consumption, you can configure the maximum number of routes that the router can receive from a BGP-LS peer.
(Optional) Run peer { group-name | ipv4-address } route-policyroute-policy-name { import | export }
A route-policy is specified 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-intervalinterval
An interval at which the device sends Update messages carrying the same route prefix to a specified peer or peer group is set.
When BGP-LS routes change, the router sends Update messages to notify its peers. If a route changes frequently, to prevent the router from sending Update messages for every change, run this command to set an interval at which the router sends Update messages carrying the same route prefix to a specified peer or peer group.
The configuration is committed.
After configuring BGP-LS, verify the configuration.