[Gllug] Hosed network
Philip Hands
phil at hands.com
Sat Nov 27 09:57:02 UTC 2010
On Sat, 27 Nov 2010 08:55:53 +0000, Sanatan Rai <sanatan at gmail.com> wrote:
...
> 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?
zcat /usr/share/doc/ifupdown/examples/network-interfaces.gz >> /etc/network/interfaces
Then edit /etc/network/interfaces, using the first eth0 example (probably)
From the added stuff. You'll need an 'lo' entry uncommented as well. Then run:
/etc/init.d/networking restart
or
ifdown eth0
ifup eth0
or reboot.
The problem you're having is because you've not set a default root,
which is done by the gateway bit of the interfaces stanza.
You could do that by hand with:
route add default gw 192.168.2.1
assuming that's your router address.
Cheers, Phil.
--
|)| Philip Hands [+44 (0)20 8530 9560] http://www.hands.com/
|-| HANDS.COM Ltd. http://www.uk.debian.org/
|(| 10 Onslow Gardens, South Woodford, London E18 1NE ENGLAND
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20101127/9f935112/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list