LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   changed ifcfg from dhcp to static ip (https://www.linuxquestions.org/questions/linux-software-2/changed-ifcfg-from-dhcp-to-static-ip-136806/)

monc 01-20-2004 03:19 PM

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

stickman 01-20-2004 03:35 PM

Try the following:
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
ONBOOT=yes

monc 01-21-2004 01:16 AM

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

stickman 01-21-2004 08:12 AM

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.