Page 1 of 1

OSPF router-id election

Posted: 22 Aug 2016 23:13
by xijq227
Hypervisor:
Unified Networking Lab with TiMOS-B-12.0.R11

Topology:
R1-----R2

Problem:
On R1:
interface "system"
address 1.1.1.1/32
no shutdown
exit
interface "toR2"
address 12.1.1.1/24
port 1/1/1
no shutdown
exit
#--------------------------------------------------
echo "OSPFv2 Configuration"
#--------------------------------------------------
ospf
no shutdown
exit
#--------------------------------------------------
echo "OSPFv2 (Inst: 10) Configuration"
#--------------------------------------------------
ospf 10
area 0.0.0.0
interface "system"
no shutdown
exit
interface "toR2"
interface-type point-to-point
no shutdown
exit
exit
no shutdown
exit
The router couldn't auto-elect a router-id, thus, ospf operation status is disabled:
*A:vRR>config>router# show router ospf 10 status

===============================================================================
OSPFv2 (10) Status
===============================================================================
OSPF Cfg Router Id : 0.0.0.0
OSPF Oper Router Id : 0.0.0.0
OSPF Version : 2
OSPF Admin Status : Enabled
OSPF Oper Status : Disabled

Re: OSPF router-id election

Posted: 28 Aug 2016 16:27
by vasudha202
OSPF router ID is automatically derived only for the base instance. For other instances (for example ospf instance 10 like you have) you need to explicitly specify it while creating the instance or after (and restart ospf for it to take effect):
*A:R1# configure router ospf 10
- no ospf [<ospf-instance>]
- ospf [<ospf-instance>] [<router-id>]

<ospf-instance> : [0..31]
<router-id> : <ip-address>

Re: OSPF router-id election

Posted: 03 Sep 2016 08:18
by thekotaksampah
You should restart your OSPF process in your routing, do command:

configure router ospf shutdown
configure router ospf no shutdown

Hope it works J,

Re: OSPF router-id election

Posted: 11 Sep 2016 11:43
by keith_250
Your RID on the VSIM should default to 255.0.0.0 if nothing is configured. In a real device if nothing is configured the base MAC address of the chassis is used.

depending on your code release you should be able to clear OSPF using the below (im on r14)

*A:r1# clear router ospf neighbor
<ip-int-name|ip-address>
"system" "v12"