[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Default Route Not Sticking
- From: gregory mott <gmott ntlworld com>
- To: redhat-list redhat com
- Subject: Re: Default Route Not Sticking
- Date: Fri Nov 1 04:02:43 2002
on my redhat box, the gateway is specified in
/etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
IPADDR=192.168.0.2
GATEWAY=192.168.0.1
On Thu, 2002-10-31 at 18:02, Xander D Harkness wrote:
> Edward Marczak wrote:
> >I have a machine that I've moved. I edited
> >/etc/sysconfig/network-scripts/ifcfg-eth0 to reflect the new ip address.
> >I'm also sticking the new gateway in /etc/sysconfig/network. However, upon
> >a reboot, I don't have any default gateway under netstat -rn.
> >
> >Hmmmm. This is a 7.3 box....did they change something on me? I'm trying to
> >avoid just putting a line in rc.local. I'd like to do this the 'RedHat
> >way'. Thanks.
>
> Check that the gatewaydev in
> /etc/sysconfig/network is the gateway device if there. Are there any other network devices about with a route set, this might take preference.
>
> Check again that it is a valid gateway for the netmask etc. If not it will refuse to set it.
>
> If that fails try setting the IP etc using netconfig
>
> Cheers
> Xander
> --
> Are you a parent? Do you sometimes find yourself unsure as to what to
> say in those awkward situations? Worry no more...
>
> Good children always obey.
> Quit acting so childish.
> Boys don't cry.
> If you keep making faces, someday it'll freeze that way.
> Why do you have to know so much?
> This hurts me more than it hurts you.
> Why? Because I'm bigger than you.
> Well, you've ruined everything. Now are you happy?
> Oh, grow up.
> I'm only doing this because I love you.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]