LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I don't want my machine to contact dhcp (https://www.linuxquestions.org/questions/linux-newbie-8/i-dont-want-my-machine-to-contact-dhcp-846518/)

rohit.dhaval1 11-25-2010 09:36 AM

I don't want my machine to contact dhcp
 
Hi,

I have assigned static IP to my machine but, somehow, NIS entries are getting chenged due to /sbin/dhclient-script

ie,

cat /etc/yp.conf
# generated by /sbin/dhclient-script

Please help me. I do not want my machine to have changes from DHCP.

I have enabled static Ip in below given format,

DEVICE=eth0
BOOTPROTO=static
BROADCAST=10.50.100.255
HWADDR=00:60:97:94:52:69
IPADDR=10.50.100.1
NETMASK=255.255.255.0
NETWORK=10.50.100.0
ONBOOT=yes
TYPE=Ethernet

kaushalpatel1982 11-25-2010 09:55 AM

Check whether you have dhclient running on your system by ps. you can also check messages.

rohit.dhaval1 11-25-2010 10:29 AM

Quote:

Originally Posted by kaushalpatel1982 (Post 4170888)
Check whether you have dhclient running on your system by ps. you can also check messages.

No DHCP client is not running on the machine.

Quote:


bash # ps -ef | grep dhcp
root 5347 3740 0 16:26 pts/0 00:00:00 grep dhcp
bash # /etc/init.d/dhcpd status
-bash: /etc/init.d/dhcpd: No such file or directory

Moreover, I do not have DHCP server details, otherwise, I would have myself removed entry for my machine from dhcpd.conf file.

Is there a way I can get to know the DHCP server IP?

theNbomr 11-25-2010 05:32 PM

Quote:

Originally Posted by rohit.dhaval1 (Post 4170918)
No DHCP client is not running on the machine.

Are you sure? the dhcp client executable is called dhclient, and does not match the string you passed to grep.

--- rod.


All times are GMT -5. The time now is 07:35 PM.