есть некоторые бока
1 если сделать , как Вы предложили ниже
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
option ms-classless-static-routes code 249 = array of unsigned integer 8;
send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
dhcp6.name-servers, dhcp6.domain-search,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ms-classless-static-routes, ntp-servers;
то мне выдало следующее
root@My:/etc/dhcp# service networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp//etc/dhcp/dhclient.conf line 19: expecting a statement.
send host-name = gethostname();
^
/etc/dhcp/dhclient.conf line 30: semicolon expected.
^
parse_option_param: Bad format a
Listening on LPF/eth0/64:70:02:02:a3:f1
Sending on LPF/eth0/64:70:02:02:a3:f1
Sending on Socket/fallback
DHCPRELEASE on eth0 to 10.5.0.106 port 67
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp//etc/dhcp/dhclient.conf line 19: expecting a statement.
send host-name = gethostname();
^
/etc/dhcp/dhclient.conf line 30: semicolon expected.
^
Listening on LPF/eth0/64:70:02:02:a3:f1
Sending on LPF/eth0/64:70:02:02:a3:f1
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPOFFER from 10.0.83.254
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.0.83.254
bound to 10.0.81.164 -- renewal in 40163 seconds.
Ignoring unknown interface pppo=pppo.
done.
root@My:/etc/dhcp# grep -Ev '^#|^$' /etc/dhcp/dhclient.conf
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
option ms-classless-static-routes code 249 = array of unsigned integer 8;
send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ms-classless-static-routes, ntp-servers;
root@My:/etc/dhcp#
убрал строку send host-name = gethostname();
и как видите - ppp0 - не подымается автоматом
root@My:/etc/dhcp# grep -Ev '^#|^$' /etc/dhcp/dhclient.conf 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 subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ms-classless-static-routes, ntp-servers;
root@My:/etc/dhcp# service networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/Listening on LPF/eth0/64:70:02:02:a3:f1
Sending on LPF/eth0/64:70:02:02:a3:f1
Sending on Socket/fallback
DHCPRELEASE on eth0 to 10.5.0.106 port 67
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/Listening on LPF/eth0/64:70:02:02:a3:f1
Sending on LPF/eth0/64:70:02:02:a3:f1
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER from 10.0.83.254
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.0.83.254
RTNETLINK answers: No such device
RTNETLINK answers: No such device
RTNETLINK answers: No such device
RTNETLINK answers: No such device
RTNETLINK answers: No such device
bound to 10.0.81.164 -- renewal in 44168 seconds.
Ignoring unknown interface pppo=pppo.
done.
root@My:/etc/dhcp# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.5.5.1 10.0.83.254 255.255.255.255 UGH 0 0 0 eth0
10.5.5.1 * 255.255.255.255 UH 0 0 0 ppp0
2.2.2.0 * 255.255.255.0 U 0 0 0 eth2
1.1.1.0 * 255.255.255.0 U 0 0 0 eth1
10.0.80.0 * 255.255.252.0 U 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 ppp0
root@My:/etc/dhcp#
как видите - нет нормальной выдачи маршрутов и не подымается соотвественно и ppp0
сделал следующее
как Вы писали , что нужно или 121 или 249
попробовал следующий вариант
root@My:/etc/dhcp# grep -Ev '^#|^$' /etc/dhcp/dhclient.conf
option ms-classless-static-routes code 249 = array of unsigned integer 8;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ms-classless-static-routes, ntp-servers;
root@My:/etc/dhcp# service networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp//etc/dhcp/dhclient.conf line 30: no option named rfc3442-classless-static-routes in space dhcp
rfc3442-classless-static-routes,
^
/etc/dhcp/dhclient.conf line 30: ntp-servers: expected option name.
rfc3442-classless-static-routes, ms-classless-static-routes, ntp-servers;
^
parse_option_param: Bad format a
Listening on LPF/eth0/64:70:02:02:a3:f1
Sending on LPF/eth0/64:70:02:02:a3:f1
Sending on Socket/fallback
DHCPRELEASE on eth0 to 10.5.0.106 port 67
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp//etc/dhcp/dhclient.conf line 30: no option named rfc3442-classless-static-routes in space dhcp
rfc3442-classless-static-routes,
^
/etc/dhcp/dhclient.conf line 30: ntp-servers: expected option name.
rfc3442-classless-static-routes, ms-classless-static-routes, ntp-servers;
^
Listening on LPF/eth0/64:70:02:02:a3:f1
Sending on LPF/eth0/64:70:02:02:a3:f1
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPOFFER from 10.0.83.254
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.0.83.254
RTNETLINK answers: No such device
RTNETLINK answers: No such device
RTNETLINK answers: No such device
RTNETLINK answers: No such device
RTNETLINK answers: No such device
bound to 10.0.81.164 -- renewal in 41280 seconds.
Ignoring unknown interface pppo=pppo.
done.
root@My:/etc/dhcp#
как видите - тут вообще выдало ошибку
подкорректировал и получил следующее
root@My:/etc/dhcp# grep -Ev '^#|^$' /etc/dhcp/dhclient.conf
option ms-classless-static-routes code 249 = array of unsigned integer 8;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
ms-classless-static-routes, ntp-servers;
root@My:/etc/dhcp# service networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/parse_option_param: Bad format a
Listening on LPF/eth0/64:70:02:02:a3:f1
Sending on LPF/eth0/64:70:02:02:a3:f1
Sending on Socket/fallback
DHCPRELEASE on eth0 to 10.5.0.106 port 67
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/Listening on LPF/eth0/64:70:02:02:a3:f1
Sending on LPF/eth0/64:70:02:02:a3:f1
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPOFFER from 10.0.83.254
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.0.83.254
RTNETLINK answers: No such device
RTNETLINK answers: No such device
RTNETLINK answers: No such device
RTNETLINK answers: No such device
RTNETLINK answers: No such device
bound to 10.0.81.164 -- renewal in 37727 seconds.
Ignoring unknown interface pppo=pppo.
done.
root@My:/etc/dhcp# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.5.3.1 10.0.83.254 255.255.255.255 UGH 0 0 0 eth0
10.5.3.1 * 255.255.255.255 UH 0 0 0 ppp0
2.2.2.0 * 255.255.255.0 U 0 0 0 eth2
1.1.1.0 * 255.255.255.0 U 0 0 0 eth1
10.0.80.0 * 255.255.252.0 U 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 ppp0
root@My:/etc/dhcp#
как видите - пришли к тому - от чего и уходили
нет нормально выданных маршрутов и соотвественно и инет соединение не подымается толком
не факт , что оно вообще будет работать нормально при таком раскладе вещей
пробую возвратить всё - как было настроено прежде ...
root@My:/etc/dhcp# grep -Ev '^#|^$' /etc/dhcp/dhclient.conf
option rfc3442-classless-static-routes code 249 = array of unsigned integer 8;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
root@My:/etc/dhcp# service networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/parse_option_param: Bad format a
Listening on LPF/eth0/64:70:02:02:a3:f1
Sending on LPF/eth0/64:70:02:02:a3:f1
Sending on Socket/fallback
DHCPRELEASE on eth0 to 10.5.0.106 port 67
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/Listening on LPF/eth0/64:70:02:02:a3:f1
Sending on LPF/eth0/64:70:02:02:a3:f1
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER from 10.0.83.254
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.0.83.254
RTNETLINK answers: No such device
RTNETLINK answers: No such device
RTNETLINK answers: No such device
RTNETLINK answers: No such device
RTNETLINK answers: No such device
bound to 10.0.81.164 -- renewal in 34989 seconds.
Ignoring unknown interface pppo=pppo.
done.
root@My:/etc/dhcp# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
ns3.inmart.net. 10.0.83.254 255.255.255.255 UGH 0 0 0 eth0
10.5.1.1 10.0.83.254 255.255.255.255 UGH 0 0 0 eth0
10.5.1.1 * 255.255.255.255 UH 0 0 0 ppp0
192.168.6.0 10.0.83.254 255.255.255.0 UG 0 0 0 eth0
2.2.2.0 * 255.255.255.0 U 0 0 0 eth2
1.1.1.0 * 255.255.255.0 U 0 0 0 eth1
193.238.75.0 10.0.83.254 255.255.255.0 UG 0 0 0 eth0
10.0.80.0 * 255.255.252.0 U 0 0 0 eth0
10.5.0.0 10.0.83.254 255.255.248.0 UG 0 0 0 eth0
10.0.0.0 10.0.83.254 255.255.0.0 UG 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 ppp0
root@My:/etc/dhcp# ifconfig
eth0 Link encap:Ethernet HWaddr 64:70:02:02:a3:f1
inet addr:10.0.81.164 Bcast:10.0.83.255 Mask:255.255.252.0
inet6 addr: fe80::6670:2ff:fe02:a3f1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:100467516 errors:0 dropped:0 overruns:0 frame:0
TX packets:304662070 errors:0 dropped:0 overruns:1 carrier:0
collisions:0 txqueuelen:1000
RX bytes:325018979 (309.9 MiB) TX bytes:1679996382 (1.5 GiB)
Interrupt:16 Base address:0xac00
eth1 Link encap:Ethernet HWaddr 00:10:b5:68:7b:9d
inet addr:1.1.1.254 Bcast:1.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::210:b5ff:fe68:7b9d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:162646344 errors:0 dropped:0 overruns:0 frame:0
TX packets:89529928 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1919768426 (1.7 GiB) TX bytes:2102741272 (1.9 GiB)
Interrupt:17 Base address:0xa800
eth2 Link encap:Ethernet HWaddr 00:16:ec:b2:28:dc
inet addr:2.2.2.254 Bcast:2.2.2.255 Mask:255.255.255.0
inet6 addr: fe80::216:ecff:feb2:28dc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:417925 errors:0 dropped:0 overruns:0 frame:0
TX packets:965068 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:64763702 (61.7 MiB) TX bytes:1356248171 (1.2 GiB)
Interrupt:21 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:804 errors:0 dropped:0 overruns:0 frame:0
TX packets:804 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:67789 (66.2 KiB) TX bytes:67789 (66.2 KiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:91.214.48.41 P-t-P:10.5.1.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:3154 errors:0 dropped:0 overruns:0 frame:0
TX packets:5245 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:205680 (200.8 KiB) TX bytes:6830814 (6.5 MiB)
root@My:/etc/dhcp# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
ns3.inmart.net. 10.0.83.254 255.255.255.255 UGH 0 0 0 eth0
10.5.1.1 10.0.83.254 255.255.255.255 UGH 0 0 0 eth0
10.5.1.1 * 255.255.255.255 UH 0 0 0 ppp0
192.168.6.0 10.0.83.254 255.255.255.0 UG 0 0 0 eth0
2.2.2.0 * 255.255.255.0 U 0 0 0 eth2
1.1.1.0 * 255.255.255.0 U 0 0 0 eth1
193.238.75.0 10.0.83.254 255.255.255.0 UG 0 0 0 eth0
10.0.80.0 * 255.255.252.0 U 0 0 0 eth0
10.5.0.0 10.0.83.254 255.255.248.0 UG 0 0 0 eth0
10.0.0.0 10.0.83.254 255.255.0.0 UG 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 ppp0
root@My:/etc/dhcp#
как видите - вроде бы всё стало нормально работать
видать или в Вашем алгоритме где-то кроется ошибка или ещё что-то
по сути , я как понял , имя файла - не играет особой роли
я пока содержимое Вашего и стандартого файлов - не сравнивал
когда будет желание - потом попробую
ещё - немного смущает выдача одного сообщения , при подаче команды service networking restart
parse_option_param: Bad format a
хотелось бы узнать - что это
но пока всё работает ...
потом уже - при желании - буду разбираться , по какой причине выдаётся эта строка и где ошибка в самом алгоритме приёма маршрутов по DHCP