I installed and configured a L3 switch with OSPF but the router id was not what I expected.
I have 4 ip addresses on the switch.
I expected the loopback interface to become the OSPF router id but it was 192.xxx.xxx.1
Looked at the config and noticed the the loopback 0 had a mask of 255.255.255.252 and changed that to 255.255.255.255 and did a "clear ip ospf process" but could not get the router id to change.
Reloaded the switch and now the router id is 192.xxx.xxx.30 which is the loopback address.
Why did loopback 0 not become the router id?
Could I have got the router id to change without reloading the switch?