-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Default route removed when wired network comes up #107
Comments
Even if I disable a wired connection in networkmgr, once I bring it up via |
Okay, excuse me. This actually happens even without networkmgr, so it's some part of FreeBSD interfering in an unexpected manner. |
@rhaberkorn, did you remove NetworkMgr, or you only closed NetworkMgr? That behavior is familiar. Some code executes even if you close NetworkMgr. |
I only closed networkmgr, but did not Tried some dtracing to find out which process in particular is to blame. I guess it's devd which ships with a dhclient.conf - this is the only thing reacting on LINK_UP. |
Oh well, it turns out that networkmgr is indeed responsible. Here I used
In other words, it's /usr/local/etc/devd/networkmgr.conf. It's indeed running stuff even when networkmgr itself is not running. |
@rhaberkorn, thanks for all the information. |
But why does |
/etc/rc.d/routing does not add dynamic routes. See also: I believe that you should add the interface to all calls as in |
This fixes the most annoying problems for me. However I can still manage to flush the default route eg. when statically configuring em0 directly via networkmgr. There are probably other scripts, that call |
I will test your path in various system I have and see if it that works with systems without inet6. |
Which BSD system
FreeBSD
Describe the bug
Networkmgr appears to remove the default route whenever configuring any interface, even if a gateway is not set in the IPv4 config, ie. if the "Gateway" field is left empty.
How to reproduce the bug?
14.1-RELEASE-p2, networkmgr 0.6.4.
ifconfig
or simply replug the ethernet cable. A gateway is not set in the dialog of the wired connection in networkmgr, as we only want to communicate with an adhoc connected computer via a wired connection.The default route through wifi will vanish, breaking internet connectivity.
Expected behavior
networkmgr will not touch the old default route, that we received via DHCP.
I would also be happy if I could prevent networkmgr from managing certain interfaces at all, so I can manually manage em0 without it interfering.
The text was updated successfully, but these errors were encountered: