Troubleshooting notes · Routing
IPv6 static route with a link-local next hop is rejected
An IPv6 static route to an FE80:: next hop is refused with "Interface has to be specified for a link-local nexthop". Why, and how to write it. Real output from Cisco IOS XE 17.18.
The symptom
An IPv6 default route that should be there is missing from the routing table. Only the backup route shows:
R1# show ipv6 route static | include ^S|via
S ::/0 [10/0]
via 2001:DB8:12::2
R1# show running-config | include ipv6 route
ipv6 route ::/0 2001:DB8:12::2 10
The primary route was written with a link-local next hop and no interface. Type it again and IOS says why it was never accepted:
R1(config)# ipv6 route ::/0 FE80::2
% Interface has to be specified for a link-local nexthop
Why it happens
Every IPv6 interface has a link-local address (FE80::/10), and the same link-local address can exist on several links at once. A link-local address on its own doesn't say which link to use, so IOS needs the outgoing interface as well. In a startup configuration, the refused line is easy to miss: the router simply boots without the route.
The fix
Name the interface before the link-local next hop:
R1(config)# ipv6 route ::/0 Ethernet0/0 FE80::2
Check it
show ipv6 route static should now list the route via the FE80:: address on that interface. If the route has a backup with a higher administrative distance, check that the backup points to a different link, or it won't help when the primary fails.
Practise this fault
This fault is in CCNA Lab 17 of CCNA Troubleshooting Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.
Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:
We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.