Pb de conf réseau
Salut,
Après la discussion précédente (), j'ai débranché l'ADSL sur eth1 pour ne laisser que le SDSL
sur eth0 en attendant d'avoir un peu de temps pour configurer iptables / ip route
Le pb est que le réseau tombe assez régulièrement, sans que je comprenne pourquoi ni comment le
remonter (un ifdown eth0 && ifup eth0 marche pas).
Au boot (et reboot) ça marche, avec /etc/init.d/networking restart && ifup aussi.
La question est pourquoi ?
Et accessoirement comment on sait ce qui déconne et qui redémarrer.
J'ai du network unreachable alors que je ping la passerelle et qu'elle est bien la route par
défaut, je pige pas trop... c'est elle qui sait plus sortir ? (me parait pas très crédible)
/etc/network/interfaces :
auto lo
iface lo inet loopback
allow-hotplug eth1
iface eth1 inet dhcp
allow-hotplug eth0
iface eth0 inet dhcp
cat /etc/resolv.conf
nameserver 127.0.0.1
nameserver 192.168.2.254
dig nimportequoi @127.0.0.1
...
;; connection timed out; no servers could be reached
alors que netstat dit
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1893/named
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 1893/named
tcp6 0 0 :::53 :::* LISTEN 1893/named
tcp6 0 0 ::1:953 :::* LISTEN 1893/named
udp 0 0 192.168.2.65:46613 192.228.79.201:53 ESTABLISHED 1893/named
udp 0 0 192.168.2.65:56619 192.58.128.30:53 ESTABLISHED 1893/named
udp 0 0 192.168.2.65:22831 198.41.0.4:53 ESTABLISHED 1893/named
udp 0 0 192.168.2.65:55217 192.58.128.30:53 ESTABLISHED 1893/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 1893/named
udp 0 0 192.168.2.65:26071 192.112.36.4:53 ESTABLISHED 1893/named
udp6 0 0 :::53 :::* 1893/named
bind serait occupé à joindre des dns à l'extérieur, n'y arriverait pas et ne répondrait plus ?
pourtant rien de tel dans daemon.log (ni syslog)
route
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
default sdslmodem 0.0.0.0 UG 0 0 0 eth0
sdslmodem est 192.168.2.254
eth0 est 192.168.2.65
ping 192.168.2.254 OK, mais vers l'extérieur KO (http sûr, mais j'ai un doute sur le ping, je me
rappelle plus si j'ai eu du network unreachable avec un ping sur ip externe ou si ça pouvait être
seulement un pb dns)
J'en ai marre : ifdown eth0 && débrancher SDSL && brancher ADSL && ifup eth1 :
SIOCSIFFLAGS: Cannot allocate memory
SIOCSIFFLAGS: Cannot allocate memory
Listening on LPF/eth1/00:24:8c:15:40:ef
Sending on LPF/eth1/00:24:8c:15:40:ef
Sending on Socket/fallback
receive_packet failed on eth1: Network is down
...
dans le kern.log
Apr 24 10:49:20 quad kernel: [ 8087.380435] ifconfig: page allocation failure. order:8, mode:0x8020
Apr 24 10:49:20 quad kernel: [ 8087.380439] Pid: 11836, comm: ifconfig Tainted:P 2.6.32-5-686-bigmem #1
Apr 24 10:49:20 quad kernel: [ 8087.380442] Call Trace:
Apr 24 10:49:20 quad kernel: [ 8087.380450] [<c1093065>] ? __alloc_pages_nodemask+0x484/0x4d9
Apr 24 10:49:20 quad kernel: [ 8087.380455] [<c1200d31>] ? nlmsg_notify+0x3b/0x71
Apr 24 10:49:20 quad kernel: [ 8087.380460] [<c100b737>] ? dma_generic_alloc_coherent+0x60/0xd9
Apr 24 10:49:20 quad kernel: [ 8087.380464] [<c100b6d7>] ? dma_generic_alloc_coherent+0x0/0xd9
Apr 24 10:49:20 quad kernel: [ 8087.380489] [<f8162547>] ? atl1e_open+0x10e/0x3c9 [atl1e]
Apr 24 10:49:20 quad kernel: [ 8087.380498] [<c11ebbde>] ? dev_open+0x90/0xcc
Apr 24 10:49:20 quad kernel: [ 8087.380501] [<c11eb4a8>] ? dev_change_flags+0xa2/0x153
Apr 24 10:49:20 quad kernel: [ 8087.380505] [<c122a1cb>] ? devinet_ioctl+0x236/0x4cb
Apr 24 10:49:20 quad kernel: [ 8087.380509] [<c11dd851>] ? sock_ioctl+0x1c9/0x1ee
Apr 24 10:49:20 quad kernel: [ 8087.380512] [<c11dd688>] ? sock_ioctl+0x0/0x1ee
Apr 24 10:49:20 quad kernel: [ 8087.380516] [<c10c5aa4>] ? vfs_ioctl+0x1c/0x5f
Apr 24 10:49:20 quad kernel: [ 8087.380519] [<c10c6038>] ? do_vfs_ioctl+0x4aa/0x4e5
Apr 24 10:49:20 quad kernel: [ 8087.380523] [<c12823e8>] ? do_page_fault+0x2f1/0x307
Apr 24 10:49:20 quad kernel: [ 8087.380526] [<c10c60b4>] ? sys_ioctl+0x41/0x58
Apr 24 10:49:20 quad kernel: [ 8087.380529] [<c100813b>] ? sysenter_do_call+0x12/0x28
...
/etc/init.d/networking restart
=> lo only
ifup eth1
=> OK
C'est un pb de driver eth0 (carte RT 8139) ?
dmesg|grep eth
[ 1.061954] eth0: RealTek RTL8139 at 0xe800, 00:e0:29:9a:82:97, IRQ 16
...
[ 8760.250779] ATL1E 0000:02:00.0: ATL1E: eth1 NIC Link is Up<1000 Mbps Full Duplex>
lsmod|grep 8139
8139too 15009 0
mii 2714 1 8139too
Je vais mettre le SDSL sur eth1 pour voir...
--
Daniel
Dans la marine on ne fait pas grand chose mais on le fait de bonne heure.
devise Shadok
Reply to: