[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 <zjjia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |varkoly@suse.com |ovo.novell.com | -- 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#c1 Peter Varkoly <varkoly@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |rob.verduijn@gmail.com --- Comment #1 from Peter Varkoly <varkoly@suse.com> 2012-01-12 08:37:41 UTC --- According to rfc 2131 giaddr is not the gateway address but the dhcp-relay agent not the gateway. "diaddr: Relay agent IP address, used in booting via a relay agent." If the variable GATEWAYS is not set that means the DHCP-server did not sent this option. Is 192.168.1.254 the gateway? I think the gateway is rather 192.168.1.252. -- 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#c2 --- Comment #2 from Rob Verduijn <rob.verduijn@gmail.com> 2012-01-12 11:01:06 UTC --- 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='' 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#c3 --- Comment #3 from Rob Verduijn <rob.verduijn@gmail.com> 2012-01-12 11:02:14 UTC --- The gateway is also the dns server. -- 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#c4 --- Comment #4 from Peter Varkoly <varkoly@suse.com> 2012-01-12 11:51:34 UTC --- I need the tcpdump of a dhcpcd request: 1. Start "tcpdump -nU -w dhcptcpdump port 67" in a terminal 2. Start "dhcpcd-test eth0" in an other terminal 3. If 2. terminated kill tcpdump Please send me the file dhcptcpdump. -- 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#c5 --- Comment #5 from Rob Verduijn <rob.verduijn@gmail.com> 2012-01-12 12:40:50 UTC --- Created an attachment (id=470902) --> (http://bugzilla.novell.com/attachment.cgi?id=470902) dhcprequest output from tcpdump -- 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#c6 --- Comment #6 from Peter Varkoly <varkoly@suse.com> 2012-01-12 14:33:04 UTC --- Have you started tcpdump with exactly the options "-nU -w dhcptcpdump port 67"? The file you have sent is in ascii format and I can not open it with wireshark. -- 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#c7 --- Comment #7 from Rob Verduijn <rob.verduijn@gmail.com> 2012-01-12 14:42:55 UTC --- Created an attachment (id=470923) --> (http://bugzilla.novell.com/attachment.cgi?id=470923) dhcprequest output from tcpdump second attempt this one ok ? -- 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#c8 --- Comment #8 from Rob Verduijn <rob.verduijn@gmail.com> 2012-01-23 10:12:39 UTC --- I see that the bug still has the status needinfo. What info is still required ? Rob -- 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#c9 Bruno Friedmann <bruno@ioda-net.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |bruno@ioda-net.ch InfoProvider|rob.verduijn@gmail.com | --- Comment #9 from Bruno Friedmann <bruno@ioda-net.ch> 2012-01-23 17:49:00 UTC --- Rob, you forget to change the status back to new, once you've uploaded your second trace, it seems. Done now -- 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#c10 Rob Verduijn <rob.verduijn@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Network |Network Version|Final |RC 1 AssignedTo|varkoly@suse.com |bnc-team-screening@forge.pr | |ovo.novell.com Product|openSUSE 12.1 |openSUSE 12.2 --- Comment #10 from Rob Verduijn <rob.verduijn@gmail.com> 2012-07-16 09:12:57 UTC --- In opensuse 12.2 RC1 this is still a problem. Thus I've updated the opensuse version of this bug to 12.2 Cheers Rob -- 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#c11 Peter Varkoly <varkoly@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED CC| |varkoly@suse.com Resolution| |INVALID --- Comment #11 from Peter Varkoly <varkoly@suse.com> 2012-07-16 09:54:25 UTC --- (In reply to comment #2)
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 <rob.verduijn@gmail.com> 2012-07-16 10:28:56 UTC --- It seems an additional reboot was needed on my system. On opensuse 12.2rc1 the gateway is set. However on opensuse 12.1 the problem is still there (double checked my updates and reboots). Could you apply the fix for 12.1 as well ? Thanx Rob -- 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#c13 Rob Verduijn <rob.verduijn@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|INVALID | --- Comment #13 from Rob Verduijn <rob.verduijn@gmail.com> 2012-07-17 10:38:33 UTC --- Hello, I'm sorry to report that the bug is still there. I've done a clean install off opensuse 12.2rc1 x86_64 and now the default gw is gone again. I did several reboots to no effect. Manually added the default gw, did 'zypper update' another reboot and still no gateway. PLease do let me know if you need more info. Regards Rob -- 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 kk zhang <kkzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkzhang@suse.com AssignedTo|bnc-team-screening@forge.pr |bili@suse.com |ovo.novell.com | -- 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#c14 Peter Varkoly <varkoly@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |rob.verduijn@gmail.com --- Comment #14 from Peter Varkoly <varkoly@suse.com> 2012-07-20 08:11:16 UTC --- Please provide /var/lib/dhcpcd/dhcpcd-eth0.info -- 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#c15 Rob Verduijn <rob.verduijn@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|rob.verduijn@gmail.com | --- Comment #15 from Rob Verduijn <rob.verduijn@gmail.com> 2012-07-20 13:10:22 UTC --- here is the content of /var/lib/dhcpcd/dhcpcd-eth0.info DHCPSIADDR='172.16.1.14' IPADDR='172.16.1.149' NETMASK='255.255.255.0' NETWORK='172.16.1.0' BROADCAST='172.16.1.255' ROUTES='172.16.0.0,255.255.255.0,1.2.3.4' GATEWAYS='' HOSTNAME='linux-j8d9' DNSDOMAIN='home.local' DNSSERVERS='172.16.1.14' DHCPSID='172.16.1.14' LEASEDFROM='1342789328' LEASETIME='86400' RENEWALTIME='43200' REBINDTIME='75600' INTERFACE='eth0' CLASSID='dhcpcd 3.2.3' CLIENTID='01:52:54:00:21:f0:19' DHCPCHADDR='52:54:00:21:f0:19' NETBIOSNAMESERVER='172.16.1.13' -- 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#c16 --- Comment #16 from Rob Verduijn <rob.verduijn@gmail.com> 2012-07-20 13:11:20 UTC --- btw the gateway should be 172.16.1.10 Rob -- 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#c17 Peter Varkoly <varkoly@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |rob.verduijn@gmail.com --- Comment #17 from Peter Varkoly <varkoly@suse.com> 2012-07-20 15:44:27 UTC --- As which dhcpParameter is 172.16.1.10 given as default route in the dhcp-server? I can not see 172.16.1.10 set as the default route either in ROUTES nor as GATEWAYS. -- 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#c18 Li Bin <bili@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bili@suse.com |varkoly@suse.com --- Comment #18 from Li Bin <bili@suse.com> 2012-07-21 06:53:59 UTC --- Assign to Peter. Thanks! -- 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#c19 --- Comment #19 from Rob Verduijn <rob.verduijn@gmail.com> 2012-07-21 11:23:19 UTC --- @Peter It seems you have pointed out the exact problem. I've used dnsmasq as a dhcpserver in this case. But this problem also appears when you you a microsoft dhcp server. I guess this is not just limited to those two. Just set up a dhcp server and test to see that it works fine Then add the option 121 (static route) , as long as you add another static route with this option in addition to the defaulkt gateway. For dnsmasq this would be : dhcp-option=121,172.16.2/24,1.2.3.4 for your info, this is my full dnsmasq config : (I hashed out the static route to prevent it from biting me) expand-hosts domain=home.local dhcp-range=172.16.1.100,172.16.1.149,255.255.255.0,1440m dhcp-option=3,172.16.1.10 #dhcp-option=121,172.16.2/24,1.2.3.4 dhcp-option=44,172.16.1.13 # set wins server dhcp-boot=pxelinux.0,dnsmasq,172.16.1.14 dhcp-authoritative dhcp-boot=pxelinux.0 tftp-root=/srv/tftpboot enable-tftp Rob -- 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#c20 Rob Verduijn <rob.verduijn@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|rob.verduijn@gmail.com | --- Comment #20 from Rob Verduijn <rob.verduijn@gmail.com> 2012-07-21 11:24:13 UTC --- Sorry forgot to set the status :P -- 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#c21 Alex S <tantalus1983v2@hotmail.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tantalus1983v2@hotmail.de --- Comment #21 from Alex S <tantalus1983v2@hotmail.de> 2012-08-07 13:34:23 UTC --- as far as i understand this is by design. http://www.ietf.org/rfc/rfc3442.txt page 4. "If the DHCP server returns both a Classless Static Routes option and a Router option, the DHCP client MUST ignore the Router option." i tried to switch to dhclient and the same happens. seems we found another standard that microsoft did not understand :) of course (and i think this is the way you should do it) you can add your default router to the static routes. -- 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#c22 Rob Verduijn <rob.verduijn@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rob.verduijn@gmail.com --- Comment #22 from Rob Verduijn <rob.verduijn@gmail.com> 2012-08-10 15:11:08 UTC --- it seems the people from dnsmasq did not understand it either, their dhcp server behaves the same way. It seems a warning would be appropriate in the message log and/or during startup of the dhcpd service when using both options. Ah wel....guess I'll have to go with the two static routes then :) Rob -- 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#c23 --- Comment #23 from Rob Verduijn <rob.verduijn@gmail.com> 2012-08-12 07:27:26 UTC --- btw since this problem is a feature and not a bug I think you can close this one Rob -- 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#c24 Peter Varkoly <varkoly@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |CLOSED Resolution| |WONTFIX --- Comment #24 from Peter Varkoly <varkoly@suse.com> 2012-08-12 21:26:24 UTC --- Non RFC conform configuration. -- 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#c25 Roy Marples <roy@marples.name> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roy@marples.name --- Comment #25 from Roy Marples <roy@marples.name> 2012-08-31 12:16:47 UTC --- Hi, I'm the author of dhcpcd. I'm replying here due to dhcpcd bug #254: http://roy.marples.name/projects/dhcpcd/ticket/254 (In reply to comment #22)
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 <rob.verduijn@gmail.com> 2012-08-31 12:38:25 UTC --- as was said in comment https://bugzilla.novell.com/show_bug.cgi?id=733080#c21 and I agreed with in https://bugzilla.novell.com/show_bug.cgi?id=733080#c22 and suggested to close this one since it's not a bug I'll just get rid of the enormous amount of gateways in our network (ie more than one) and prevent all this redirecting and static route business all together. Maybe a warning when both options are being used, but that is just nice to have so forget about it if you don't have the time for it. Rob -- 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#c27 --- Comment #27 from Roy Marples <roy@marples.name> 2012-08-31 14:01:16 UTC --- dhcpcd does warn you about this when debugging is enabled.
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 <rob.verduijn@gmail.com> 2012-08-31 17:14:23 UTC --- sorry my mistake, I was referring to the dhcp server dnsmasq with the warning. The client is not to blame for properly doing what the rfc says. Rob -- 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.
participants (1)
-
bugzilla_noreply@novell.com