red hat ent 5 network

Hi All,

I configured during the installation my red hat 5 ent with dhcp enable. Now I modified to static on ../ifcfg-eth0. It won't change when network is restarted with ../network restart command. I need to do ifdown eth0 and ifup eth0. And when rebooted, it will go back to dhcp.

Here's my ifcfg-eth0:

DEVICE=eth0
BOOTPROTO=static
HWADDR=00:0C:29:60:EB:6E
ONBOOT=yes
NETMASK=255.255.255.0
TYPE=Ethernet
USERCTL=yes
IPV6INIT=no
PEERDNS=no
IPADDR=192.168.145.50
GATEWAY=192.168.145.2

What's wrong with this settings or do I need to configure other settings?

Thanks in advance,
Itik

I remember I did this the same error before. I used to backup a config file before modifying it. So linux is confused and even use the backup with extention .org instead of the ifcfg-eth0.

hehe