here is my topology

- 450gx4 connect both 4011-e&w through seperate wireguard tunnel,network type is ptp, backbone area, id 0.0.0.0, ;
- icx7250 connect to both 4011-e&w through spf ethernet port, network type is ptp,stub area, id 10.12.0.0;
When both wireguard tunnel are works, lsa and ospf route on 4011-e and 4011-w are normal.
*** 4011-w**
[admin@rb4011-2w] /routing/ospf/lsa> print where id=192.168.9.0
Flags: S - self-originated, F - flushing, W - wraparound; D - dynamic
2 SD instance=ospf-instance-1 area=10.12.0.0 type="inter-area-prefix" originator=10.12.0.12 id=192.168.9.0 sequence=0x80000001
age=1138 checksum=0xA3BB body=
netmask=255.255.255.0
metric=107
0 D instance=ospf-instance-1 area=10.12.0.0 type="inter-area-prefix" originator=10.12.0.13 id=192.168.9.0 sequence=0x80000003
age=38 checksum=0xC196 body=
netmask=255.255.255.0
metric=111
1 D instance=ospf-instance-1 area=0.0.0.0 type="inter-area-prefix" originator=10.8.0.100 id=192.168.9.0 sequence=0x80002936
age=340 checksum=0x858F body=
netmask=255.255.255.0
metric=1
[admin@rb4011-2w] > routing route print where dst-address=192.168.9.0/24
Flags: A - ACTIVE; o - OSPF
Columns: DST-ADDRESS, GATEWAY, AFI, DISTANCE, SCOPE, TARGET-SCOPE, IMMEDIATE-GW
DST-ADDRESS GATEWAY AFI DISTANCE SCOPE TARGET-SCOPE IMMEDIATE-GW
Ao 192.168.9.0/24 172.29.100.5%wg106 ip4 110 20 10 172.29.100.5%wg106
*** 4011-e**
[admin@rb4011-2e] > routing ospf lsa print where id=192.168.9.0
Flags: S - self-originated, F - flushing, W - wraparound; D - dynamic
0 D instance=ospf-instance-1 area=0.0.0.0 type="inter-area-prefix" originator=10.8.0.100 id=192.168.9.0
sequence=0x80002936 age=405 checksum=0x858F body=
netmask=255.255.255.0
metric=1
1 D instance=ospf-instance-1 area=10.12.0.0 type="inter-area-prefix" originator=10.12.0.12 id=192.168.9.0
sequence=0x80000001 age=1211 checksum=0xA3BB body=
netmask=255.255.255.0
metric=107
2 SD instance=ospf-instance-1 area=10.12.0.0 type="inter-area-prefix" originator=10.12.0.13 id=192.168.9.0
sequence=0x80000003 age=95 checksum=0xC196 body=
netmask=255.255.255.0
metric=111
[admin@rb4011-2e] > /routing route print where dst-address=192.168.9.0/24
Flags: A - ACTIVE; o - OSPF
Columns: DST-ADDRESS, GATEWAY, AFI, DISTANCE, SCOPE, TARGET-SCOPE, IMMEDIATE-GW
DST-ADDRESS GATEWAY AFI DISTANCE SCOPE TARGET-SCOPE IMMEDIATE-GW
Ao 192.168.9.0/24 172.29.100.9%wg110 ip4 110 20 10 172.29.100.9%wg110
here is the icx7250’s ospf info:
SSH@lsxc-hxxy-icx7250#show ip ospf database link-state link-state-id 192.168.9.0
Ospf link-state by link-state ID 192.168.9.0 are in the following:
Area ID Aging LS ID Router Seq(hex) Chksum SyncState Type
10.12.0.0 1641 192.168.9.0 10.12.0.12 80000001 0000a3bb Done SUMM
LSA Header: options: 0x00, seq-nbr: 0x80000001, length: 28
NetworkMask: 255.255.255.0
TOS 0: metric: 107
Area ID Aging LS ID Router Seq(hex) Chksum SyncState Type
10.12.0.0 533 192.168.9.0 10.12.0.13 80000003 0000c196 Done SUMM
LSA Header: options: 0x00, seq-nbr: 0x80000003, length: 28
NetworkMask: 255.255.255.0
TOS 0: metric: 111
SSH@lsxc-hxxy-icx7250#show ip ospf interface
e 1/2/5 admin up, oper up, ospf enabled, state up
IP Address 192.168.13.2, Area 10.12.0.0
Database Filter: Not Configured
State ptpt, Pri 1, Cost 132, Options 0, Type pt-2-pt Events 15
Timers(sec): Transmit 1, Retrans 5, Hello 10, Dead 40
DR: Router ID 0.0.0.0 Interface Address 0.0.0.0
BDR: Router ID 0.0.0.0 Interface Address 0.0.0.0
Packets Received Packets Sent
Hello 1210 1097
Database 9 6
LSA Req 3 2
LSA Upd 66 96
LSA Ack 61 36
No Packet Errors!
Neighbor Count = 1, Adjacent Neighbor Count= 1
Neighbor: 192.168.13.1 [id 10.12.0.13]
In-Use Authentication: None, Key: None, Key-Id: None
e 2/2/5 admin up, oper up, ospf enabled, state up
IP Address 192.168.12.2, Area 10.12.0.0
Database Filter: Not Configured
State ptpt, Pri 1, Cost 122, Options 0, Type pt-2-pt Events 19
Timers(sec): Transmit 1, Retrans 5, Hello 10, Dead 40
DR: Router ID 0.0.0.0 Interface Address 0.0.0.0
BDR: Router ID 0.0.0.0 Interface Address 0.0.0.0
Packets Received Packets Sent
Hello 1188 1079
Database 9 6
LSA Req 3 2
LSA Upd 74 84
LSA Ack 49 42
No Packet Errors!
Neighbor Count = 1, Adjacent Neighbor Count= 1
Neighbor: 192.168.12.1 [id 10.12.0.12]
In-Use Authentication: None, Key: None, Key-Id: None
SSH@lsxc-hxxy-icx7250#show ip ospf interface brief
Number of Interfaces is 4
Interface Area IP Addr/Mask Cost State Nbrs(F/C)
e 1/2/5 10.12.0.0 192.168.13.2/29 132 ptpt 1/1
e 2/2/5 10.12.0.0 192.168.12.2/29 122 ptpt 1/1
ve 15 10.12.0.0 192.168.15.254/24 1 passive 0/0
ve 16 10.12.0.0 192.168.16.254/24 1 passive 0/0
when I shutdown the wireguard tunnel between 450gx4 and 4011-e, I expect the route for 192.168.9.0/24 on 4011-e will go through icx7250 → 4011-w → 450gx4, which means the gateway for route 192.168.9.0/24 should change from 172.29.100.9%wg110 to 192.168.13.1%sfp-lan, (connect to icx7250). but there is no route installed.
My question are:
- Is there any way to check the intermediate ospf route, there should be two routes for 192.168.9.0/24, one’s gw is 172.29.100.9, the others’ is 192.168.13.2. but /routing route print where dst-address=192.168.9.0/24 shows only one.
- Why the route for 192.168.9.0/24 didn’t install into to routing table?