I need a clue - having a network problem

Andrew Mathews andrew_mathews
Mon May 17 11:32:59 PDT 2004


Alan Jackson wrote:
> On Sat, 08 Jun 2002 11:47:16 -0600  Andrew Mathews wrote:
> 
>>Alan Jackson wrote:
>>
>>>Well our power went away last night for several hours, and that's when
>>>I discovered that I forgot to put my router/switch on the UPS - whoops!
>>>So I couldn't rlog into one of my systems to shut it down. And that system
>>>is causing me problems today. 
>>
>><snip>
>>
>>Does the sick system have a default route set? route -n or netstat -r 
>>should list the default route if it's set, otherwise use the
>>route add default gw xxx.xxx.xxx.xxx command to set it.
> 
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
> 192.168.0.0     *               255.255.255.0   U         0 0          0 eth0
> 127.0.0.0       *               255.0.0.0       U         0 0          0 lo
> 
> so I did 
> 
> route add default gw router.oplnk.net
> 
> and that fixed it!
> 
> Thank you!!
> 
> I still have no idea why it broke.....

You may need to set it in /etc/sysconfig/network-scripts/ifcfg-eth0.
It will look something like:
DEVICE=eth0
IPADDR=10.10.108.12
NETMASK=255.255.255.0
NETWORK=10.10.108.0
BROADCAST=10.10.108.255
GATEWAY=10.10.108.11
ONBOOT=yes
Just add the line for GATEWAY= if it's not there, or the address if it is.
Glad to help.
-- 
Andrew Mathews
------------------------------------------------------------
  12:30pm  up 28 days, 12:10,  9 users,  load average: 1.13, 1.08, 1.06
------------------------------------------------------------
Thus spake the master programmer:
	"When you have learned to snatch the error code from
	the trap frame, it will be time for you to leave."
		-- Geoffrey James, "The Tao of Programming"




More information about the Linux-users mailing list