[Bug 555870] New: dhclient does not get rfc3442 classless static routes
http://bugzilla.novell.com/show_bug.cgi?id=555870 Summary: dhclient does not get rfc3442 classless static routes Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Enhancement Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dmitry.kholodilov@gmail.com QAContact: qa@suse.de Found By: Community User Blocker: --- --- Comment #0 from Dmitry Kholodilov <dmitry.kholodilov@gmail.com> 2009-11-16 17:16:11 UTC --- Created an attachment (id=327730) dhclient-exit-hooks I'm connected to the LAN and my provider sends classless static routes through DHCP. But dhclient utility, that works with NetworkManager, does not set this routes. So, when I've connected to the Internet with VPN (pptp) I can't access local resources. My routing table looks like: Destination Gateway Genmask Flags Metric Ref Use Iface 10.55.88.0 * 255.255.254.0 U 1 0 0 eth0 default 10.55.88.1 0.0.0.0 UG 0 0 0 eth0 However, the problem is solvable: exit hook script is needed to set rfc3442 classless static routes using dhclient. Debian and Ubuntu linux distributions use this solution. I've attached the file "dhcp-exit-hooks", that placed in my /etc dir. This script does work on setting the routes. Also, in "dhclient.conf" file we need to add line: option rfc3442-classless-static-routes code 121 = array of unsigned integer 8; and "rfc3442-classless-static-routes" in request list. I've attached this file too. So, with additional configuration my routing table looks like: Destination Gateway Genmask Flags Metric Ref Use Iface 85.112.113.96 10.55.88.1 255.255.255.240 UG 0 0 0 eth0 192.188.189.0-n 10.55.88.1 255.255.255.0 UG 0 0 0 eth0 192.168.254.0 10.55.88.1 255.255.255.0 UG 0 0 0 eth0 oivt-net.mipt.r 10.55.88.1 255.255.254.0 UG 0 0 0 eth0 10.55.88.0 * 255.255.254.0 U 1 0 0 eth0 81.5.88-net.mip 10.55.88.1 255.255.252.0 UG 0 0 0 eth0 campus-net-80.0 10.55.88.1 255.255.252.0 UG 0 0 0 eth0 81.5.64.0 10.55.88.1 255.255.240.0 UG 0 0 0 eth0 93.182.0.0 10.55.88.1 255.255.192.0 UG 0 0 0 eth0 172.16.0.0 10.55.88.1 255.240.0.0 UG 0 0 0 eth0 10.0.0.0 10.55.88.1 255.0.0.0 UG 0 0 0 eth0 default 10.55.88.1 0.0.0.0 UG 0 0 0 eth0 And local resources are accessible with VPN connection. I think this behavior should be used by default, or at least, be configurable. -- 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=555870 --- Comment #1 from Dmitry Kholodilov <dmitry.kholodilov@gmail.com> 2009-11-16 17:17:07 UTC --- Created an attachment (id=327732) dhclient.conf -- 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=555870#c Dmitry Kholodilov <dmitry.kholodilov@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- 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=555870 http://bugzilla.novell.com/show_bug.cgi?id=555870#c shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sqiu@novell.com AssignedTo|bnc-team-screening@forge.pr |mt@novell.com |ovo.novell.com | -- 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=555870 http://bugzilla.novell.com/show_bug.cgi?id=555870#c2 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |tambet@novell.com Component|Network |Network Version|Final |Factory Product|openSUSE 11.2 |openSUSE 11.3 Target Milestone|--- |Factory --- Comment #2 from Marius Tomaschewski <mt@novell.com> 2009-11-22 20:17:15 UTC --- Yes, it makes sense to add classless route support to dhclient-script. When you're using ifup and not NetworkManager: just change back and use 'dhcpcd' and not 'dhclient' -- it contains support for classless routes. Although adding it to dhclient-script will not help with NetworkManager, because NetworkManager is AFAIK using own script (own binary) and has to implement it there... -- 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=555870 http://bugzilla.novell.com/show_bug.cgi?id=555870#c3 --- Comment #3 from Marius Tomaschewski <mt@novell.com> 2010-04-29 15:01:49 UTC --- Created an attachment (id=357806) --> (http://bugzilla.novell.com/attachment.cgi?id=357806) Code catching some rfc corner cases -- v1 The above code catches the 0.0.0.0 link local route (and some invalid gateways) as well as destinations like 129.210.177.132/25, that have to be corrected to 129.210.177.128/25. I'm working e.g. on some input data checks as /42 length or when the net_length needs more data than provided, because they cause syntax errors. When you have some ideas how to improve the code, let me know. -- 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=555870 http://bugzilla.novell.com/show_bug.cgi?id=555870#c Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #357806|application/x-shellscript |text/plain mime type| | -- 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=555870 http://bugzilla.novell.com/show_bug.cgi?id=555870#c4 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED OS/Version|openSUSE 11.2 |openSUSE 11.3 --- Comment #4 from Marius Tomaschewski <mt@novell.com> 2010-05-07 15:03:08 UTC --- OK, it is included in this submission request: 39653 State:new By:mtomaschewski When:2010-05-07T17:00:52 submit: network:dhcp/dhcp -> openSUSE:Factory Descr: update to 4.1.1, including dhcpv6 support -- 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=555870 http://bugzilla.novell.com/show_bug.cgi?id=555870#c5 --- Comment #5 from Marius Tomaschewski <mt@novell.com> 2010-05-10 13:03:13 UTC --- BTW: See also http://download.opensuse.org/repositories/network:/dhcp/ -- 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=555870 http://bugzilla.novell.com/show_bug.cgi?id=555870#c6 --- Comment #6 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (555870) was mentioned in https://build.opensuse.org/request/show/39792 Factory / dhcp -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com