Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
OrganizationEventAdvent CalendarQiitadon (β)
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.


How to check DHCP server information


  • nmap
yum install nmap

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.nara.wide.ad.jp
 * elrepo: ftp.yz.yamagata-u.ac.jp
 * epel: ftp.jaist.ac.jp
 * epel-debuginfo: ftp.jaist.ac.jp
 * epel-source: ftp.jaist.ac.jp
 * extras: ftp.nara.wide.ad.jp
 * updates: ftp.yz.yamagata-u.ac.jp
Resolving Dependencies
--> Running transaction check
---> Package nmap.x86_64 2:6.40-7.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 nmap                               x86_64                               2:6.40-7.el7                                base                               4.0 M

Transaction Summary
Install  1 Package

Total download size: 4.0 M
Installed size: 16 M
Is this ok [y/d/N]: y
Downloading packages:
nmap-6.40-7.el7.x86_64.rpm                                                                                                             | 4.0 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 2:nmap-6.40-7.el7.x86_64                                                                                     1/1 
  Verifying  : 2:nmap-6.40-7.el7.x86_64                                                                                     1/1 
  nmap.x86_64 2:6.40-7.el7                                                                                                                                    

How to check

  • nmap --script broadcast-dhcp-discover
nmap --script broadcast-dhcp-discover

Starting Nmap 6.40 ( http://nmap.org ) at 2018-04-13 09:47 JST
Pre-scan script results:
| broadcast-dhcp-discover: 
|   IP Offered: XXX.XXX.XXX.XXX
|   DHCP Message Type: DHCPOFFER
|   Server Identifier: YYY.YYY.YYY.YYY
|   IP Address Lease Time: 0 days, 0:05:00
|   Subnet Mask:
|   Time Offset: 32400
|   Router: ZZZ.ZZZ.ZZZ.ZZZ
|   Domain Name Server: 
|   Domain Name: 
|   Broadcast Address: 
|_  NTP Servers: 
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.23 seconds
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Help us understand the problem. What are the problem?