Skip to content

OSPFv3 cannot remove IPv6 routes that have no next hop? #18454

@ChinHunghsing

Description

@ChinHunghsing

There are two devices running ospf6d and zebra. Device A's eth1 and Device B's eth2 form an adjacency. Before establishing the adjacency, IPv4 addresses from the same subnet were configured on eth1 and eth2. After the adjacency was established, some IPv6 prefixes were configured on eth1 without specifying a next hop. At this point, the peer device B learned these routes but also did not display a next hop. When certain IPv6 prefixes on eth1 were deleted from device A, an unusual issue occurred: only some routes were successfully deleted on both devices A and B, while others were not removed. However, if I add or remove the same IPv6 routes on other interfaces of device A, the deletion works normally. Alternatively, if IPv6 addresses (instead of IPv4) are configured before establishing the adjacency, and IPv6 routes are subsequently configured/deleted after the adjacency is formed, both devices can delete them properly. Could this be a bug? The logs are here:

"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] ospf6_install_lsa Install LSA: [Inter-Prefix Id:0.0.0.1 Adv:10.146.70.45] age 3600 seqnum 80000032 in LSDB."
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] Originating summary in area 0.0.0.1 for 3024:201:d0::/64 cost 15"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] The route has just removed, purge previous LSA"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] LSA: Premature aging: [Inter-Prefix Id:0.0.0.1 Adv:10.146.70.45]"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] LSA Expire:"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] [Inter-Prefix Id:0.0.0.1 Adv:10.146.70.45]"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] Age: 3600 SeqNum: 0x80000004 Cksum: d2d8 Len: 36"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] ospf6_install_lsa Install LSA: [Inter-Prefix Id:0.0.0.1 Adv:10.146.70.45] age 3600 seqnum 80000004 in LSDB."
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] Send remove route: 3024:201:d0::/64"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] Best-path removal resulted Sencondary addition"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] nexthop: fe80::fcfc:feff:fe0d:fd0%eth2(8)"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] area 1.0.0.1 route table 0xb2e730: route next: (nil)<-[0xa07150]->0xb3a890 , route ref count 2"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] area 1.0.0.1 route table 0xb2e730: route remove 0xa07150: 3024:201:d3::/64 cost 15 refcount 1"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] global route table 0xb1ac70: route remove 0xb3b5f0: 3024:201:d3::/64 cost 15 refcount 1"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] Originating summary in area 0.0.0.0 for 3024:201:d3::/64 cost 15"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] The route has just removed, purge previous LSA"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] LSA: Premature aging: [Inter-Prefix Id:0.0.0.2 Adv:10.146.70.45]"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] LSA Expire:"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] [Inter-Prefix Id:0.0.0.2 Adv:10.146.70.45]"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] Age: 3600 SeqNum: 0x80000029 Cksum: aed3 Len: 36"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] ospf6_install_lsa Install LSA: [Inter-Prefix Id:0.0.0.2 Adv:10.146.70.45] age 3600 seqnum 80000029 in LSDB."
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] Originating summary in area 0.0.0.1 for 3024:201:d3::/64 cost 15"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] The route has just removed, purge previous LSA"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] LSA: Premature aging: [Inter-Prefix Id:0.0.0.2 Adv:10.146.70.45]"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] LSA Expire:"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] [Inter-Prefix Id:0.0.0.2 Adv:10.146.70.45]"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] Age: 3600 SeqNum: 0x80000004 Cksum: f8ae Len: 36"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] ospf6_install_lsa Install LSA: [Inter-Prefix Id:0.0.0.2 Adv:10.146.70.45] age 3600 seqnum 80000004 in LSDB."
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] Send remove route: 3024:201:d3::/64"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] Best-path removal resulted Sencondary addition"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] nexthop: fe80::fcfc:feff:fe0d:fd0%eth2(8)"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] area 1.0.0.1 route table 0xb2e730: route next: (nil)<-[0xb3a890]->0xb4d090 , route ref count 2"
"2025-03-20 09:46:05","DEBUG","OSPF6D","00000000","[(null)] [0] area 1.0.0.1 route tabl

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions