Bug 441886
Summary: | NM does not honor dhcp-client-identifier or append domain-name-servers in /etc/dhclient.conf | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Orion Poplawski <orion> |
Component: | NetworkManager | Assignee: | Dan Williams <dcbw> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 9 | CC: | dcbw, gczarcinski, wtogami |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-09-28 18:45:57 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Orion Poplawski
2008-04-10 17:25:04 UTC
You'll want to move those options to the interface specific config files dhclient-eth0.conf, etc, not in dhclient.conf. however, can you attach the output of /var/log/messages where NM shows what options dhclient is returning so we can figure out if this is a dhclient problem or an NM problem? Thanks! (In reply to comment #1) > You'll want to move those options to the interface specific config files > dhclient-eth0.conf, etc, not in dhclient.conf. > This seems to reverse prior behaviour as indicated by bug #385211. Also, it makes things difficult from a sysadmin perspective when the names and number of interfaces change from machine to machine, but I want the options to apply to all interfaces. > however, can you attach the output of /var/log/messages where NM shows what > options dhclient is returning so we can figure out if this is a dhclient problem > or an NM problem? Thanks! I suspect the duplication might be arising out of having both the wired and wireless connection active at the same time - and the wireless bounces up and down. I can't reproduce the duplicate entries at the moment. One problem I do see though - I connect to wireless with wired connected. Then unplug the wired connection. nm-applet icon goes to the crossed out plug and /etc/resolv.conf is emptied though the wireless connection is still active. NM messages after pulling: Apr 11 11:55:34 bona NetworkManager: <info> Deactivating device eth0. Apr 11 11:55:34 bona NetworkManager: <info> eth0: canceled DHCP transaction, dhclient pid 2220 Ah, then I plug back in and I get the duplicate entries in /etc/resolv.conf. NM messages Apr 11 11:58:47 bona NetworkManager: <info> Policy set (eth1) as default device for routing and DNS. Apr 11 11:58:47 bona NetworkManager: <info> Activation (eth0) starting connection 'Auto eth0' Apr 11 11:58:47 bona NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled... Apr 11 11:58:47 bona NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) started... Apr 11 11:58:47 bona NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled... Apr 11 11:58:47 bona NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) complete. Apr 11 11:58:47 bona NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) starting... Apr 11 11:58:47 bona NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) successful. Apr 11 11:58:47 bona NetworkManager: <info> Activation (eth0) Stage 3 of 5 (IPConfigure Start) scheduled. Apr 11 11:58:47 bona NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete. Apr 11 11:58:47 bona NetworkManager: <info> Activation (eth0) Stage 3 of 5 (IPConfigure Start) started... Apr 11 11:58:47 bona NetworkManager: <info> Activation (eth0) Beginning DHCP transaction. Apr 11 11:58:47 bona NetworkManager: <info> dhclient started with pid 4484 Apr 11 11:58:47 bona NetworkManager: <info> Activation (eth0) Stage 3 of 5 (IPConfigure Start) complete. Apr 11 11:58:47 bona NetworkManagerDispatcher: stopping ypbind Apr 11 11:58:47 bona NetworkManager: <info> DHCP: device eth0 state changed normal exit -> preinit Apr 11 11:58:47 bona NetworkManagerDispatcher: stopping autofs Apr 11 11:58:50 bona NetworkManagerDispatcher: stopping ntpd Apr 11 11:58:51 bona NetworkManager: <info> DHCP: device eth0 state changed preinit -> bound Apr 11 11:58:51 bona NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IPConfigure Get) scheduled... Apr 11 11:58:51 bona NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IPConfigure Get) started... Apr 11 11:58:51 bona NetworkManager: <info> address 192.168.0.113 Apr 11 11:58:51 bona NetworkManager: <info> netmask 255.255.255.0 Apr 11 11:58:51 bona NetworkManager: <info> broadcast 192.168.0.255 Apr 11 11:58:51 bona NetworkManager: <info> gateway 192.168.0.1 Apr 11 11:58:51 bona NetworkManager: <info> nameserver '192.168.0.8' Apr 11 11:58:51 bona NetworkManager: <info> nameserver '192.168.0.12' Apr 11 11:58:51 bona NetworkManager: <info> hostname 'bona' Apr 11 11:58:51 bona NetworkManager: <info> domain name 'cora.nwra.com' Apr 11 11:58:51 bona NetworkManager: <info> Activation (eth0) Stage 5 of 5 (IPConfigure Commit) scheduled... Apr 11 11:58:51 bona NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IPConfigure Get) complete. Apr 11 11:58:51 bona NetworkManager: <info> Activation (eth0) Stage 5 of 5 (IPConfigure Commit) started... Apr 11 11:58:52 bona NetworkManager: <info> Policy set (eth1) as default device for routing and DNS. Apr 11 11:58:52 bona NetworkManager: <info> Policy set (eth0) as default device for routing and DNS. Apr 11 11:58:52 bona NetworkManager: <info> Activation (eth0) successful, device activated. Apr 11 11:58:52 bona NetworkManager: <info> Activation (eth0) Stage 5 of 5 (IPConfigure Commit) complete. Any chance you could pull down the latest koji: http://koji.fedoraproject.org/koji/buildinfo?buildID=47429 and see if that fixes the multi-connection issues for you? It should... Thanks! Well, 3614 still brings up the wireless network in addition to the wired network. However, when I unplug, the applet icon immediately changes to a wireless icon. When I plug in the cable again I'm back to the plug icon but I have duplicate nameserver/domain entries in /etc/resolv.conf again. So, the icons are correct, but that's about it it seems. Changing version to '9' as part of upcoming Fedora 9 GA. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping OK, until NetworkManager can be changed to properly handling dynamic host name update [that is, passing the DHCP_HOSTNAME= to dhcpd], I have come up with a workaround that handles both wired and wireless connections. There already is come code so that specifying 'send host-name "xxxx"; ' in a /etc/dhclient-eth0.conf file will set the name "xxxx" when dhclient initializes the interface. You can either do this manually or use s-c-network. This should also be set by anaconda but is not ... anaconda only sets NM_CONTROLLED= rather than NM_CONTROLLED=yes as well. Now I have found that I can "fake it" for wireless connections. I created a /etc/dhclient-wlan0.con with 'send host-name "xxxx"; ' in it and it worked ... dhcpd updated dns with the "xxxx" name. Since interface connections may go up or down but a system name is usually fixed, there should be some central place to specify the name ... /etc/dhclient.conf ?? Well, it does not work perfectly the way I wanted ... the names must be different on wired and wireless. bind (named) rejected making them the smae and updating the ip. NetworkManager-0.7.0-0.11.svn3846.fc9, NetworkManager-vpnc-0.7.0-0.10.svn3846.fc9, NetworkManager-openvpn-0.7.0-15.svn3846.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update NetworkManager NetworkManager-vpnc NetworkManager-openvpn'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-6761 NetworkManager-openvpn-0.7.0-15.svn3930.fc9,NetworkManager-vpnc-0.7.0-0.10.svn3928.fc9,NetworkManager-0.7.0-0.11.svn3930.fc9 has been submitted as an update for Fedora 9 NetworkManager-openvpn-0.7.0-15.svn3930.fc8,NetworkManager-vpnc-0.7.0-0.10.svn3928.fc8,NetworkManager-0.7.0-0.11.svn3930.fc8 has been submitted as an update for Fedora 8 NetworkManager-openvpn-0.7.0-15.svn4027.fc9,NetworkManager-vpnc-0.7.0-0.10.svn4024.fc9,NetworkManager-0.7.0-0.11.svn4022.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/NetworkManager-openvpn-0.7.0-15.svn4027.fc9,NetworkManager-vpnc-0.7.0-0.10.svn4024.fc9,NetworkManager-0.7.0-0.11.svn4022.fc9 NetworkManager-0.7.0-0.11.svn4022.fc8,NetworkManager-openvpn-0.7.0-15.svn4027.fc8,NetworkManager-vpnc-0.7.0-0.10.svn4024.fc8,NetworkManager-pptp-0.7.0-0.10.svn4027.fc8 has been submitted as an update for Fedora 8. http://admin.fedoraproject.org/updates/NetworkManager-0.7.0-0.11.svn4022.fc8,NetworkManager-openvpn-0.7.0-15.svn4027.fc8,NetworkManager-vpnc-0.7.0-0.10.svn4024.fc8,NetworkManager-pptp-0.7.0-0.10.svn4027.fc8 NetworkManager-pptp-0.7.0-0.10.svn4027.fc9, NetworkManager-openvpn-0.7.0-15.svn4027.fc9, NetworkManager-vpnc-0.7.0-0.10.svn4024.fc9, NetworkManager-0.7.0-0.11.svn4022.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update NetworkManager-pptp NetworkManager-openvpn NetworkManager-vpnc NetworkManager'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-7375 NetworkManager-0.7.0-0.11.svn4022.fc8, NetworkManager-openvpn-0.7.0-15.svn4027.fc8, NetworkManager-vpnc-0.7.0-0.10.svn4024.fc8, NetworkManager-pptp-0.7.0-0.10.svn4027.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update NetworkManager NetworkManager-openvpn NetworkManager-vpnc NetworkManager-pptp'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-7484 NetworkManager-0.7.0-0.11.svn4022.fc8, NetworkManager-openvpn-0.7.0-15.svn4027.fc8, NetworkManager-vpnc-0.7.0-0.10.svn4024.fc8, NetworkManager-pptp-0.7.0-0.10.svn4027.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report. NetworkManager-pptp-0.7.0-0.10.svn4027.fc9, NetworkManager-openvpn-0.7.0-15.svn4027.fc9, NetworkManager-vpnc-0.7.0-0.10.svn4024.fc9, NetworkManager-0.7.0-0.11.svn4022.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report. |