[Gllug] Hosed network
James Courtier-Dutton
james.dutton at gmail.com
Sat Nov 27 09:42:19 UTC 2010
On 27 November 2010 08:55, Sanatan Rai <sanatan at gmail.com> wrote:
> Hi all,
> Yesterday I managed to hose networking on my machine.
> This resulted when I removed dhcdbd trying to follow the
> instructions to convert to dependency boot.
>
> At this point I've managed to reinstall dhcdbd, dhcp-client
> from the Lenny install disc.
>
> I have eth0 up:
>
> fractal:/home/sanat# ifconfig
> eth0 Link encap:Ethernet HWaddr 00:13:d3:ba:98:43
> inet addr:192.168.2.3 Bcast:192.168.2.255 Mask:255.255.255.0
> inet6 addr: fe80::213:d3ff:feba:9843/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:4147937 errors:0 dropped:0 overruns:0 frame:0
> TX packets:3074512 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:780041154 (743.9 MiB) TX bytes:344276054 (328.3 MiB)
> Interrupt:18 Base address:0xd300
>
> lo <snipped>
>
> I can see all the machines on my home network, in fact the above dump
> was produced by SSH'ing into the machine.
>
> I can't see the outside world. So can't ping the outside world from
> this machine. The routes seem hosed:
>
> fractal:/home/sanat# netstat -nr
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
>
> fractal:/home/sanat# route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
>
>
> What should I do to fix this?
>
You need an extra entry in your routing table.
So, if the IP address of you router attached to the internet is 192.168.2.1
use this line:
sudo ip route add default via 192.168.2.1
Your dhcp client should have added this for you, but at least this
manual line will get you going.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list