Enabling BGP
A router ID is the unique identifier of a BGP router in an AS.
To ensure the uniqueness of a router ID and enhance availability, specify in BGP instance view the IP address of a local loopback interface as the router ID. Different BGP instances can have the same router ID.
If no router ID is specified in BGP instance view, the global router ID is used.
To modify a non-zero router ID of a BGP instance , use the router-id command in BGP instance view, rather than the router id command in system view.
If you specify a router ID in BGP instance view and then remove the interface that owns the router ID, the router does not select a new router ID. To select a new router ID, use the undo router-id command in BGP instance view.
To enable BGP:
Step | Command | Remarks | |
---|---|---|---|
1. Enter system view. | system-view | N/A | |
2. Configure a global router ID. | router id router-id | By default, no global router ID is configured, and BGP uses the highest loopback interface IP address—if any—as the router ID. If no loopback interface IP address is available, BGP uses the highest physical interface IP address as the route ID regardless of the interface status. | |
3. Enable BGP and enter BGP instance view. | bgp as-number [ instance instance-name ] | By default, BGP is disabled and no BGP instances exist. | |
4. (Optional.) Configure an SNMP context for the BGP instance. | snmp context-name context-name | By default, no SNMP context is configured for a BGP instance. | |
5. (Optional.) Configure a router ID for the BGP instance. | router-id router-id | By default, no router ID is configured for a BGP instance, and the BGP instance uses the global router ID configured by the router-id command in system view. | |
6. (Optional.) Enter BGP-VPN instance view. | ip vpn-instance vpn-instance-name | The specified VPN instance must have been created and have an RD. For more information about VPN instances, see MPLS Configuration Guide. | |
7. (Optional.) Configure a router ID for the BGP VPN instance. | router-id { router-id | auto-select } | By default, no router ID is configured for a BGP VPN instance, and the BGP VPN instance uses the router ID configured in BGP instance view. If no router ID is configured in BGP instance view, the BGP VPN instance uses the global router ID configured in system view. |