IPv6 Configuration Guide K/KA/KB.15.15
Example 115 Displaying the router ID when OSPFv3 is enabled
If a routing switch is using a router ID such as 10.10.10.1:
HP Switch(config)# show ipv6 ospf3
OSPFv3 General Status
OSPFv3 Protocol : Enabled
Router ID : 10.10.10.1
NOTE: If one of the following is true, the router ID is set to 0.0.0.0:
• No manual router ID, IPv4 network address, or IPv4 loopback interface address is configured
on the routing switch.
• No dynamic routing protocol is enabled on the routing switch.
Manually configuring a router ID
For more information about configuring a router ID, see “Configuring a router ID” (page 172).
You can override the current router ID assignment by explicitly configuring the router ID to any
valid IPv4 address. (This address must be unique; not configured on another device in the network.)
Syntax:
[no] ip router-id n.n.n.n
This optional command configures a router ID for use by any dynamic routing
protocol configured on the routing switch. The assignment applies across all routable
VLANs on the routing switch, and uses the IPv4 32-bit dotted decimal format. The
resulting IPv4 address must be unique in the network.
The no ip router-id command replaces a manually configured router ID with
the first-detected IPv4 network address configured on a VLAN. If an IPv4 address
is not detected on a VLAN, then the lowest-numbered IPv4 address of the
lowest-numbered IPv4 loopback interface is used.
Changing an existing router ID
1. Go to the global config context.
The CLI prompt will appear similar to the following:
HP Switch(config)#_
2. Use ip router-id n.n.n.n to specify a new router ID.
This must be in the IPv4 (32-bit) dotted-decimal address format and must be unique in the
routing switch configuration and your network. For example:
• If both OSPFv2 and OSPFv3 are enabled, you will see the following:
OSPFv3 and OSPFv2 are running. Router-id will be applied immediately.
Protocol will be reset. Continue [y/n]?
Press Y to continue, or press N to exit from the command without changing the ID.
• If a routing protocol is not enabled, the new ID is entered and the global config prompt
is displayed.
Viewing a manually configured router ID
Use one of the following commands:
168 IPv6 Routing Basics










