LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-25-2010, 09:36 AM   #1
rohit.dhaval1
Member
 
Registered: Jul 2009
Posts: 39
Blog Entries: 2

Rep: Reputation: 0
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
 
Old 11-25-2010, 09:55 AM   #2
kaushalpatel1982
Member
 
Registered: Aug 2007
Location: INDIA
Distribution: CentOS, RHEL, Fedora, Debian, Ubuntu, LinuxMint, PCLinuxOS
Posts: 137

Rep: Reputation: 7
Check whether you have dhclient running on your system by ps. you can also check messages.
 
Old 11-25-2010, 10:29 AM   #3
rohit.dhaval1
Member
 
Registered: Jul 2009
Posts: 39
Blog Entries: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kaushalpatel1982 View Post
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?

Last edited by rohit.dhaval1; 11-25-2010 at 10:31 AM.
 
Old 11-25-2010, 05:32 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Quote:
Originally Posted by rohit.dhaval1 View Post
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.
 
1 members found this post helpful.
  


Reply

Tags
dhcp, network


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two DHCP IP assigned to a single Machine? linuxunix Linux - Newbie 3 04-17-2010 11:14 AM
Addressing a machine in a DHCP environment Quakeboy02 Linux - Networking 18 12-01-2008 06:23 PM
How do I get the gateway IP from a DHCP client machine? aquadrop Linux - Networking 1 05-18-2007 03:56 AM
Machine gets IP from DHCP but can't see the world JoAnywhere Linux - Networking 7 10-28-2003 07:28 PM
machine name changed by DHCP serquicia Linux - General 4 12-18-2002 08:53 PM


All times are GMT -5. The time now is 07:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration