Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

router-id

Syntax

router-id address;

Hierarchy Level

[edit logical-systems logical-system-name routing-instances routing-instance-name routing-options],[edit logical-systems logical-system-name routing-options],[edit routing-instances routing-instance-name routing-options],[edit routing-options]

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.

Published: 2013-01-17