Question about dhcp
Say I have a lan, and I want to run a DHCP server to give clients the ip info...What if,say like 5 people in my lan decided ro run a dhcp server, without me knowing?
so that's like 5 dhcp servers in my lan... How would a client reach the correct dhcp server to get the correct ip info that it was intended to get? |
If you wanted, the computer addresses could be specifically assigned as per MAC Address.
|
Running a dhcp server is a root function so unless they all have root access/rights, they can't run any kind of dhcp server.
|
Hi
As a matter of fact, there's no way to specify which dhcp server a dhcp client should choose. This issue can (and has) be used as a man in the middle attack technique. I've recently heard that new cisco switches IOS included a feature that dropped dhcp responses coming from unconfigured dhcp servers (I mean, you configure the dhcp server(s) IP address(es) in the switches, and if some dhcp responses come from another IP they're dropped). |
DHCP query : not getting hostname from server
Hi
I am facing some problem with my dhcp client . My machine is in a DHCP network. In the DHCP server I have configured it to have an IP and hostname reserved for a specific mac address . My machine is not updating the hostname from the DHCP server and also I am not able to resolved the name in the DNS server . I have checked in the /etc/sysconfig/network : NETWORKING=yes HOSTNAME=localhost.localdomain This is a snapshot of /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" BOOTPROTO="dhcp" ONBOOT="yes" NEEDHOSTNAME="yes" IPADDR="10.116.54.127" NETMASK="255.255.255.0" BROADCAST="10.116.54.255" HOSTNAME="" GATEWAY="10.116.54.254" DNS_SERVER_1="10.116.54.2" the need_hostname function is need_hostname() { if [ "`hostname`" = "(none)" -o "`hostname`" = "localhost" -o \ "`hostname`" = "localhost.localdomain" ]; then NEEDHOSTNAME=yes else unset NEEDHOSTNAME fi } Please help me as to why my DHCP hostname is not getting set . I am getting the correct IP/ DNS serever / Gateway information . Thanks Daina |
Re: DHCP query : not getting hostname from server
Quote:
|
I'm just a bit confused...
Your interface uses DHCP....but you IP address seems to be statically set... |
I have tried by putting Hostname as blank in the ifcfg-eth0 file but it dosent help.
In the DHCP server I have reserved IP and hostname corrsponding to the MAC address . Probably thats why you may be confused |
Hi there diana-linux,
Well can u post the contents of the /etc/sysconfig/network there is a very good chance that your hostname is set in that file regards, |
the contents of /etc/sysconfig/network :
NETWORKING=yes HOSTNAME=localhost.localdomain if i manually do hostname "dummyname" its is getting updated in /proc/sys/kernel/hostname and not in teh /etc/sysconfig/network I have changed the settings in the ifcfg-eth0 file to update the DHCP/DNS with my hostname by putting PEERDNS="yes" DHCP_HOSTANME="dummyname" but this is not updating teh name in DHCP I had read somewhere that to register the name in the DNS we need to set PEERDNS to yes , still it is not happening . Can somebody tell me when and how is the DNS server updates with the IP/hostname of client machine. I checked in /etc/resolv.conf the nameserver name is of the correct DNS server IP. |
All times are GMT -5. The time now is 03:21 AM. |