CURRENT: "service netif restart" looses default route
Trond Endrestøl
Trond.Endrestol at fagskolen.gjovik.no
Wed Oct 5 17:50:34 UTC 2016
On Wed, 5 Oct 2016 18:47+0200, O. Hartmann wrote:
>
> Today, I checked on two servers of ours running both a recent CURRENT (i.e. FreeBSD
> 12.0-CURRENT #43 r306701: Wed Oct 5 06:40:40 CEST 2016) via "service netif restart" the
> upcoming network and realised that the default route is lost then!
>
> I'm able to config the route via "service routing restart" - or manually as I did
> otherwise. But I recall that I did a simple "service netif restart" in 11-CURRENT
> recently and that worked.
>
> Has there been a change? What is now the official way to restart network?
I see something similar on stable/11, r306639. During boot this system
can't add its IPv6 default route. I need to add it manually
afterwards. Note, this is on XenServer 7.0.0, so maybe the hypervisor
play a certain role.
Oct 4 13:23:24 <console.info> [WITHHELD] kernel: add host 127.0.0.1: gateway lo0 fib 0: route already in table
Oct 4 13:23:24 <console.info> [WITHHELD] kernel: add net default: gateway 128.x.y.z
Oct 4 13:23:24 <console.info> [WITHHELD] kernel: Additional inet routing options: gateway=YES.
Oct 4 13:23:24 <console.info> [WITHHELD] kernel: add host ::1: gateway lo0 fib 0: route already in table
Oct 4 13:23:24 <console.info> [WITHHELD] kernel: add net fe80::: gateway ::1
Oct 4 13:23:24 <console.info> [WITHHELD] kernel: add net ff02::: gateway ::1
Oct 4 13:23:24 <console.info> [WITHHELD] kernel: add net ::ffff:0.0.0.0: gateway ::1
Oct 4 13:23:24 <console.info> [WITHHELD] kernel: add net ::0.0.0.0: gateway ::1
Oct 4 13:23:24 <console.info> [WITHHELD] kernel: route: writing to routing socket: Network is unreachable
Oct 4 13:23:24 <console.info> [WITHHELD] kernel: add net default: gateway 2001:x:y:z::1 fib 0: Network is unreachable
Also, why do the startup scripts attempt to add additional routes for
127.0.0.1 and ::1? I see that behaviour on both head and stable/11.
--
+-------------------------------+------------------------------------+
| Vennlig hilsen, | Best regards, |
| Trond Endrestøl, | Trond Endrestøl, |
| IT-ansvarlig, | System administrator, |
| Fagskolen Innlandet, | Gjøvik Technical College, Norway, |
| tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, |
| sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. |
+-------------------------------+------------------------------------+
More information about the freebsd-current
mailing list