[Bug 733080] New: dhcpcd does not default gateway
https://bugzilla.novell.com/show_bug.cgi?id=733080 https://bugzilla.novell.com/show_bug.cgi?id=733080#c0 Summary: dhcpcd does not default gateway Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: rob.verduijn@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 I use a opensuse 12.1 client with a windows 2008 dhcp server. When the dhcp server also sets a static route using option 121 'classless static routes' the default gateway is not set. After removing the static route option 121 the default gateway is set properly. Adding the option 121 again causes the problem to appear again. I've noticed that the variable DHCPGIADDR is set with the gateway ip but not the variable GATEWAYS. in the /var/lib/dhcpcd/dhcpcd-eth0.info file. (see below) For some reason these two seem to be mixed up. I checked the /var/lib/dhcpcd/dhcpcd-eth0.info file and it has the following entries: DHCPGIADDR='192.168.1.254' IPADDR='192.168.1.14' NETMASK='255.255.255.0' NETWORK='192.168.1.0' BROADCAST='192.168.1.255' ROUTES='192.168.3.0,255.255.255.0,192.168.1.252' GATEWAYS='' DNSDOMAIN='survrech.local' DNSSERVERS='192.168.3.192 192.168.3.193' DHCPSID='192.168.3.192' LEASEDFROM='1322489148' LEASETIME='28800' RENEWALTIME='14400' REBINDTIME='25200' INTERFACE='eth0' CLASSID='dhcpcd 3.2.3' CLIENTID='01:00:0f:fe:58:25:7e' DHCPCHADDR='00:0f:fe:58:25:7e' Reproducible: Always Steps to Reproduce: 1. add a static route with option 121 'classless static routes' 2. restart dhcp server if necessary 3. restart dhcp client (to make sure the client does a real network stop and start, I've seen this fail multiple times on 12.1 but that's another issue) Actual Results: the default gateway is not set Expected Results: the default gateway should be set -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c1
Peter Varkoly
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c2
--- Comment #2 from Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c3
--- Comment #3 from Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c4
--- Comment #4 from Peter Varkoly
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c5
--- Comment #5 from Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c6
--- Comment #6 from Peter Varkoly
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c7
--- Comment #7 from Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c8
--- Comment #8 from Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c9
Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c10
Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c11
Peter Varkoly
It seems I copied the file from the wrong pc.
This is the correct one.
DHCPGIADDR='192.168.132.252' IPADDR='192.168.132.181' NETMASK='255.255.255.0' NETWORK='192.168.132.0' BROADCAST='192.168.132.255' ROUTES='192.168.3.0,255.255.255.0,192.168.132.253' GATEWAYS=''
There is now gateway defined!!
DNSDOMAIN='survrech.local' DNSSERVERS='192.168.132.1' DHCPSID='192.168.3.193' LEASEDFROM='1326361904' LEASETIME='28800' RENEWALTIME='14400' REBINDTIME='25200' INTERFACE='eth0' CLASSID='dhcpcd 3.2.3' CLIENTID='01:00:0f:fe:58:25:7e' DHCPCHADDR='00:0f:fe:58:25:7e'
The output of the command 'netstat -rn' netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 192.168.3.0 192.168.132.253 255.255.255.0 UG 0 0 0 eth0 192.168.132.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
The gateway should be 192.168.132.1 And the static route that has been added is the one that points to the 192.168.3.0 subnet
The dhcp servers are windows servers 192.168.3.192 and 192.168.3.193.
The layer3 switch (cisco) is set up with an iphelper for those ip addresses to enable forwarding of dhcp-requests and answers.
The windows admin set it up with the recommended (by MS) method using 80% of the range for the primary and 20% for the secondary dhcp server.
The serverers have been checked for configuration errors using a different distro (ubuntu11.10) the gateway is set properly when using a static route.
As you can see the DHCPGIADDR='192.168.132.252' is set to the wrong ip.
Rob Verduijn
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c12
--- Comment #12 from Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c13
Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c14
Peter Varkoly
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c15
Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c16
--- Comment #16 from Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c17
Peter Varkoly
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c18
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c19
--- Comment #19 from Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c20
Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c21
Alex S
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c22
Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c23
--- Comment #23 from Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c24
Peter Varkoly
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c25
Roy Marples
it seems the people from dnsmasq did not understand it either, their dhcp server behaves the same way.
Actually their DHCP server is just fine, it's your config that is wrong. dhcp-option=3,172.16.1.10 #dhcp-option=121,172.16.2/24,1.2.3.4 should be this (not tested) dhcp-option=3,172.16.1.10 dhcp-option=121,172.16.2/24,1.2.3.4,0.0.0.0/0,172.16.1.10 Basically it's up to you as the DHCP administrator to put the default route into the classless static routes option. See here: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2009q3/003205.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c26
--- Comment #26 from Rob Verduijn
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c27
--- Comment #27 from Roy Marples
From dhcp.c:
if (!(*opts & DHCPCD_CSR_WARNED)) { syslog(LOG_DEBUG, "%s: using Classless Static Routes", ifname); *opts |= DHCPCD_CSR_WARNED; } But that might have been added in a newer version than what SuSE uses -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=733080
https://bugzilla.novell.com/show_bug.cgi?id=733080#c28
--- Comment #28 from Rob Verduijn
participants (1)
-
bugzilla_noreply@novell.com