316
After a router ID is changed, use the
reset
command to make it effective.
Examples
# Configure a global router ID as 1.1.1.1.
<Sysname> system-view
[Sysname] router id 1.1.1.1
Related commands
router-id
(BGP view, BGP-VPN instance view)
router-id (BGP view, BGP-VPN instance view)
Use
router-id
to specify a router ID for BGP or for a BGP VPN instance.
Use
undo router-id
to remove the router ID for BGP or for a BGP VPN instance.
Syntax
router-id
router-id
undo router-id
Default
BGP uses the global router ID configured by
router id
in system view.
Views
BGP view, BGP-VPN instance view
Predefined user roles
network-admin
Parameters
router-id
: Specifies a router ID in IP address format.
Usage guidelines
To run BGP, a router must have a router ID, an unsigned 32-bit integer that uniquely identifies the router
in the AS.
To modify a router ID, execute the
router-id
command in BGP view, rather than the
router id
command
in system view.
To improve availability, specify the IP address of a loopback interface as the router ID.
You can specify a different router ID for each VPN instance on a device.
Examples
# In BGP view, configure router ID as 1.1.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] router-id 1.1.1.1
# In BGP-VPN instance view, configure router ID as 1.1.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] router-id 1.1.1.1