Configuring basic BGP LS
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. Specify an AS number for an LS peer or peer group. | peer { ipv4-address [ mask-length ] | ipv6-address [ prefix-length ] } as-number as-number peer group-name as-number as-number | By default, no AS number is specified. |
4. Create the BGP LS address family and enter its view. | address-family link-state | N/A |
5. Enable the device to exchange LS information with the peer or peer group. | peer { group-name | ipv4-address [ mask-length ] | ipv6-address [ prefix-length ] } enable | By default, the device cannot exchange LS information with the peer or peer group. |