Re: Network config help needed
On Wed, 5 Mar 2003 at 9:00pm, chris1622@telia.com wrote:
:Setting up the loopback and pingin it works fine, pinging into the
:machine also works fine (tried from an old win95 machine). But
:pinging out of the machine dosn't work, I'm getting the error message
:"Unable to connect to remote host: No route to host" when telnetting.
Does "route -n" show a gateway? It should show something like:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
If it shows something like
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
then you don't have a default gateway set up. Do "route add default gw
192.168.1.1" substituting the correct IP address for your gateway of
course. Edit /etc/interfaces (as directed at "man interfaces") to have it
work on boot.
Patrick
--
Patrick Wiseman pwiseman@mindspring.com
Linux user #17943 *Google First, Ask Later*
Reply to: