Supported Platforms
Related Documentation
router-id
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Statement introduced in Junos OS Release 11.3 for the QFX Series.
Statement introduced in Junos OS Release 12.3 for ACX Series routers.
Description
Specify the routing device’s IP address.
The router identifier is used by BGP and OSPF to identify the routing device from which a packet originated. The router identifier usually is the IP address of the local routing device. If you do not configure a router identifier, the IP address of the first interface to come online is used. This is usually the loopback interface. Otherwise, the first hardware interface with an IP address is used.
![]() | Note: We strongly recommend that you configure the router identifier under the [edit routing-options] hierarchy level to avoid unpredictable behavior if the interface address on a loopback interface changes. |
For more information about the router identifier in OSPF, see Example: Configuring an OSPF Router Identifier.
Options
address—IP address of the routing device.
Default: Address of the first interface encountered by Junos OS
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.