eigrp router-id Command

The eigrp router-id command is used to configure the EIGRP router ID and takes precedence over any loopback or physical interface IPv4 addresses. The command syntax is:

Router(config)# router eigrp autonomous-system

Router(config-router)# eigrp router-id ipv4-address

Note: The IPv4 address used to indicate the router ID is actually any 32-bit number displayed in dotted-decimal notation.

The router ID can be configured with any IPv4 address with two exceptions: and The router ID should be a unique 32-bit number in the EIGRP routing domain; otherwise, routing inconsistencies can occur.

Figure 1 shows the configuration of the EIGRP router ID for routers R1 and R2 using the router eigrp autonomous-system command.

Loopback Address Used as the Router ID

Another option to specify the EIGRP router ID is to use an IPv4 loopback address. The advantage of using a loopback interface, instead of the IPv4 address of a physical interface, is that unlike physical interfaces, it cannot fail. There are no actual cables or adjacent devices on which the loopback interface depends for being in the up state. Therefore, using a loopback address for the router ID can provide a more consistent router ID than using an interface address.

If the eigrp router-id command is not used and loopback interfaces are configured, EIGRP chooses the highest IPv4 address of any of its loopback interfaces. The following commands are used to enable and configure a loopback interface:

Router(config)# interface loopback number

Router(config-if)# ip address ipv4-address subnet-mask

Note: The EIGRP router ID is not changed, unless the EIGRP process is removed with the no router eigrp command or if the router ID is manually configured with the eigrp router-id command.

Verifying the EIGRP Process

Figure 2 shows the show ip protocols output for R1, including its router ID. The show ip protocols command displays the parameters and current state of any active routing protocol processes, including both EIGRP and OSPF. The show ip protocols command displays different types of output specific to each routing protocol.

Use the Syntax Checker in Figure 3 to configure and verify the router ID for R3.