Sponsored Content
Full Discussion: DHCP server discover
Special Forums IP Networking DHCP server discover Post 302573350 by otheus on Monday 14th of November 2011 07:50:17 AM
Old 11-14-2011
Mrm. A script won't help you. Something like nmap would be your tool of choice. I'm thinking this is what you want to use (run as root):
Code:
nmap -oN /tmp/dhcp-discovery.txt -sU -p 67,547 10.2.11.0/24  10.2.0.0/16

Change the portion in blue to match your subnet/bits-in-mask.

Then grep the results:
Code:
grep -B4 open /tmp/dhcp-discovery.txt

If your grep doesn't support "-B", try:
Code:
egrep "(^Interesting)|( open)" /tmp/dhcp-discovery

And you'll see output like:
Code:
Interesting ports on 10.2.11.88:
Interesting ports on 10.2.11.205:
67/udp open|filtered dhcps
Interesting ports on 10.2.11.210:
Interesting ports on 10.2.11.211:
Interesting ports on 10.2.11.212:

And the line in red is the one you're interested in.

Last edited by otheus; 11-14-2011 at 10:18 AM.. Reason: corrections, expounding on output
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

DHCP Server Suggestions

I need to setup a DHCP server in our office for Macs, Windows (98/ME/NT/2000) Linux and Unix servers and workstations. We want it on a Unix server, but I'm unsure what is out there. The Unix world is new to me, so any suggestions would be appreciated. Thanks! Corey (2 Replies)
Discussion started by: coreyhead
2 Replies

2. IP Networking

DHCP server question

hi all... i have a question about of the dhcp server.... how i can configurate 3 vlans on the server....? thank you (5 Replies)
Discussion started by: chanfle
5 Replies

3. AIX

AIX & DHCP Server

Dear people, i have a problem with my DHCP Server based on an AIX. I try to evaluate my dhcpsd.log and find some errors. But now i'm missing a documentation about this errors. For example "protocol_spsm: address check failed". i would be happy if someone could tell me where to find a... (0 Replies)
Discussion started by: ektoplasma2000
0 Replies

4. Solaris

couldn't contact the DHCP server

hi when i configure for DHCP in my solaris it says not able to contact dhcp server.. what might be the problem( is there any problem in recognizing my hostname by DHCP Server)? can any one explain thanks in advance (1 Reply)
Discussion started by: srikanthg
1 Replies

5. IP Networking

DHCP server also acting as relay

Hi. I want to use the DHCP server that comes with vxWorks 6.4. The DHCP server implementation has a table that contains addresses of DHCP servers that will receive a copy of all the client requests that the local server gets, thus the server acts as a dhcp relay at the same time. Can anyone... (4 Replies)
Discussion started by: tomwolf
4 Replies

6. Solaris

Exporting DHCP to backup server

Hi just looking for some advise on the best way to set-up a passive dhcp server in solaris. Was thinking of exporting the dhcp data/macros etc to a separate server to use as a backup that will be activated when the main dhcp server goes down Any hints/tips etc greatly appreciated (1 Reply)
Discussion started by: eeisken
1 Replies

7. Solaris

Is a Solaris dhcp server better than windows?

hi, we are moving to dhcp from a static ip and i'm thinking which should best be the DHCP server? i have a windows 2003 server and a solaris 10 running on sun's m5000 server. Note to pinoy43v3r: Your avatar was NSFW. We changed it. (5 Replies)
Discussion started by: pinoy43v3r
5 Replies

8. Red Hat

DHCP Server address

Where can you find your DHCP Server address? I checked all of the files that this mentioned with no luck. Quick HOWTO : Ch08 : Configuring the DHCP Server - Linux Home Networking (6 Replies)
Discussion started by: cokedude
6 Replies

9. 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 : 172.16.28.90 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

10. Ubuntu

Ubuntu Server in VM - DHCP Server not working

Hello. Doing my first steps in Linux and while trying to configure a DHCP server in Linux i encountered some problems: TOPOLOGY: - Laptop with Windows 8.1 - VM Player 12 with Linux installed (Ubuntu Server 14.04) - ICS-DHCP-SERVER installed and running - Another LAPTOP conected to a... (1 Reply)
Discussion started by: Portuguevos
1 Replies
dhcpmgr(1M)						  System Administration Commands					       dhcpmgr(1M)

NAME
dhcpmgr - graphical interface for managing DHCP service SYNOPSIS
/usr/sadm/admin/bin/dhcpmgr DESCRIPTION
dhcpmgr is a graphical user interface which enables you to manage the Dynamic Host Configuration Protocol (DHCP) service on the local sys- tem. It performs the functions of the dhcpconfig, dhtadm, and pntadm command line utilities. You must be root to use dhcpmgr. The dhcpmgr Help, available from the Help menu, contains detailed information about using the tool. USAGE
You can perform the following tasks using dhcpmgr: Configure DHCP service Use dhcpmgr to configure the DHCP daemon as a DHCP server, and select the data store to use for storing network configuration tables.. Configure BOOTP relay service Use dhcpmgr to configure the DHCP daemon as a BOOTP relay. Manage DHCP or BOOTP relay service Use dhcpmgr to start, stop, enable, disable or unconfigure the DHCP service or BOOTP relay service, or change DHCP server parameters. Manage DHCP addresses Use dhcpmgr to add, modify, or delete IP addresses leased by the DHCP service. Manage DHCP macros Use dhcpmgr to add, modify or delete macros used to supply configuration parameters to DHCP clients. Manage DHCP options Use dhcpmgr to add, modify or delete options used to define parameters deliverable through DHCP. Convert to a new DHCP data store Use dhcpmgr to configure the DHCP server to use a different data store, and convert the DHCP data to the format used by the new data store. Move DHCP data to another server Use dhcpmgr to export data from one Solaris DHCP server and import data onto another Solaris DHCP server. EXIT STATUS
The following exit values are returned: 0 Successful completion. non-zero An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWdhcm | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
dhcpconfig(1M), dhtadm(1M), pntadm(1M), in.dhcpd(1M), dhcpsvc.conf(4), dhcp_network(4), dhcptab(4), attributes(5), dhcp(5), dhcp_modules(5) Solaris DHCP Service Developer's Guide System Administration Guide: IP Services SunOS 5.10 13 Mar 2001 dhcpmgr(1M)
All times are GMT -4. The time now is 03:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy