Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to disable the dhcp

Status
Not open for further replies.

tg2003

IS-IT--Management
Feb 6, 2003
270
IL
I have RHEL 4 machine.

I want to disable it and use static IP to my machine.

This is my /etc/sysconfig/network-scripts/ifcfg-eth0 file:

DEVICE=eth0
BOOTPROTO=static
IPADDR=<MY IP>
HWADDR=00:11:25:4B:B3:E2
ONBOOT=yes
TYPE=Ethernet

but after reboot I get an IP from the DHCP and dhcp daemon is working

What's wrong?
thanks!
 
turning off the dhcp daemon is done through 'chkconfig'

at to the NIC, you have more than one NIC?

run 'ifconfig -a' just to make sure that you've not been programming the config file for another NIC. You've done the right thing. you should NOT be running DHCPd unless you intended to

D.E.R. Management - IT Project Management Consulting
 
If you're running RHE you should be able to disable the dhcpd using either chkconfig or you can use ntsysv and disable dhcpd to prevent startup on boot.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top