[Bug 555095] New: 11.2: dhclient not setting default route
http://bugzilla.novell.com/show_bug.cgi?id=555095 Summary: 11.2: dhclient not setting default route Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jnelson-suse@jamponi.net QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.15) Gecko/2009102100 SUSE/3.0.15-0.1.2 Firefox/3.0.15 After upgrading one of my machines, which uses dhclient to obtain an IP address from my ISP, I noticed that I was getting all sorts of "martial packet" messages in my logs and the internet was not accessible. The interface had an IP and so on, but I eventually tracked the problem to *NO DEFAULT ROUTE*. I brought the interface up and down a few times to no avail. I switched to dhcpcd and everything worked great after that. This was working perfectly in 11.1 Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555095
Larry Finger
http://bugzilla.novell.com/show_bug.cgi?id=555095
shuang qiu
http://bugzilla.novell.com/show_bug.cgi?id=555095
Marius Tomaschewski
A number of wireless users report this problem on 11.2 when both wired and wireless devices are set to start "on boot". Changing wired to start "on cable connection" fixes the problem.
Exactly -- in case of wired and wireless interfaces, use ifplugd with different priorities, e.g.: ifcfg-eth0 ==>> STARTMODE='ifplugd' IFPLUGD_PRIORITY='20' ifcfg-wlan0 ==>> STARTMODE='ifplugd' IFPLUGD_PRIORITY='10' When wired link is available, it will be used, otherwise the wireless one. When you're using the "on calble connect", it should also work with the dhclient. Please reopen when it does not work. The "martian packet" message appears, when a packed comes over a different interface than expected and is usually a hint for incomplete/wring config. It happens, e.g. when you're connected to a switch with multiple networks or with two interfaces to the same switch. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555095
Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=555095#c4
Robert Davies
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c5
Robert Davies
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c5
Robert Davies
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c7
--- Comment #7 from Jon Nelson
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c8
Marius Tomaschewski
Sorry, I wasn't able to respond as quickly as I would have preferred.
1. I upgraded via 'zypper dup'
2. I tried using 'ifplugd' instead of 'auto' or 'onboot' - no change!
The fact is, dhclient is *not* setting the default route under certain circumstances. That is the cause of my martian packet thing (which I already knew, but I wanted to explain how I came to understand that dhclient wasn't behaving). Switching to dhcpcd works, but this continues to bite other people.
Can switch to dhclient using DHCLIENT_BIN="dhclient" and set also DHCLIENT_DEBUG="yes" in /etc/sysconfig/network/dhcp, then rotate logs using "logrotate -f /etc/logrotate.conf" and reboot, please? After reboot, please call "dhcpcd-test" for each interface, e.g.: /tmp/dhcpcd-test.eth0.out &>/tmp/dhcpcd-test.eth0.out then also: (ip addr show ; ip -4 route show ; ip -6 route show ) &>/tmp/ip-config.txt Please copy all /etc/sysconfig/network/ifcfg-* files to e.g. /tmp/ifcfg/: mkdir /tmp/ifcfg/ ; cp /etc/sysconfig/network/ifcfg-* /tmp/ifcfg/ and replace all keys or passphrases with XXXXXXX. Then provide the following files as tar archive using following command in one line: tar cvzpf /tmp/bug555095.tgz \ /tmp/dhcpcd-test.*.out /tmp/ip-config.txt /var/log/{boot.msg,messages} \ /sbin/dhclient-script /etc/dhclient-*-hooks /var/log/dhclient-script.log \ /etc/sysconfig/network/{config,dhcp,routes,ifroute-*} /tmp/ifcfg/* \ /var/run/netconfig -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c9
Arjen de Korte
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c10
--- Comment #10 from Arjen de Korte
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c11
Arjen de Korte
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c12
--- Comment #12 from Robert Davies
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c13
--- Comment #13 from Marius Tomaschewski
Created an attachment (id=331830) --> (http://bugzilla.novell.com/attachment.cgi?id=331830) [details] Change path to if-${interface} files
Well, that was a lot easier to fix than I expected. It seems that the script is looking for some files in the wrong location. The 'if-${interface}' files that previously lived in
/dev/shm/sysconfig/
before are now located in
/dev/.sysconfig/network/
The attached patch updates these paths in /sbin/dhclient-script. After that, the default route is set correctly again.
Ups... Mea culpa. Thanks! It looks I didn't adopted it or made a merge mistake for a self-introduced change in sysconfig and didn't noticed it all the time :-( -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c14
Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c15
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c16
--- Comment #16 from Robert Davies
It looks I didn't adopted it or made a merge mistake for a self-introduced change in sysconfig and didn't noticed it all the time :-(
Perhaps the use of hard coded pathnames in many of the SuSE Linux scripts (not just Marius's but the general style used in most places) is the real problem. In related scripts if you set variables you can define them in one place, with a sourced file. Can save a lot of grepping around, and trivial patching with sed(1). Basically an internally used version of what sysconfig scripts do for user configurable variables. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c17
Christian Dengler
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c18
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c19
Christian Dengler
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c20
--- Comment #20 from Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c21
--- Comment #21 from Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c22
--- Comment #22 from Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c24
Marius Tomaschewski
The SWAMPID for this issue is 29592. Please submit the patch and patchinfo file using this ID. (https://swamp.suse.de/webswamp/wf/29592)
Submitted patchingo and fixed package to - openSUSE:11.2:Update:Test, request id 26817 and together with update to dhcp-3.1.3 also to - openSUSE:Factory, request id 26816 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c26
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=555095
http://bugzilla.novell.com/show_bug.cgi?id=555095#c27
--- Comment #27 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com