Dhcp in use or not on Solaris machine

Thread Tools Search this Thread
Operating Systems Solaris Dhcp in use or not on Solaris machine
# 1  
Old 03-26-2014
Dhcp in use or not on Solaris machine

Hi All,

Could you please let me know how can we check whether any given solaris machien is using DHCP or not.
ps -ef | grep dhcp

is full proof method or is their any other way.
# 2  
Old 03-26-2014
You are looking for a DHCP process (a DHCP server), which has nothing to do with whether an interface is using DHCP.

Please search the forums first:

How to tell if i am using DHCP or Static | Unix Linux Forums | UNIX for Dummies Questions & Answers
# 3  
Old 03-26-2014
thanks Scott. for soalris i am using the below script :
for i in `/usr/sbin/ifconfig -a | awk '/flags/ {print $1}' | grep -v lo | sed 's/://g'`
ifconfig $i dhcp status

which will give output as below :
PHP Code:
ifconfige1000g0: interface is not under DHCP control
e1000g1: interface is not under DHCP control 
simillarly for linux , is there any command(simillar to ifconfig <network adapter> dhcp status)
which can give status of DHCP.
# 4  
Old 03-26-2014
It might depend on which Linux you are using. In RHEL, ifconfig is deprecated (and doesn't show if the interface is using DHCP, and it's replacement commands don't show it either, from what I can see).

You can check /var/lib/dhclient/dhclient-*.leases files or the interface configuration files (in the case of RHEL) in /etc/sysconfig/network-scripts/ifcfg-*.

Last edited by Scott; 03-26-2014 at 02:06 PM.. Reason: Added /etc/... info
# 5  
Old 03-26-2014
thanks a lot Scott.

but is it possible by any other method apart from checking the file given by you.
i am just trying to check whether the RHEL machine is running with dhcp or not .
Please suggest.
# 6  
Old 03-26-2014
DHCP clients are programs, not a driver or setting, which is why this is complicated. There isn't a special "this interface is using DHCP" flag. The client might not even still be running, and if it is, you don't necessarily know which client.

So, figuring out if a distribution uses DHCP comes down to understanding how it's configured and therefore knowing what to check for.
# 7  
Old 03-26-2014
We have one address range for statis IP addresses. And we have a second range for DHCP addresses. I just look at the IP address and see which range it is in. Don't you guys have a specific range of addresses for DHCP?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Dhcp in use or not for Linux machine

Hi All. Can anyone let me know the smartest and fullprrof method of checkking whther any given linux machine is using DHCP or not? # ps -ef | grep dhcp gives output like below : root 3251 3128 0 11:02 pts/0 00:00:00 grep dhcp so i dont think its full proof method , please... (3 Replies)
Discussion started by: omkar.jadhav
3 Replies

2. Solaris

DHCP is getting different class of IP than host machine on Solaris 10

i have a laptop with windows 7 installed . this laptop is dhcp enabled and it's details are as follows : IPv4 Address. . . . . . . . . . . : Subnet Mask . . . . . . . . . . . : Default Gateway . . . . . . . . . : i installed solaris 10 on vmware on... (5 Replies)
Discussion started by: rehantayyab82
5 Replies

3. Solaris

Solaris DHCP Server

I need to find out the MAC address of an IP leased from DHCP server . For Eg:-i need to know the MAC of the below mentioned IP at the below mentioned time . IP : Date :Sunday July 2nd 2011 Time : 14.07.2011 OS -Solaris 10 Vital QIP IP management software using to... (0 Replies)
Discussion started by: sandeep.tk
0 Replies

4. Solaris

Solaris 10 DHCP Help

Dear All, I have following configuration solaris 10 host interface e1000g0 hold IP having internet access natted to public ip on cisco switch interface e1000g1 hold IP DHCP server with DHCP client IP ranges to /etc/defaultrouter hold... (4 Replies)
Discussion started by: patel1678
4 Replies

5. Solaris

Solaris 9 : DHCP Option 43 and 60

Hello, I need to configure a Cisco VLAN Accesspoint with DHCP using Solaris dhtadm & pntadm Network: Default Router Scope Range - 254 Option 60 “Cisco AP c1142” Option 43 ... (0 Replies)
Discussion started by: fredy82
0 Replies

6. IP Networking

RSH to Ubuntu machine from Solaris machine?

This is probably really basic compared to what you guys are usually talking about here, but I have a problem and I have no idea what to do about it. I try to RSH to my Ubuntu computer from my Solaris one and run into a dead end: >> rsh ::ffff: Connection timed out... (4 Replies)
Discussion started by: Bradj47
4 Replies

7. Solaris

Best possible communication mechanism between a Solaris machine and a windows machine

hi, I have some windows client machines which require a signal to be sent by a Solaris machine( SunOS 5.6) when ever a particular event occurs on that Solaris machine. What are possible communication mechanisms by which i can do this. the constraints are > the windows machines have to... (7 Replies)
Discussion started by: Krsh
7 Replies

8. UNIX for Dummies Questions & Answers

Solaris Machine IP Configuration via DHCP

I have a new solaris machine and I am trying to bring the same on network. The IP assignemnt is via DHCP. I want to know as which files need to be modified to include DHCP server IP in order that the machine gets its IP via DHCP server. Thanks in Advance. :) (1 Reply)
Discussion started by: Ashvin Gaur
1 Replies

9. Solaris

Stop DHCP in Solaris 10

Can any one tell me how to stop DHCP service on Solaris 10 so that it should not start nextime when the system is rebooted. (2 Replies)
Discussion started by: shabu
2 Replies

10. IP Networking

dhcp with solaris 8

I am running solaris 8 on the ultra 5 sparc. I used to have a static ip address set up and now I've moved and I'm trying to get dhcp working. I have read many man pages. My latest attempt was trying to use the ifconfig command to set this up but I'm not sure how to use it. How does my gateway... (9 Replies)
Discussion started by: mhunting
9 Replies
Login or Register to Ask a Question