Page MenuHomeDevCentral

IPv6 route should include interface on FreeBSD
Closed, ResolvedPublic

Description

After T2225:

WindRiver
$ nc 2001:bc8:2e84:700:0:dead:c0de:b07 18000
.jump
Jumping servers......
[17:12:16] Trying server irc.libera.chat:+6697
[17:12:16] Failed connect to irc.libera.chat (No route to host)

$ ping -6 ipv6.google.com                                                                                              
ping: UDP connect: No route to host

$ netstat -rn
[...]
fe80::a293:51ff:feb7:55ef%igb0    link#3                        UHS            igb0
[...]

Route to the gateway is present, but default is missing.

The route configured by Salt is ipv6_route_default="default fe80::a293:51ff:feb7:55ef". No interface is set.

WindRiver
$ route -6 add default fe80::a293:51ff:feb7:55ef
route: message indicates error: Invalid argument
add net default: gateway fe80::a293:51ff:feb7:55ef fib 0: Invalid argument

$ route -6 add default fe80::a293:51ff:feb7:55ef%igb0
add net default: gateway fe80::a293:51ff:feb7:55ef%igb0

$ ping -6 ipv6.google.com  
PING(56=40+8+8 bytes) 2001:bc8:2e84:700::da7a:7001 --> 2a00:1450:4007:81d::200e
16 bytes from 2a00:1450:4007:81d::200e, icmp_seq=0 hlim=118 time=1.500 ms
[…]

We can actually simplify the IPv6 route syntax by using directly this:

ipv6_defaultrouter="fe80::a293:51ff:feb7:55ef%igb0"

Related Objects

Event Timeline

dereckson triaged this task as High priority.Apr 3 2026, 17:37
dereckson created this task.
dereckson moved this task from Backlog to Servers config on the Salt board.
WindRiver
$ netstat -6rn
Routing tables

Internet6:
Destination                       Gateway                       Flags         Netif Expire
::/96                             link#5                        URS             lo0
default                           fe80::a293:51ff:feb7:55ef%igb0 UGS           igb0
::1                               link#5                        UHS             lo0
::ffff:0.0.0.0/96                 link#5                        URS             lo0
[…]