Results 1 to 6 of 6
Hi Experts,
I'm a newbie to linux and have a requirement like this.
I need to allocate an ip to a range of mac addresses that I have on the ...
- 05-06-2010 #1Just Joined!
- Join Date
- May 2010
- Posts
- 4
dhcp Configuration file in Linux
Hi Experts,
I'm a newbie to linux and have a requirement like this.
I need to allocate an ip to a range of mac addresses that I have on the dhcpd conf file. when I searched in google, I got a static mapping (that is one ip for one mac) but could not find one ip for multiple mac's
host <hostname> {
hardware ethernet 00:0d:62:d7:a0:12;
fixed-address 192.168.1.5;
}
can I have something like this....
host <hostname> {
hardware ethernet 00:0d:62:d7:a0:12
hardware ethernet 00:0d:62:d7:a0:13
hardware ethernet 00:0d:62:d7:a0:14
hardware ethernet 00:0d:62:d7:a0:15
fixed-address 192.168.1.5
}
Please advice.
Regards,
-Vijay Swaminathan.
- 05-06-2010 #2
what is the goal here? the idea is that the mac will always get the same IP every time it requests an address from DHCP and to ensure no other machine (or NIC) will take it
- 05-06-2010 #3Just Joined!
- Join Date
- May 2010
- Posts
- 4
Hi ,
The Idea is , the IP address gets assigned only to those mac address which are configured on the dhcpd config file.
If I connect a device whose mac address is different from those listed, it will reject the that request and will never assign an IP to that.
Regards,
-Vijay Swaminathan.
P.S; This is the first thing that I wanted to achieve. but my goal is to have a pool of ip and a pool of Mac addresses and the Ip assignment should happen from the ip pool to the pool of mac address.
- 05-06-2010 #4
so what you really want is just to deny mac addresses that are unknown from getting an address?
- 05-06-2010 #5
- 05-06-2010 #6
this can be found in the man page for dhcpd.conf
deny unknown-clients;


Reply With Quote
