Get/Assign IP addresses assigned by the DHCP sever with DLink switches in between
Posted
by
Ranjith Kumar
on Server Fault
See other posts from Server Fault
or by Ranjith Kumar
Published on 2012-06-26T07:10:44Z
Indexed on
2012/06/26
9:17 UTC
Read the original article
Hit count: 279
ip-address
|dhcp-server
In our office the setup is like we have a UBUNTU server with DHCP Server connected to all the PCS via 24 port and 8 port DLink switches. How can I find all the PCS(with client name, ip and mac address)in the network??
When I do "vi /var/lib/dhcp3/dhcpd.leases", I get all the ip addresses for the switches.
I have used "arp-scan --interface=eth0 --localnet" to get all the IPs and MAC Addresses in my local network. I couldn't find any option to diplay client name.
Also I would like to assign particular IP for a particular PC. I have done the changes in the dhcp.conf file but it is not working as they are not directly connected to DHCP-server(DLink switches in between). How can I assign IPs for PCs in this kind of setup.
Thanks in advance
© Server Fault or respective owner