grayich |
|
Темы:
216
Сообщения:
1984
Участник с: 08 января 2009
|
имеется свежеустановленный арч на отдельный винт в virtualbox(.vbox) в rc.conf interface=eth0 при запуске в виртуалбоксе по dhcp от виртуалбокса получает настройки и удачно их применяет но при физическом запуске арча с винта, применяются все данные от реального dhcp кроме default gw собственно, что не так? |
Natrio |
|
Темы:
47
Сообщения:
4763
Участник с: 08 января 2011
|
Вы проверяли, DHCP действительно раздаёт адрес гейта? |
grayich |
|
Темы:
216
Сообщения:
1984
Участник с: 08 января 2009
|
проверил, в бунте nm его по dhcp получает и применяет |
Natrio |
|
Темы:
47
Сообщения:
4763
Участник с: 08 января 2011
|
От рута: Покажите вывод grep dhcpcd /var/log/daemon.log dhcpcd -k eth0 dhcpcd -d eth0 |
grayich |
|
Темы:
216
Сообщения:
1984
Участник с: 08 января 2009
|
/var/log/daemon.logFeb 17 11:53:32 (none) dhcpcd[471]: version 5.5.4 starting Feb 17 11:53:32 (none) dhcpcd[471]: eth0: sending IPv6 Router Solicitation Feb 17 11:53:32 (none) dhcpcd[471]: eth0: sendmsg: Cannot assign requested address Feb 17 11:53:32 (none) dhcpcd[471]: eth0: broadcasting for a lease Feb 17 11:53:32 (none) dhcpcd[471]: eth0: offered 10.0.2.15 from 10.0.2.2 Feb 17 11:53:32 (none) dhcpcd[471]: eth0: acknowledged 10.0.2.15 from 10.0.2.2 Feb 17 11:53:32 (none) dhcpcd[471]: eth0: checking for 10.0.2.15 Feb 17 11:53:36 (none) dhcpcd[471]: eth0: sending IPv6 Router Solicitation Feb 17 11:53:37 (none) dhcpcd[471]: eth0: leased 10.0.2.15 for 86400 seconds Feb 17 11:53:37 (none) dhcpcd[471]: forked to background, child pid 499 Feb 17 11:53:40 (none) dhcpcd[499]: eth0: sending IPv6 Router Solicitation Feb 17 11:53:44 (none) dhcpcd[499]: eth0: sending IPv6 Router Solicitation Feb 17 11:53:44 (none) dhcpcd[499]: eth0: no IPv6 Routers available Feb 17 11:58:41 (none) dhcpcd[600]: sending signal 1 to pid 499 Feb 17 11:58:41 (none) dhcpcd[499]: received SIGHUP, releasing Feb 17 11:58:41 (none) dhcpcd[499]: eth0: releasing lease of 10.0.2.15 Feb 17 11:58:41 (none) dhcpcd[600]: waiting for pid 499 to exit Feb 17 11:58:41 (none) dhcpcd[499]: eth0: removing interface Feb 17 11:58:51 (none) dhcpcd[609]: version 5.5.4 starting Feb 17 11:58:51 (none) dhcpcd[609]: eth0: using hwaddr 08:00:27:74:35:8f Feb 17 11:58:51 (none) dhcpcd[609]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT Feb 17 11:58:51 (none) dhcpcd[609]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER Feb 17 11:58:51 (none) dhcpcd[609]: eth0: sending IPv6 Router Solicitation Feb 17 11:58:51 (none) dhcpcd[609]: eth0: broadcasting for a lease Feb 17 11:58:51 (none) dhcpcd[609]: eth0: sending DISCOVER (xid 0xa9ff02bc), next in 4.06 seconds Feb 17 11:58:51 (none) dhcpcd[609]: eth0: offered 10.0.2.15 from 10.0.2.2 Feb 17 11:58:51 (none) dhcpcd[609]: eth0: sending REQUEST (xid 0xa9ff02bc), next in 4.26 seconds Feb 17 11:58:51 (none) dhcpcd[609]: eth0: acknowledged 10.0.2.15 from 10.0.2.2 Feb 17 11:58:51 (none) dhcpcd[609]: eth0: checking for 10.0.2.15 Feb 17 11:58:51 (none) dhcpcd[609]: eth0: sending ARP probe (1 of 3), next in 1.97 seconds Feb 17 11:58:53 (none) dhcpcd[609]: eth0: sending ARP probe (2 of 3), next in 1.35 seconds Feb 17 11:58:54 (none) dhcpcd[609]: eth0: sending ARP probe (3 of 3), next in 2.00 seconds Feb 17 11:58:55 (none) dhcpcd[609]: eth0: sending IPv6 Router Solicitation Feb 17 11:58:56 (none) dhcpcd[609]: eth0: leased 10.0.2.15 for 86400 seconds Feb 17 11:58:56 (none) dhcpcd[609]: eth0: adding IP address 10.0.2.15/24 Feb 17 11:58:56 (none) dhcpcd[609]: eth0: adding route to 10.0.2.0/24 Feb 17 11:58:56 (none) dhcpcd[609]: eth0: adding default route via 10.0.2.2 Feb 17 11:58:56 (none) dhcpcd[609]: eth0: writing lease `/var/lib/dhcpcd/dhcpcd-eth0.lease' Feb 17 11:58:56 (none) dhcpcd[609]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND Feb 17 11:58:57 (none) dhcpcd[609]: forking to background Feb 17 11:58:57 (none) dhcpcd[609]: forked to background, child pid 636 Feb 17 11:58:57 (none) dhcpcd[636]: eth0: sending ARP announce (1 of 2), next in 2.00 seconds Feb 17 11:58:59 (none) dhcpcd[636]: eth0: sending ARP announce (2 of 2) Feb 17 11:58:59 (none) dhcpcd[636]: eth0: sending IPv6 Router Solicitation Feb 17 11:59:03 (none) dhcpcd[636]: eth0: sending IPv6 Router Solicitation Feb 17 11:59:03 (none) dhcpcd[636]: eth0: no IPv6 Routers available Feb 17 12:01:05 (none) dhcpcd[721]: sending signal 1 to pid 636 Feb 17 12:01:05 (none) dhcpcd[636]: received SIGHUP, releasing Feb 17 12:01:05 (none) dhcpcd[636]: eth0: releasing lease of 10.0.2.15 Feb 17 12:01:05 (none) dhcpcd[636]: eth0: sending RELEASE with xid 0xcb06ca91 Feb 17 12:01:05 (none) dhcpcd[721]: waiting for pid 636 to exit Feb 17 12:01:05 (none) dhcpcd[636]: eth0: deleting default route via 10.0.2.2 Feb 17 12:01:05 (none) dhcpcd[636]: eth0: deleting route to 10.0.2.0/24 Feb 17 12:01:05 (none) dhcpcd[636]: eth0: deleting IP address 10.0.2.15/24 Feb 17 12:01:05 (none) dhcpcd[636]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason RELEASE Feb 17 12:01:05 (none) dhcpcd[636]: eth0: removing interface Feb 17 12:13:47 (none) dhcpcd[500]: version 5.5.4 starting Feb 17 12:13:47 (none) dhcpcd[500]: eth0: sending IPv6 Router Solicitation Feb 17 12:13:47 (none) dhcpcd[500]: eth0: sendmsg: Cannot assign requested address Feb 17 12:13:47 (none) dhcpcd[500]: eth0: broadcasting for a lease Feb 17 12:13:47 (none) dhcpcd[500]: eth0: offered 172.16.43.100 from 172.16.43.1 Feb 17 12:13:47 (none) dhcpcd[500]: eth0: acknowledged 172.16.43.100 from 172.16.43.1 Feb 17 12:13:47 (none) dhcpcd[500]: eth0: checking for 172.16.43.100 Feb 17 12:13:51 (none) dhcpcd[500]: eth0: sending IPv6 Router Solicitation Feb 17 12:13:53 (none) dhcpcd[500]: eth0: leased 172.16.43.100 for 3600 seconds Feb 17 12:13:53 (none) dhcpcd[500]: forked to background, child pid 529 Feb 17 12:13:55 (none) dhcpcd[529]: eth0: sending IPv6 Router Solicitation Feb 17 12:13:59 (none) dhcpcd[529]: eth0: sending IPv6 Router Solicitation Feb 17 12:13:59 (none) dhcpcd[529]: eth0: no IPv6 Routers available Feb 17 12:15:43 (none) dhcpcd[655]: sending signal 1 to pid 529 Feb 17 12:15:43 (none) dhcpcd[529]: received SIGHUP, releasing Feb 17 12:15:43 (none) dhcpcd[529]: eth0: releasing lease of 172.16.43.100 Feb 17 12:15:43 (none) dhcpcd[655]: waiting for pid 529 to exit Feb 17 12:15:43 (none) dhcpcd[529]: eth0: removing interface Feb 17 12:16:09 (none) dhcpcd[520]: version 5.5.4 starting Feb 17 12:16:09 (none) dhcpcd[520]: eth0: sending IPv6 Router Solicitation Feb 17 12:16:09 (none) dhcpcd[520]: eth0: sendmsg: Cannot assign requested address Feb 17 12:16:09 (none) dhcpcd[520]: eth0: broadcasting for a lease Feb 17 12:16:09 (none) dhcpcd[520]: eth0: offered 172.16.43.100 from 172.16.43.1 Feb 17 12:16:09 (none) dhcpcd[520]: eth0: acknowledged 172.16.43.100 from 172.16.43.1 Feb 17 12:16:09 (none) dhcpcd[520]: eth0: checking for 172.16.43.100 Feb 17 12:16:13 (none) dhcpcd[520]: eth0: sending IPv6 Router Solicitation Feb 17 12:16:14 (none) dhcpcd[520]: eth0: leased 172.16.43.100 for 3600 seconds Feb 17 12:16:14 (none) dhcpcd[520]: forked to background, child pid 549 Feb 17 12:16:17 (none) dhcpcd[549]: eth0: sending IPv6 Router Solicitation Feb 17 12:16:21 (none) dhcpcd[549]: eth0: sending IPv6 Router Solicitation Feb 17 12:16:21 (none) dhcpcd[549]: eth0: no IPv6 Routers available Feb 17 12:19:42 (none) dhcpcd[602]: sending signal 1 to pid 549 Feb 17 12:19:42 (none) dhcpcd[549]: received SIGHUP, releasing Feb 17 12:19:42 (none) dhcpcd[549]: eth0: releasing lease of 172.16.43.100 Feb 17 12:19:42 (none) dhcpcd[602]: waiting for pid 549 to exit Feb 17 12:19:42 (none) dhcpcd[549]: eth0: removing interface Feb 17 12:20:15 (none) dhcpcd[612]: dhcpcd not running Feb 17 12:23:36 (none) dhcpcd[517]: version 5.5.4 starting Feb 17 12:23:36 (none) dhcpcd[517]: eth0: sending IPv6 Router Solicitation Feb 17 12:23:36 (none) dhcpcd[517]: eth0: sendmsg: Cannot assign requested address Feb 17 12:23:36 (none) dhcpcd[517]: eth0: broadcasting for a lease Feb 17 12:23:36 (none) dhcpcd[517]: eth0: offered 172.16.43.100 from 172.16.43.1 Feb 17 12:23:36 (none) dhcpcd[517]: eth0: acknowledged 172.16.43.100 from 172.16.43.1 Feb 17 12:23:36 (none) dhcpcd[517]: eth0: checking for 172.16.43.100 Feb 17 12:23:40 (none) dhcpcd[517]: eth0: sending IPv6 Router Solicitation Feb 17 12:23:41 (none) dhcpcd[517]: eth0: leased 172.16.43.100 for 3600 seconds Feb 17 12:23:41 (none) dhcpcd[517]: forked to background, child pid 546 Feb 17 12:23:44 (none) dhcpcd[546]: eth0: sending IPv6 Router Solicitation Feb 17 12:23:48 (none) dhcpcd[546]: eth0: sending IPv6 Router Solicitation Feb 17 12:23:48 (none) dhcpcd[546]: eth0: no IPv6 Routers available dhcpcd -k eth0 dhcpcd[604]: sending signal 1 to pid 546 dhcpcd[604]: waiting for pid 546 to exit dhcpcd -d eth0 dhcpcd[615]: version 5.5.4 starting dhcpcd[615]: eth0: using hwaddr 00:26:54:0b:6c:07 dhcpcd[615]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT dhcpcd[615]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER dhcpcd[615]: eth0: sending IPv6 Router Solicitation dhcpcd[615]: eth0: broadcasting for a lease dhcpcd[615]: eth0: sending DISCOVER (xid 0xc3ae7ae4), next in 3.79 seconds dhcpcd[615]: eth0: offered 172.16.43.100 from 172.16.43.1 dhcpcd[615]: eth0: sending REQUEST (xid 0xc3ae7ae4), next in 4.85 seconds dhcpcd[615]: eth0: acknowledged 172.16.43.100 from 172.16.43.1 dhcpcd[615]: eth0: checking for 172.16.43.100 dhcpcd[615]: eth0: sending ARP probe (1 of 3), next in 1.37 seconds dhcpcd[615]: eth0: sending ARP probe (2 of 3), next in 1.08 seconds dhcpcd[615]: eth0: sending ARP probe (3 of 3), next in 2.00 seconds dhcpcd[615]: eth0: sending IPv6 Router Solicitation dhcpcd[615]: eth0: leased 172.16.43.100 for 3600 seconds dhcpcd[615]: eth0: adding IP address 172.16.43.100/24 dhcpcd[615]: eth0: using Classless Static Routes (RFC3442) dhcpcd[615]: eth0: adding route to 172.16.43.0/24 dhcpcd[615]: eth0: adding route to 172.16.0.0/16 via 172.16.43.254 dhcpcd[615]: eth0: adding route to 10.0.0.0/8 via 172.16.43.254 dhcpcd[615]: eth0: adding route to 192.168.0.0/16 via 172.16.43.254 dhcpcd[615]: eth0: adding route to 193.33.48.0/23 via 172.16.43.254 dhcpcd[615]: eth0: adding route to 95.69.128.0/18 via 172.16.43.254 dhcpcd[615]: eth0: writing lease `/var/lib/dhcpcd/dhcpcd-eth0.lease' dhcpcd[615]: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND dhcpcd[615]: forking to background dhcpcd[615]: forked to background, child pid 642 |
Natrio |
|
Темы:
47
Сообщения:
4763
Участник с: 08 января 2011
|
Видимо, ваш DHCP настроен или устроен как-то специфически, и передаёт гейт в особом формате, непонятном dhcpcd, зато передаёт кучу дополнительных роутов. В убунте используется dhclient. Попробуйте установить его, и запустить dhcpcd -k eth0 dhclient -v eth0 |
gineaser |
|
Темы:
9
Сообщения:
131
Участник с: 04 февраля 2012
|
А я все же бы не логи смотрел (в первую очередь), а настройки DHCP сервера. Не корректность настроек DHCP-сервера, на мой взгяд, куда более очевидна чем возможность кривой работы клиента…. Покажите, пожалуйста, конфигурационный файл dhcpd.conf, если вы пользуетесь оным, а не чудом вроде dnsmasq |
grayich |
|
Темы:
216
Сообщения:
1984
Участник с: 08 января 2009
|
настройки не самые стандартные :)option domain-name "homnet.org.ua"; option domain-name-servers 172.16.43.1; option ms-classless-static-routes code 249 = array of integer 8; option rfc3442-classless-static-routes code 121 = array of integer 8; default-lease-time 3600; max-lease-time 86400; authoritative; #ddns-update-style ad-hoc; ddns-update-style interim; log-facility local7; subnet 172.16.43.0 netmask 255.255.255.0 { range 172.16.43.240 172.16.43.247; option subnet-mask 255.255.255.0; option broadcast-address 172.16.43.255; option ntp-servers 172.16.43.1; option ms-classless-static-routes 16, 172,16, 172,16,43,254, 8, 10, 172,16,43,254, 16, 192,168, 172,16,43,254, 23, 193,33,48, 172,16,43,254, 18, 95,69,128, 172,16,43,254; option rfc3442-classless-static-routes 16, 172,16, 172,16,43,254, 8, 10, 172,16,43,254, 16, 192,168, 172,16,43,254, 23, 193,33,48, 172,16,43,254, 18, 95,69,128, 172,16,43,254; # option routers 172.16.43.1; } host User002 { option host-name "User002.homnet.org.ua"; hardware ethernet 00:1c:23:b3:53:3d; fixed-address 172.16.43.2; } host User003 { option host-name "User003.homnet.org.ua"; hardware ethernet 00:13:8F:3E:0E:15; fixed-address 172.16.43.3; option routers 172.16.43.1;} host User004 { option host-name "User004.homnet.org.ua"; hardware ethernet 00:e0:4c:74:00:f3; fixed-address 172.16.43.4; option routers 172.16.43.250;} host User005 { option host-name "User005.homnet.org.ua"; hardware ethernet 00:13:8f:cb:46:ea; fixed-address 172.16.43.5; option routers 172.16.43.1;} |
gineaser |
|
Темы:
9
Сообщения:
131
Участник с: 04 февраля 2012
|
Ну вот и очевидная проблема - вы выдаете дополнительные маршруты для клиентов сетей MS, и для работающих по стандарту RFC, а основной маршрут закоменчен в настройках. Разкоментируйте option routers и укажите нужный вам шлюз по умолчанию. |
grayich |
|
Темы:
216
Сообщения:
1984
Участник с: 08 января 2009
|
Gineaser, так задача то, выдавать каждому юзеру свой гейт, а некоторым вообще никакого, никакой проблемы |