router-id

Syntax

router-id <ROUTER-ADDRESS>

no router-id

Description

Sets an ID for the router in an IPv4 address format.

The no form of this command unconfigures the router-id for the instance and sets the router-id to the default. The router-id is changed to the dynamically selected router-id. The default router-id 0.0.0.0 updates to the routing stack that triggers to auto-elect a router-id based on the highest IP address of loopback interface, or the highest IP address of interfaces.

Command context

config-ospfv3

Parameters

<ROUTER-ADDRESS>

Specifies the router ID in IPv4 address format. Format: A.B.C.D

Authority

Administrators

Examples

Setting router-id in the OSPFv3 context:

switch(config)# router ospfv3 1
switch(config-ospfv3-1) # router-id 1.1.1.1

Unconfiguring router-id:

switch(config)# router ospfv3 1
switch(config-ospfv3-1)# no router-id