pu wrote:
> Hi all,
>
> I have run my Linux 9.0
No such thing, so presume you mean Redhat Linux 9.0. If it's Mandrake
or Suse, then following does not apply (directly).
> as 192.168.0.1 for a while now with little problems.
> I am trying to change the static IP address to obtaining a dynamic
one from
> 192.168.0.190 (router with DHCP server).
If it ain't broke, why "fix" it? Does it assign IPs/GW/DNS or just act
as relay to ISP's dhcp server?
>When I change the contents of
> ifcfg-eth0 to
> ===begin===
> DEVICE=eth0
> BOOTPROTO=dhcp
> ONBOOT=yes
> ===end===
Did you edit the files by hand? Unless you know how Rh boots up the
network and _all_ the files it uses, it is best to use the gui X tool.
$ redhat-config-network
or
$ neat
> and reboot, linux hangs on "Bringing up eth0 interface".
Usually means that a dhcp server is not on the local segment and there
is no relay. Also could be that GW router is offline/not
connecting/responding.
> I then reboot in
> resuce mode and restore the original files to boot up back to the
static ip.
Be happy and leave it that way
> The /etc/sysconfig/network file also has the
> following:
> NETWORKING=yes
> HOSTNAME=linlee
> GATEWAY=192.168.0.190
Also check that /etc/sysconfig/static-routes is an empty (zero bytes)
file.
hth,
prg
email above disabled