LINUX.ORG.RU

debian dhcp broken


0

0

Привет всем!
с недавних пор поломался роутинг, получаемый по дшсп :(
очень грустно без интернета
помогите плиз

вот таблица роутинга при поднятой локалке провайдера под виндой

C:\Documents and Settings\stas-ON>route PRINT
===========================================================================
Список интерфейсов
0x1 ........................... MS TCP Loopback interface
0x2 ...00 14 85 27 97 00 ...... NVIDIA nForce Networking Controller - ╠шэшяюЁЄ
ырэшЁют∙шър яръхЄют
===========================================================================
===========================================================================
Активные маршруты:
Сетевой адрес Маска сети Адрес шлюза Интерфейс Метрика
0.0.0.0 0.0.0.0 10.97.10.1 10.97.10.28 20
10.97.10.0 255.255.255.192 10.97.10.28 10.97.10.28 20
10.97.10.28 255.255.255.255 127.0.0.1 127.0.0.1 20
10.255.255.255 255.255.255.255 10.97.10.28 10.97.10.28 20
92.50.178.5 255.255.255.255 10.97.10.1 10.97.10.28 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
224.0.0.0 240.0.0.0 10.97.10.28 10.97.10.28 20
255.255.255.255 255.255.255.255 10.97.10.28 10.97.10.28 1
Основной шлюз: 10.97.10.1
===========================================================================
Постоянные маршруты:
Отсутствует


а вот под линуксом ну совсем другая таблица роутинга вырисовывается после получения по дшсп с тефолтными растройками :(



serenity:/etc/network# dhcpcd eth0
dhcpcd.sh: interface eth0 has been configured with new IP=10.97.10.19
serenity:/etc/network# ifconfig
eth0 Link encap:Ethernet HWaddr 00:14:85:27:97:00
inet addr:10.97.10.19 Bcast:10.97.10.63 Mask:255.255.255.192
inet6 addr: fe80::214:85ff:fe27:9700/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:233 errors:0 dropped:0 overruns:0 frame:0
TX packets:186 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21575 (21.0 KiB) TX bytes:19248 (18.7 KiB)
Interrupt:20 Base address:0xa000

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:1146 errors:0 dropped:0 overruns:0 frame:0
TX packets:1146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:69221 (67.5 KiB) TX bytes:69221 (67.5 KiB)

serenity:/etc/netwo
serenity:/var/log# ping 10.97.10.1
PING 10.97.10.1 (10.97.10.1) 56(84) bytes of data.
64 bytes from 10.97.10.1: icmp_seq=1 ttl=255 time=2.86 ms
64 bytes from 10.97.10.1: icmp_seq=2 ttl=255 time=0.774 ms
64 bytes from 10.97.10.1: icmp_seq=3 ttl=255 time=0.935 ms
64 bytes from 10.97.10.1: icmp_seq=4 ttl=255 time=0.824 ms
^C
--- 10.97.10.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 0.774/1.350/2.868/0.878 ms
serenity:/var/log# ping 92.50.178.5
PING 92.50.178.5 (92.50.178.5) 56(84) bytes of data.
From 10.97.10.19 icmp_seq=1 Destination Host Unreachable
From 10.97.10.19 icmp_seq=2 Destination Host Unreachable
From 10.97.10.19 icmp_seq=3 Destination Host Unreachable
From 10.97.10.19 icmp_seq=5 Destination Host Unreachable
From 10.97.10.19 icmp_seq=6 Destination Host Unreachable
From 10.97.10.19 icmp_seq=7 Destination Host Unreachable
^C
--- 92.50.178.5 ping statistics ---
8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 7022ms
, pipe 3
serenity:/var/log# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
92.50.178.5 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
10.97.10.0 0.0.0.0 255.255.255.192 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.97.10.1 0.0.0.0 UG 0 0 0 eth0
serenity:/var/log#





Aug 11 20:49:40 serenity dhcpcd[3485]: eth0: dhcpcd 3.2.3 starting
Aug 11 20:49:40 serenity dhcpcd[3485]: eth0: hardware address = 00:14:85:27:97:00
Aug 11 20:49:40 serenity dhcpcd[3485]: eth0: DUID = 00:01:00:01:10:e9:6b:f9:00:14:85:27:97:00
Aug 11 20:49:40 serenity dhcpcd[3485]: eth0: broadcasting for a lease
Aug 11 20:49:40 serenity dhcpcd[3485]: eth0: offered 10.97.10.19 from 10.97.10.1
Aug 11 20:49:40 serenity dhcpcd[3485]: eth0: checking 10.97.10.19 is available on attached networks
Aug 11 20:49:41 serenity dhcpcd[3485]: eth0: leased 10.97.10.19 for 3600 seconds
Aug 11 20:49:41 serenity dhcpcd[3485]: eth0: adding IP address 10.97.10.19/26
Aug 11 20:49:41 serenity dhcpcd[3485]: eth0: adding route to 92.50.178.5/32 via 10.97.10.1 metric 0
Aug 11 20:49:41 serenity dhcpcd[3485]: eth0: adding default route via 10.97.10.1 metric 0
Aug 11 20:49:41 serenity dhcpcd[3485]: eth0: adding route to 169.254.0.0/16 metric 0
Aug 11 20:49:41 serenity dhcpcd.sh: interface eth0 has been configured with new IP=10.97.10.19
Aug 11 20:49:41 serenity dhcpcd[3485]: eth0: exiting


в логах никакого криминала вроде - но один хрен не работает :(

верно ли, что сервер под дебианом и все скопипасченное выше оттуда?

конфиг дхцп в студию.

alz-chi
()
Ответ на: комментарий от alz-chi

Какой же это сервер? это клиент самый настоящий - домашник комп. и попрошу не путать dhcpd и dhcpcd - это разные проги

stas_on
() автор топика
Ответ на: комментарий от stas_on

может с конфигом гдя косяк?

stan@serenity:~$ cat /etc/dhcpc/dhclient-eth0.conf


timeout 60;
retry 60;
reboot 10;
select-timeout 5;
initial-interval 2;




interface "eth0" {
send host-name "serenity";
send dhcp-lease-time 3600;
prepend domain-name-servers 92.50.178.5
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;
require subnet-mask, domain-name-servers;
}


логи
Aug 15 09:33:18 serenity dhcpcd[2242]: eth0: exiting
Aug 15 09:35:49 serenity dhcpcd[3805]: eth0: dhcpcd 3.2.3 starting
Aug 15 09:35:49 serenity dhcpcd[3805]: eth0: hardware address = 00:14:85:27:97:00
Aug 15 09:35:49 serenity dhcpcd[3805]: eth0: DUID = 00:01:00:01:10:e9:6b:f9:00:14:85:27:97:00
Aug 15 09:35:49 serenity dhcpcd[3805]: eth0: broadcasting for a lease
Aug 15 09:35:49 serenity dhcpcd[3805]: eth0: offered 10.97.10.19 from 10.97.10.1
Aug 15 09:35:49 serenity dhcpcd[3805]: eth0: checking 10.97.10.19 is available on attached networks
Aug 15 09:35:50 serenity dhcpcd[3805]: eth0: leased 10.97.10.19 for 3600 seconds
Aug 15 09:35:50 serenity dhcpcd[3805]: eth0: adding IP address 10.97.10.19/26
Aug 15 09:35:50 serenity dhcpcd[3805]: eth0: adding route to 92.50.178.5/32 via 10.97.10.1 metric 0
Aug 15 09:35:50 serenity dhcpcd[3805]: eth0: adding default route via 10.97.10.1 metric 0
Aug 15 09:35:50 serenity dhcpcd[3805]: eth0: adding route to 169.254.0.0/16 metric 0
Aug 15 09:35:50 serenity dhcpcd.sh: interface eth0 has been configured with new IP=10.97.10.19
Aug 15 09:35:50 serenity dhcpcd[3805]: eth0: exiting


cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5). 

# The loopback network interface






auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
#address 127.0.0.1
#netmask 255.0.0.0

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
    #address 10.97.10.25
    #network 10.97.10.0
    #netmask 255.255.255.192
    #broadcast 10.97.10.255
    #gateway 10.97.10.1
    #dns-nameservers 92.50.178.5

#    network 10.97.10.0
#    broadcast 10.97.10.63
    # dns-* options are implemented by the resolvconf package, if installed
    dns-nameservers 92.50.178.5






#auto eth0

#auto dsl-provider
#iface dsl-provider inet ppp
#pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
#provider dsl-provider

stason
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.