Hi!
It's my first post on this forum!
I need your help.
I manage the network that consists of 10 OSPF routers (Debian Linux 7.2 and Quagga 0.99.23.1)
DR RID 10.0.0.2 interface 10.0.0.82
BDR RID 10.0.0.1 interface 10.0.0.81
=================================================
DR quagga config:
interface eth0.10
ip address 10.0.0.82/28
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 lksdflksdfdsjf
ip ospf network non-broadcast
ip ospf priority 255
router ospf
ospf router-id 10.0.0.2
log-adjacency-changes detail
redistribute connected
redistribute static
network 10.0.0.80/28 area 0.0.0.1
area 0.0.0.1 authentication message-digest
neighbor 10.0.0.81
neighbor 10.0.0.83
neighbor 10.0.0.84
neighbor 10.0.0.85
neighbor 10.0.0.86
neighbor 10.0.0.87
neighbor 10.0.0.88
neighbor 10.0.0.89
neighbor 10.0.0.94
!
ip route 10.0.0.0/19 Null0
-------------------------------------------------
BDR quagga config
interface eth0.10
ip address 10.0.0.81/28
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 lksdflksdfdsjf
ip ospf network non-broadcast
ip ospf priority 255
router ospf
ospf router-id 10.0.0.1
log-adjacency-changes detail
redistribute connected
redistribute static
network 10.0.0.80/28 area 0.0.0.1
area 0.0.0.1 authentication message-digest
neighbor 10.0.0.82
neighbor 10.0.0.83
neighbor 10.0.0.84
neighbor 10.0.0.85
neighbor 10.0.0.86
neighbor 10.0.0.87
neighbor 10.0.0.88
neighbor 10.0.0.89
neighbor 10.0.0.94
!
ip route 10.0.0.0/19 Null0
=================================================
DR# show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL
10.0.0.1 255 Full/Backup 38.996s 10.0.0.81 eth0.10:10.0.0.82 0 0 0
10.0.0.83 0 Full/DROther 39.590s 10.0.0.83 eth0.10:10.0.0.82 6 0 0
10.0.0.84 0 Full/DROther 39.589s 10.0.0.84 eth0.10:10.0.0.82 5 0 0
10.0.0.85 0 Full/DROther 39.587s 10.0.0.85 eth0.10:10.0.0.82 4 0 0
10.0.0.86 0 Full/DROther 39.591s 10.0.0.86 eth0.10:10.0.0.82 7 0 0
10.0.0.87 0 Full/DROther 39.590s 10.0.0.87 eth0.10:10.0.0.82 6 0 0
10.0.0.88 0 Full/DROther 39.590s 10.0.0.88 eth0.10:10.0.0.82 7 0 0
10.0.0.89 0 Full/DROther 39.589s 10.0.0.89 eth0.10:10.0.0.82 7 0 0
10.0.0.94 0 Full/DROther 38.300s 10.0.0.94 eth0.10:10.0.0.82 7 0 0
BDR router has a problem - it's missing OSPF routing table
BDR# sh ip ospf route
============ OSPF network routing table ============
============ OSPF router routing table =============
============ OSPF external routing table ===========
border-routers table also empty.
It's the same time:
BDR# show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL
10.0.0.2 255 Full/DR 39.830s 10.0.0.82 eth0.10:10.0.0.81 0 0 0
10.0.0.83 0 Full/DROther 39.462s 10.0.0.83 eth0.10:10.0.0.81 1 0 0
10.0.0.84 0 Full/DROther 39.129s 10.0.0.84 eth0.10:10.0.0.81 0 0 0
10.0.0.85 0 Full/DROther 39.783s 10.0.0.85 eth0.10:10.0.0.81 1 0 0
10.0.0.86 0 Full/DROther 39.843s 10.0.0.86 eth0.10:10.0.0.81 1 0 0
10.0.0.87 0 Full/DROther 39.533s 10.0.0.87 eth0.10:10.0.0.81 1 0 0
10.0.0.88 0 Full/DROther 39.304s 10.0.0.88 eth0.10:10.0.0.81 1 0 0
10.0.0.89 0 Full/DROther 39.792s 10.0.0.89 eth0.10:10.0.0.81 1 0 0
10.0.0.94 0 Full/DROther 39.669s 10.0.0.94 eth0.10:10.0.0.81 1 0 0
-------------------------------------------------
BDR# show ip ospf database
OSPF Router with ID (10.0.0.1)
Router Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# CkSum Link count
10.0.0.1 10.0.0.1 1056 0x80000176 0x4c4d 1
10.0.0.2 10.0.0.2 1016 0x800195ac 0x1cae 1
10.0.0.83 10.0.0.83 1321 0x800002df 0x6d1b 1
10.0.0.84 10.0.0.84 1320 0x80000673 0x38b5 1
10.0.0.85 10.0.0.85 1320 0x8000501e 0x02f3 1
10.0.0.86 10.0.0.86 1046 0x800002e6 0x591f 1
10.0.0.87 10.0.0.87 1320 0x800056bc 0xae9c 1
10.0.0.88 10.0.0.88 1320 0x800002ab 0xcbe1 1
10.0.0.89 10.0.0.89 1320 0x800002e6 0x531c 1
10.0.0.94 10.0.0.94 1037 0x80005619 0xe7f1 1
Net Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# CkSum
10.0.0.82 10.0.0.2 2856 0x8000a6f0 0x8761
AS External Link States
Link ID ADV Router Age Seq# CkSum Route
10.100.1.7 10.0.0.83 506 0x80000118 0x63d4 E2 10.100.1.7/32 [0x0]
10.100.1.9 10.0.0.86 1009 0x80000013 0x4aee E2 10.100.1.9/32 [0x0]
10.100.1.10 10.0.0.89 1391 0x80000090 0x3384 E2 10.100.1.10/32 [0x0]
10.100.1.13 10.0.0.85 1176 0x80000213 0x2212 E2 10.100.1.13/32 [0x0]
10.100.1.17 10.0.0.86 1029 0x8000000c 0x0830 E2 10.100.1.17/32 [0x0]
10.100.1.20 10.0.0.86 603 0x80000008 0xf147 E2 10.100.1.20/32 [0x0]
10.100.1.21 10.0.0.83 896 0x80000212 0xdf4f E2 10.100.1.21/32 [0x0]
10.100.1.25 10.0.0.87 716 0x80000351 0x1ec8 E2 10.100.1.25/32 [0x0]
10.100.1.32 10.0.0.86 49 0x80000003 0x83ae E2 10.100.1.32/32 [0x0]
...
After restart Quagga (/etc/init.d/quagga restart) OSPF routes reappear
But after 1 hour of work, the routes disappear again.
I started 'debug ospf':
15:07:09 10.0.0.1 ospfd[3161]: Link State Acknowledgment sent to [10.0.0.82] via [eth0.10:10.0.0.81].
15:07:09 10.0.0.1 ospfd[3161]:
LSA[Type2,id(10.0.0.82),ar(10.0.0.2)]: is MaxAge
15:07:09 10.0.0.1 ospfd[3161]: SPF: calculation timer scheduled
15:07:09 10.0.0.1 ospfd[3161]: SPF: calculation timer delay = 200
15:07:09 10.0.0.1 ospfd[3161]: LSA[Type2,id(10.0.0.82),ar(10.0.0.2)]: MaxAge LSA remover scheduled
...
15:07:09 10.0.0.1 ospfd[3161]:
SPF: Timer (SPF calculation expire)
15:07:09 10.0.0.1 ospfd[3161]: ospf_spf_calculate: Start
15:07:09 10.0.0.1 ospfd[3161]: ospf_spf_calculate: running Dijkstra for area 0.0.0.1
15:07:09 10.0.0.1 ospfd[3161]: ospf_vertex_new: Created Router vertex 10.0.0.1
15:07:09 10.0.0.1 ospfd[3161]: ospf_spf_next: Next vertex of Router vertex 10.0.0.1
15:07:09 10.0.0.1 ospfd[3161]: Looking up Network LSA, ID: 10.0.0.82
15:07:09 10.0.0.1 ospfd[3161]: found the LSA
15:07:09 10.0.0.1 ospfd[3161]: LSA is MaxAge
15:07:09 10.0.0.1 ospfd[3161]: SPF Result: 0 [R] 10.0.0.1
15:07:09 10.0.0.1 ospfd[3161]: ========== OSPF routing table ==========
15:07:09 10.0.0.1 ospfd[3161]: ========================================
15:07:09 10.0.0.1 ospfd[3161]: ospf_process_stub()
rocessing stubs for area 0.0.0.1
15:07:09 10.0.0.1 ospfd[3161]: ospf_process_stubs()
rocessing router LSA, id: 10.0.0.1
15:07:09 10.0.0.1 ospfd[3161]: ospf_process_stubs(): we have 1 links to process
15:07:09 10.0.0.1 ospfd[3161]: ospf_process_stubs(): after examining links: Router vertex 10.0.0.1 distance 0 flags 0
15:07:09 10.0.0.1 ospfd[3161]: ospf_spf_calculate Router vertex 10.0.0.1 distance 0 flags 0
15:07:09 10.0.0.1 ospfd[3161]: ospf_vertex_free: Free Router vertex 10.0.0.1
15:07:09 10.0.0.1 ospfd[3161]: ospf_spf_calculate: Stop. 0 vertices
15:07:09 10.0.0.1 ospfd[3161]: ospf_ia_routing():start
15:07:09 10.0.0.1 ospfd[3161]: ospf_ia_routing():not ABR, considering all areas
15:07:09 10.0.0.1 ospfd[3161]: Pruning unreachable networks
15:07:09 10.0.0.1 ospfd[3161]: Pruning unreachable routers
15:07:09 10.0.0.1 ospfd[3161]:
Zebra: Route delete 10.0.0.80/28 nexthop 0.0.0.0
15:07:09 10.0.0.1 ospfd[3161]:
Route: Router Routing Table free
15:07:09 10.0.0.1 ospfd[3161]:
SPF: calculation complete
...
15:07:10 10.0.0.1 ospfd[3161]: ospf_lsa_discard() in ospf_ls_upd() point 5: lsa 0x7f494df836e0 Type-5
15:07:10 10.0.0.1 ospfd[3161]: LSA Type-5 from 10.0.0.2, ID: 10.100.8.42, ADV: 10.0.0.87
15:07:10 10.0.0.1 ospfd[3161]: RXmtL(2)--, NBR(10.0.0.2), LSA[Type5,id(10.100.8.42),ar(10.0.0.87)]
15:07:10 10.0.0.1 ospfd[3161]: ospf_lsa_discard() in ospf_ls_upd() point 5: lsa 0x7f494e4cc6d0 Type-5
15:07:10 10.0.0.1 ospfd[3161]: LSA Type-5 from 10.0.0.2, ID: 10.100.11.240, ADV: 10.0.0.87
15:07:10 10.0.0.1 ospfd[3161]: RXmtL(1)--, NBR(10.0.0.2), LSA[Type5,id(10.100.11.240),ar(10.0.0.87)]
15:07:10 10.0.0.1 ospfd[3161]: ospf_lsa_discard() in ospf_ls_upd() point 5: lsa 0x7f494e4cc740 Type-5
15:07:10 10.0.0.1 ospfd[3161]: NSM[eth0.10:10.0.0.81:10.0.0.2]: Full (PacketReceived)
...
15:07:10 10.0.0.1 ospfd[3161]: Route[External]: Calculate AS-external-LSA to 10.100.1.7/32
15:07:10 10.0.0.1 ospfd[3161]: Route[External]: Can't find originating ASBR route
15:07:10 10.0.0.1 ospfd[3161]: Route[External]: Calculate AS-external-LSA to 10.100.1.9/32
15:07:10 10.0.0.1 ospfd[3161]: Route[External]: Can't find originating ASBR route
...
15:07:10 10.0.0.1 ospfd[3161]: Zebra: Route delete 10.100.1.7/32 nexthop 10.0.0.83
15:07:10 10.0.0.1 ospfd[3161]: Zebra: Route delete 10.100.1.9/32 nexthop 10.0.0.86
...
I see the routing table disappeared after 1 hour of work.
It matches with LSA MaxAge = 3600
But I don't understand the given behavior of my router.
Has anyone encountered such a problem?
Is this a problem with Quagga or OSPF?
The server configuration hasn't changed in over a year.
p.s. Sorry, English isn't my native