You need to edit /etc/sysconfig/network-scripts/ifcfg-eth0

BOOTPROTO="none"
IPADDR="x.x.x.x" (IP address)
NETMASK="y.y.y.y" (Subnet mask)
NETWORK="x.x.x.0" (Ntework address)
BROADCAST=x.x.x.x (broadcast address)

Edit the /etc/resolv.conf to add the DNS servers:

nameserver a.b.c.d

Edit the /etc/sysconfig/network file to change the default gateway

GATEWAY="a.b.c.d"


Save the file.

Run the following to shutdown and restart the eth0.

#/etc/sysconfig/network-scripts/ifdown eth0
#/etc/sysconfig/network-scripts/ifup eth0

Run ifconfig to verify the new settings

Hope this helps.

Regards,

Raj

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 2:08 PM
To: [EMAIL PROTECTED]
Subject: How to go from DHCP to static address


I have a Redhat 7.3 machine running on my home network.  When I
originally set it up, I had it grab its IP address from a DHCP server.
I would like to change this to a static address.  Can somebody point me
in the right direction as far as what files need to be configured?

Thanks
mike



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to