Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    4

    Question 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.

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    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

  3. #3
    Just Joined!
    Join Date
    May 2010
    Posts
    4
    Quote Originally Posted by coopstah13 View Post
    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
    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.

  4. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    so what you really want is just to deny mac addresses that are unknown from getting an address?

  5. #5
    Just Joined!
    Join Date
    May 2010
    Posts
    4
    Quote Originally Posted by coopstah13 View Post
    so what you really want is just to deny mac addresses that are unknown from getting an address?
    Exactly...

  6. #6
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    this can be found in the man page for dhcpd.conf

    deny unknown-clients;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...