Switch 7700 Command reference Guide, v2.0

Table Of Contents
158 CHAPTER 5: USING ROUTING PROTOCOL COMMANDS
If the Router ID changes, a new Router ID takes effect to execute the
command.
Re-elect DR and BDR conveniently.
OSPF configuration before the restart will not lose.
After you enter the command, you are asked to confirm that the OSPF protocol
should be re-enabled.
Example
To reset the OSPF process, enter the following:
<SW7700>reset ospf all
router id Syntax
router id router_id
undo router id
View
System view
Parameter
router_id Enter the router ID as a 32-bit unsigned integer.
Description
Using the router id command, you can configure the ID of a router running the
OSPF protocol.
Using the undo router id command, you can cancel the router ID that has been
set.
By default, use the smallest IP address of addresses of all the router interfaces as
the router ID.
The router ID is a 32-bit unsigned integer that uniquely identifies a router in an
OSPF system. You can specify the ID for a router. If a router ID isn’t specified, the
router automatically selects one of the configured IP address as the ID of this
router. If an IP address is not configured for any interface, the router ID must be
configured in OSPF view. Otherwise, OSPF protocol cannot be enabled.
When the router ID is configured manually, the IDs of any two routers cannot be
same in the autonomous system. So, the IP address of certain interface might as
well be selected as the id of this router.
The modified router ID will not be valid unless OSPF is re-enabled.
Related command: ospf.
Example
To set the router ID to 10.1.1.3., enter the following:
[SW7700]router id 10.1.1.3