routing table problem after power failure (sarge)
Hi. I've got this problem:
- Running Debian Sarge 2.4 for a month succesfully.
- After playing around with Postfix' configuration, I can't connect to the
internet any more. Power failure somewhere during config too.
- static ips, connected through internet by router/modem
- two interfaces, eth0 and eth1, both on lan (router on lan too)
- router is known to be working (I send this mail ;-) )
- was desperate, so I installed sendmail after this shit, still in apt-get
cache.
Samba is working on my lan, but I can't even ping my ISP's dns server
(package loss 100%). Pinging to ip adresses on my lan, including router, is
ok. Pinging 127.0.0.1 is ok, but pinging localhost times out.
After every reboot, /etc/resolv.conf is clean: all content removed. I put
back "nameserver x.x.x.x" and save.
In /etc/network/if-up.d/sendmail and if-down/sendmail I commented out
everything, thought that was helping the problem to disappear.
I can't use http and ftp to the box any more, but I can SSH.
ifconfig returns this:
eth0 Link encap:Ethernet HWaddr 00:50:FC:EE:34:F3
inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:500429 errors:0 dropped:0 overruns:0 frame:0
TX packets:928956 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:225295220 (214.8 MiB) TX bytes:106054076 (101.1 MiB)
Interrupt:11 Base address:0x1800
eth1 Link encap:Ethernet HWaddr 00:50:BF:98:09:5C
inet addr:10.0.0.2 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5315 errors:0 dropped:0 overruns:0 frame:0
TX packets:336 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:814799 (795.7 KiB) TX bytes:23456 (22.9 KiB)
Interrupt:11 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:819773 errors:0 dropped:0 overruns:0 frame:0
TX packets:819773 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:57913328 (55.2 MiB) TX bytes:57913328 (55.2 MiB)
I think this is ok (?).
route -n returns this. i think this is wrong:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
0.0.0.0 10.0.0.250 0.0.0.0 UG 0 0 0 eth1
0.0.0.0 10.0.0.250 0.0.0.0 UG 0 0 0 eth0
note: I added my router (10.0.0.250) using "route add default gw
10.0..0.250"
The box is not working as an internet sharing device. bind9 is installed,
don't know if it has been working before.
The main issue: nslookups not working
smaller issue: localhost not found.
Can somebody give me some hints how to repair this, without a clean install?
Thanx, Corné (Holland)
Reply to: