Summary: | net-misc/dhcp: rfc3442 (classless static routes) not supported | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alex Efros <powerman-asdf> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | CONFIRMED --- | ||
Severity: | enhancement | CC: | alexanderyt |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
add request rfc3442-classless-static-routes
update routing from $new_rfc3442_classless_static_routes update routing from $new_rfc3442_classless_static_routes /etc/dhcp/dhclient-exit-hooks |
Description
Alex Efros
2010-10-27 17:18:10 UTC
Created attachment 252251 [details]
add request rfc3442-classless-static-routes
Created attachment 252253 [details]
update routing from $new_rfc3442_classless_static_routes
Created attachment 252279 [details]
update routing from $new_rfc3442_classless_static_routes
sorry, I forget to delete debug output to temp file from script
Created attachment 380400 [details]
/etc/dhcp/dhclient-exit-hooks
I'm suggest to support Microsoft static classless routes as well.
Attached updated hook for dhcp that supports both classless routes options and using iproute2 or net-tools to update routes table.
/etc/dhcp/dhclient.conf must contains this lines:
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
option ms-classless-static-routes code 249 = array of unsigned integer 8;
request rfc3442-classless-static-routes, ms-classless-static-routes;
(In reply to nE0sIghT from comment #4) > Created attachment 380400 [details] > /etc/dhcp/dhclient-exit-hooks > > I'm suggest to support Microsoft static classless routes as well. > > Attached updated hook for dhcp that supports both classless routes options > and using iproute2 or net-tools to update routes table. > > /etc/dhcp/dhclient.conf must contains this lines: > > option rfc3442-classless-static-routes code 121 = array of unsigned integer > 8; > option ms-classless-static-routes code 249 = array of unsigned integer 8; > > request rfc3442-classless-static-routes, ms-classless-static-routes; Getting the following log entries with above settings: Dec 3 11:33:02 pluto dhclient: option unknown-121 has been redefined as option rfc3442-classless-static-routes. Please update your configs if neccessary. Dec 3 11:33:02 pluto dhclient: /var/lib/dhcp/dhclient.leases line 10: semicolon expected. Dec 3 11:33:02 pluto dhclient: option unknown-121 20: Dec 3 11:33:02 pluto dhclient: ^ Dec 3 11:33:03 pluto dhclient: DHCPDISCOVER on wan0.8 to 255.255.255.255 port 67 interval 3 Dec 3 11:33:06 pluto dhclient: DHCPDISCOVER on wan0.8 to 255.255.255.255 port 67 interval 3 Dec 3 11:33:06 pluto dhclient: DHCPREQUEST on wan0.8 to 255.255.255.255 port 67 Dec 3 11:33:06 pluto dhclient: DHCPOFFER from 10.232.127.254 Dec 3 11:33:06 pluto dhclient: DHCPACK from 10.232.127.254 Dec 3 11:33:06 pluto dhclient: bound to 10.232.99.220 -- renewal in 39698 seconds. cat /var/lib/dhcp/dhclient.leases lease { interface "wan0.8"; fixed-address 10.232.99.220; server-name "DHMUN001"; option subnet-mask 255.255.192.0; option dhcp-lease-time 86400; option dhcp-message-type 5; option dhcp-server-identifier 193.158.134.249; option dhcp-renewal-time 43200; option dhcp-rebinding-time 75600; renew 3 2014/11/26 19:34:18; rebind 3 2014/11/26 19:34:18; expire 3 2014/11/26 19:34:18; } lease { interface "wan0.8"; fixed-address 10.232.99.220; server-name "DHMUN001"; option subnet-mask 255.255.192.0; option dhcp-lease-time 86400; option dhcp-message-type 5; option dhcp-server-identifier 193.158.134.249; option dhcp-renewal-time 43200; option dhcp-rebinding-time 75600; option rfc3442-classless-static-routes 32,193,158,134,249,10,232,127,254,17,87,141,128,10,232,127,254; renew 3 2014/12/03 21:34:44; rebind 4 2014/12/04 07:33:06; expire 4 2014/12/04 10:33:06; } Where is the missing semicolon in line 10? (In reply to cilly from comment #5) > > Getting the following log entries with above settings: I think you must clean /var/lib/dhcp/dhclient.leases and just get new dhcp lease |