Hello,
I had a power outage and when my Vyos router went back online, the config was there except the OSPF configuration. It is strange because this OSPF config was here for years and properly saved. It did not lost anything except OSPF.
I recreated it but for some reason, I am totally unable to receive the ospf route in my table.
I have a second router with a similar config and it works fine.
Version: VyOS 1.4-rolling-202102060218
Release Train: sagitta
See below some command input including the config (anonymized)
vyos@MM-GG-BR2:~$ show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL
22.30.74.1 1 Full/DR 32.533s 22.30.74.1 eth0:22.30.74.2 0 0 0
22.30.74.3 128 2-Way/DROther 33.601s 22.30.74.3 eth0:22.30.74.2 0 0 0
22.30.74.4 128 Full/Backup 36.217s 22.30.74.4 eth0:22.30.74.2 0 0 0
22.30.74.6 1 2-Way/DROther 36.217s 22.30.74.6 eth0:22.30.74.2 0 0 0
vyos@MM-GG-BR2:~$ show ip ospf database
OSPF Router with ID (22.30.74.2)
Router Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum Link count
10.174.252.2 10.174.252.2 1567 0x80000007 0x99d3 1
10.174.252.3 10.174.252.3 1566 0x8000000a 0x5df0 2
22.30.74.1 22.30.74.1 203 0x8000000d 0xdee6 2
22.30.74.2 22.30.74.2 1572 0x8000000d 0x4dcf 1
22.30.74.3 22.30.74.3 1565 0x80000008 0x1988 2
22.30.74.4 22.30.74.4 68 0x80000006 0x57c6 1
22.30.74.6 22.30.74.6 1622 0x8000000a 0xf405 4
Net Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum
10.174.252.1 22.30.74.3 1565 0x80000006 0x3c5e
AS External Link States
Link ID ADV Router Age Seq# CkSum Route
0.0.0.0 22.30.74.1 993 0x80000006 0xd7a2 E2 0.0.0.0/0 [0x0]
0.0.0.0 22.30.74.2 1592 0x80000009 0xcbaa E2 0.0.0.0/0 [0x0]
0.0.0.0 22.30.74.3 69 0x80000007 0x6f11 E2 0.0.0.0/0 [0x0]
10.62.1.0 22.30.74.2 1582 0x80000007 0x4024 E2 10.62.1.0/26 [0x0]
10.62.1.0 22.30.74.3 68 0x80000006 0x7df9 E2 10.62.1.0/26 [0x0]
10.62.5.0 22.30.74.3 68 0x80000006 0x1241 E2 10.62.5.0/27 [0x0]
10.62.10.0 22.30.74.3 68 0x80000006 0x9599 E2 10.62.10.0/24 [0x0]
10.63.2.0 22.30.74.3 68 0x80000006 0x1d39 E2 10.63.2.0/27 [0x0]
10.63.3.0 22.30.74.3 68 0x80000006 0x5124 E2 10.63.3.0/26 [0x0]
10.64.1.0 22.30.74.3 68 0x80000006 0xe055 E2 10.64.1.0/24 [0x0]
10.64.5.0 22.30.74.3 68 0x80000006 0x3938 E2 10.64.5.0/26 [0x0]
10.174.252.0 10.174.252.2 136 0x80000006 0x5611 E2 10.174.252.0/29 [0x0]
10.174.252.0 22.30.74.3 68 0x80000006 0xab28 E2 10.174.252.0/29 [0x0]
10.174.254.0 22.30.74.3 68 0x80000006 0xad20 E2 10.174.254.0/30 [0x0]
22.30.74.0 10.174.252.2 136 0x80000006 0xd616 E2 22.30.74.0/27 [0x0]
22.30.74.0 22.30.74.3 68 0x80000006 0xbc84 E2 22.30.74.0/29 [0x0]
22.30.74.0 22.30.74.4 68 0x80000006 0xb689 E2 22.30.74.0/29 [0x0]
22.30.74.8 22.30.74.3 68 0x80000006 0x6ccc E2 22.30.74.8/29 [0x0]
22.30.74.32 22.30.74.4 68 0x80000006 0xe453 E2 22.30.74.32/27 [0x0]
22.30.74.64 22.30.74.4 68 0x80000006 0x34cb E2 22.30.74.64/29 [0x0]
22.30.74.72 22.30.74.4 68 0x80000006 0xfbf7 E2 22.30.74.72/30 [0x0]
172.16.100.0 22.30.74.1 1053 0x80000006 0x3835 E2 172.16.100.0/24 [0x0]
172.16.100.0 22.30.74.2 1652 0x80000007 0x5eee E2 172.16.100.0/24 [0x0]
192.168.0.0 22.30.74.3 68 0x80000006 0xb069 E2 192.168.0.0/23 [0x0]
vyos@MM-GG-BR2:~$ show ip route ospf
vyos@MM-GG-BR2:~$
vyos@MM-GG-BR2:~$ show ip ospf interface
eth0 is up
ifindex 3, MTU 1500 bytes, BW 1000 Mbit <UP,BROADCAST,RUNNING,MULTICAST>
Internet Address 22.30.74.2/29, Broadcast 22.30.74.7, Area 0.0.0.0
MTU mismatch detection: enabled
Router ID 22.30.74.2, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DROther, Priority 1
Backup Designated Router (ID) 22.30.74.4, Interface Address 22.30.74.4
Multicast group memberships: OSPFAllRouters
Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
Hello due in 4.040s
Neighbor Count is 4, Adjacent neighbor count is 2
vyos@MM-GG-BR2# show protocols ospf | commands
set area 0 area-type normal
set area 0 network '22.30.74.0/29'
set default-information originate metric-type '2'
set neighbor 22.30.74.1 priority '128'
set neighbor 22.30.74.3 poll-interval '60'
set neighbor 22.30.74.3 priority '1'
set parameters abr-type 'cisco'
set parameters router-id '22.30.74.2'
set redistribute connected metric-type '2'
set redistribute static metric-type '2'
set redistribute static route-map 'OSPFFILTER'
[edit]
vyos@MM-GG-BR2# run show log all | match ospf
Mar 18 09:43:36 MM-GG-BR2 vyos-configd[677]: Received message: {"type": "node", "data": "/usr/libexec/vyos/conf_mode/protocols_ospf.py"}
Mar 18 09:43:37 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:2]: Update
Mar 18 09:43:37 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:2]: Already ASBR
Mar 18 09:43:37 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:1]: Update
Mar 18 09:43:37 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:1]: Already ASBR
Mar 18 09:43:37 MM-GG-BR2 ospfd[1057]: LSA[Type5:0.0.0.0]: Not originate AS-external-LSA for default
Mar 18 09:43:37 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:0]: Update
Mar 18 09:43:37 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:1]: Update
Mar 18 09:43:37 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:2]: Update
Mar 18 09:43:37 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:2]: Already ASBR
Mar 18 09:43:37 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:3]: Update
Mar 18 09:43:37 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:3]: Already ASBR
Mar 18 09:50:48 MM-GG-BR2 vyos-configd[677]: Received message: {"type": "node", "data": "/usr/libexec/vyos/conf_mode/protocols_ospf.py"}
Mar 18 09:50:49 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:2]: Update
Mar 18 09:50:49 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:2]: Already ASBR
Mar 18 09:50:49 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:1]: Update
Mar 18 09:50:49 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:1]: Already ASBR
Mar 18 09:50:49 MM-GG-BR2 ospfd[1057]: LSA[Type5:0.0.0.0]: Not originate AS-external-LSA for default
Mar 18 09:50:49 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:0]: Update
Mar 18 09:50:49 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:1]: Update
Mar 18 09:50:49 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:2]: Update
Mar 18 09:50:49 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:2]: Already ASBR
Mar 18 09:50:49 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:3]: Update
Mar 18 09:50:49 MM-GG-BR2 ospfd[1057]: ASBR[default:Status:3]: Already ASBR