When you do the init level switch you rerun the network initialization
script (/etc/rc.d/init.d/network).   This does a whole bunch of things
including resetting routes, etc...

Try running /etc/rc.d/init.d/network with a restart argument - i.e.

/etc/rc.d/init.d/network restart

after you've made your changes.

Jay Kline wrote:
> 
> Ok, here is an example of how this is working-
> 
> I turn on my computer on a network that has no DHCP server
> The DHCP request fails on boot, so eth0 is not set up. I manually set eth0
> with the correct ip, netmask, and broadcast. I set up routing correctly.
> Then, I try and ping the gateway.  Nothing. I try and ping the other
> computers on the network that I know are up.  Nothing.  So I save the
> configuration using netconf (using the exact same settings I just did
> manually) and go to init level 1, then back to init 5, and it magicly works.
> This seems somewhat like a bug, and knowing RedHats reputation with pump,
> they may have done something strange with ISC's client.   So, my question is
> not "how do I set an ip address manually" its "what is dhcpcd doing so that I
> cannot set an ip address manually"
> 
> Jay
> 
> On Monday 01 July 2002 1:16 pm, Ben Neigebauer wrote:
> > You still might not even be able to ping your gateway if your ip route list
> > is messed up.
> >
> > Example,
> >
> > I have a machine at 192.168.98.1 and one at 192.168.98.14.
> >
> > There is an entry in my ip route table that is:
> >
> > 192.168.98.0/24 dev eth1 scope link
> >
> > which basically says, go through dev eth1 for anything bound for that
> > network.
> >
> > If I remove it, I can no longer ping my 192.168.98.14 address from
> > 192.168.98.1
> > It doesn't know where it needs to go.
> >
> > Can you post the result from an ip route list?
> >
> > [bob at linuxgateway /]@ip route
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: tclug-list-admin at mn-linux.org
> > [mailto:tclug-list-admin at mn-linux.org]On Behalf Of Jay Kline
> > Sent: Monday, July 01, 2002 12:12 PM
> > To: tclug-list at mn-linux.org
> > Subject: Re: [TCLUG] RH7.3 and DHCP
> >
> >
> > Yes, the first test I make is if I can ping my gateway (by IP, not name)
> > and that fails.  I know the server is up, and I know the cables are good.
> > It seems to be another issue.
> >
> > Jay
> >
> > On Monday 01 July 2002 11:13 am, Kent Schumacher wrote:
> > > I believe the DHCP client also sets up name resolution and default
> > > routes. Are these being set correctly when you are manually configuring
> > > things?
> > >
> > > Jay Kline wrote:
> > > > On Sunday 30 June 2002 11:03 am, ccox at linuxsnob.com wrote:
> > > > > well, I'm thinking that's might be an  honest bug.  have you had
> > > > > any other distros on that hardware?, or another nic you could
> >
> > configure
> >
> > > > > to verify whether or not the problem is a part of the nic driver?
> > > >
> > > > Being a laptop, I dont have any other hardware to try.  Nor do I want
> > > > to just start installing whatever on it. It is a Xrocom 10/100 + Modem
> >
> > (from
> >
> > > > Dell).
> > > >
> > > > >       I just had another thought, is that nic a pcmcia device?  if it
> > > > > is, you might need to do a restart of some of the pcmcia modules to
> >
> > get
> >
> > > > > it to kick over.
> > > >
> > > > Hmm.. Interesting thought.  I will have to give that  a try next time.
> > > > But I seem to remember having this same problem on a desktop pc at work
> > > > once.  I dont recall what the solution there was.
> > > >
> > > > >       I'm just shooting from the hip, I don't have 7.3 on anything as
> > > > > of yet. so if anyone else can shed some light on this, you might be
> > > > > more help than me at this point.
> > > >
> > > > Does anyone run a version of the ISC DHCP client on a network without a
> > > > DHCP server? (like a roaming laptop)  If there is a version that does
> > > > work, I may just track down that version and see if it makes a
> > > > difference.
> > > >
> > > > Jay