Summary: | service routing restart always fails | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Enji Cooper <ngie> | ||||
Component: | conf | Assignee: | freebsd-net (Nobody) <net> | ||||
Status: | Open --- | ||||||
Severity: | Affects Many People | CC: | grahamperrin | ||||
Priority: | --- | ||||||
Version: | Unspecified | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Enji Cooper
2012-10-09 23:30:15 UTC
Responsible Changed From-To: freebsd-bugs->freebsd-rc Over to maintainer(s). For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi> I can't guess whether the patch here is still applicable, I do know that I'm always left without Internet connectivity after running the command: service routing restart ---- root@mowa219-gjp4-8570p-freebsd:~ # uname -KU 1400078 1400078 root@mowa219-gjp4-8570p-freebsd:~ # service routing restart delete host 127.0.0.1: gateway lo0 default 192.168.1.1 -fib 0 done delete host ::1: gateway lo0 delete net fe80::: gateway ::1 delete net ff02::: gateway ::1 delete net ::ffff:0.0.0.0: gateway ::1 delete net ::0.0.0.0: gateway ::1 delete net default: gateway 2001:470:1f1c:a0::1 add host 127.0.0.1: gateway lo0 add host ::1: gateway lo0 add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 add net default: gateway 2001:470:1f1c:a0::1 root@mowa219-gjp4-8570p-freebsd:~ # ---- A longhand workaround that I found, through many hours of trial and error (my current use case includes em(4) and iwn(4), with wired network service nearly always available): ls /var/run/resolvconf/interfaces/ ; route delete default ; ifconfig wlan0 down && ifconfig em0 down && sleep 5 ; ls /var/run/resolvconf/interfaces/ ; ifconfig em0 up && sleep 15 ; ls /var/run/resolvconf/interfaces/ ; cat /etc/resolv.conf ; ping -c 2 -6 freshports.org |