Operating System - Linux
1832984 Members
2968 Online
110048 Solutions
New Discussion

how to change from DHCP to an fix IP

 
SOLVED
Go to solution
Pierre_6
Occasional Contributor

how to change from DHCP to an fix IP

Hello Linux freaks,
I installed my RH7 Server first with DHCP, now I would like to change to an fix IP.
Which files I have to edit?
I know in HP-UX the /etc/hosts and the /etc/rc.config.d/netconf but linux?
thks for you help
cya Pierre
1 REPLY 1
U.SivaKumar_2
Honored Contributor
Solution

Re: how to change from DHCP to an fix IP

hi,

stop the dhcp service.
#cd /etc/dhcpc
# rm *

edit /etc/sysconfig/network-scripts/ifcfg-eth0
apply the ip address .

reboot.

regards,
U.SivaKumar
Innovations are made when conventions are broken