changed ifcfg from dhcp to static ip
We have redhad installed minimum.
we want to change the ifcfg-eth0 from dhcp to static ip, but when we restart the network service eth0 doesn't come up. our ifcfg-eth0: device=eth0 ipaddr=192.168.1.1 netmask=255.255.255.0 network= 192.168.1.0 broadcast=192.168.1.250 onboot=yes gr monc |
Try the following:
DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.1.1 NETMASK=255.255.255.0 ONBOOT=yes |
I changed ifcfg-eth0 but when i type ifconfig i don't get an Ipadress
it stil doesn't work. Must i change other scripts also? gr monc |
Just using ifconfig isn't going to help unless you manually specify the settings. ifconfig doesn't read ifcfg-eth0. You must restart networking to verify that it reads from the config files properly. On a RH system, do the following:
service network restart |
All times are GMT -5. The time now is 04:15 PM. |