LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dhcp -> static ip configuration. (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-static-ip-configuration-200872/)

linux_faq 07-03-2004 10:57 PM

dhcp -> static ip configuration.
 
My Red Hat 9.0 network interface is currently running in dhcp configuration. I would like to switch to static IP.

My ifcfg-eth0 file looks like below.

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=00:04:E2:83:F5:58
MODE=Managed
ESSID=coconut
KEY=xxxxxxxxxxxxxxxxxxxxxxxxxx


My router address is http://192.168.2.1

I know I need to add some kind of IPADDR, NETMASK, GATEWAY and BROADCAST variables and change BOOTPROTO to "static", but don't seem to get the setting correctly.

Please advise.

Thanks in advance.

born4linux 07-04-2004 12:16 AM

use:

redhat-config-network-druid

or

netconfig -d eth0

then do a /sbin/service network restart

u need to have root access to do this.


All times are GMT -5. The time now is 12:18 AM.