Usage Scenario
By configuring router ID for BGP VPN instance IPv4/IPv6 address family, you can differentiate the configured router ID of BGP VPN instance IPv4/IPv6 address family from the BGP router ID.
For example, if two VPN instances named vrf1 and vrf2 are configured on a BGP device, and a BGP session needs to be established between the interfaces bound to the two VPN instances, you need to configure different router IDs for the two VPN instance IPv4 address families. If no router ID is configured for the two VPN instance IPv4 address families, no BGP session can be established because the two VPN instance IPv4 address families have the same router ID, which is consistent with the BGP router ID.
Rules for automatically selecting a router ID for a BGP VPN instance IPv4/IPv6 address family are as follows:
- If loopback interfaces configured with IP addresses are bound to the VPN instance, the largest IP address among the IP addresses of the loopback interfaces is selected as the router ID.
- If no loopback interfaces configured with IP addresses are bound to the VPN instance, the largest IP address among the IP addresses of other interfaces bound to the VPN instance is selected as the router ID, regardless of whether the interface is Up or Down.
Configuration Impact
If a BGP session has been established in a BGP VPN instance IPv4/IPv6 address family, changing or deleting the configured router ID resets the BGP session. So, confirm the action before you use the router-id command.
If router-id is configured in both the BGP VPN instance IPv4 address family view and BGP VPN instance view, it will be displayed in both views. Deleting the configuration from one view will also delete the configuration from the other view.