OSPF router-id election
Posted: 22 Aug 2016 23:13
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
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