dhcp configuration for MAC address


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
# 1  
dhcp configuration for MAC address

hi

I need a dhcp congfigured to give some of my clients IP regarding their MAC addresses and rest should get any IP from same pool. I am not sure what to add dhcpd.conf to provide such a pool or group or class. I tried with this but seems not good enough.

<<<<dhcpd.conf>>>>
Code:
ddns-update-style none;
ignore client-updates;

subnet 0.0.0.0 netmask 0.0.0.0 {

        option routers                  10.0.1.254;
        option subnet-mask              255.255.255.0;

        option mobile-ip-home-agent 10.0.3.254;
        
        option domain-name              "abc.net.tr";
        option domain-name-servers      195.175.39.39;
        
        
       class "aaaa" {
        match option dhcp-client-identifier;
        lease limit 2;
       }
       subclass "aaaa" 1:00:12:cf:89:61:76; # Dell wireless
       subclass "aaaa" 1:00:19:cb:73:e0:06; # Dell wireless


       subnet 10.0.1.0 netmask 255.255.255.0 {
        option subnet-mask 255.255.255.0;
        option broadcast-address 10.0.1.255;
        option routers 10.0.1.254;
        
        pool {
                allow members of "aaaa";
                range 10.0.1.10 10.0.1.20;
        }
        pool {
               
                option domain-name-servers      195.175.39.39;
                range 10.0.1.21 10.0.1.100;
                allow unknown-clients;
        }


        range dynamic-bootp 10.0.1.10 10.0.1.100;
        default-lease-time 21600;
        max-lease-time 43200;
      }
}

Waiting for any suggestions...
thanks

Last edited by otheus; 01-30-2009 at 06:07 AM.. Reason: [code]tags and formatting added
# 2  
Unfortunately, I currently don't have a working DHCP server to play with. However, I think you are close, but I don't think you can mix "class" and "subclass" identifiers.

Perhaps another expert will chip in here.
# 3  
I managed to do it finally. Here is the working conf. for such an issue...

Code:
<<dhcpd.conf>>

ddns-update-style none;
ignore client-updates;


subnet 0.0.0.0 netmask 0.0.0.0 {
               


        option mobile-ip-home-agent 10.0.3.254;
                
        option domain-name              "abc.net.tr";
        option domain-name-servers      195.175.39.39;
                
                
class "erkan" {
        match option dhcp-client-identifier;
        lease limit 2;
       }
subclass "aaaa" 1:00:12:cf:89:61:76; 
subclass "aaaa" 1:00:19:cb:73:e0:06;
        
        pool {
    
    option subnet-mask 255.255.255.0;
        option broadcast-address 10.0.1.255;
        option routers 10.0.1.254;

        allow members of "aaaa";
        
    default-lease-time 21600;
        max-lease-time 43200;
                range 10.0.1.10 10.0.1.100;

    
        }

    pool {

        option routers                  10.0.4.254;
    option broadcast-address        10.0.4.255;
        option subnet-mask              255.255.255.0;

    range dynamic-bootp 10.0.4.10 10.0.4.100;

        default-lease-time 21600;
        max-lease-time 43200;


    }

Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #205
Difficulty: Easy
Routing Information Protocol (RIP) runs over Transmission Control Protocol (TCP).
True or False?

9 More Discussions You Might Find Interesting

1. IP Networking

MAC Address - Four Interfaces with the same MAC Address

four interfaces with ifconfig all interfaces have the same mac. If is not set for unique. but it still works. what difference does it make to have all macs the same or different? (4 Replies)
Discussion started by: rrodgers
4 Replies

2. IP Networking

DHCP option 90 Configuration on Linux

Hello Friends, I am looking for the configuration steps to enable option 90 on Linux DHCP server.Also i need to add secret id to be configured for option 90. can someone help me in providing the steps with parameter values . Thanks in advance, Veera (0 Replies)
Discussion started by: veera_s99
0 Replies

3. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | 192.168.99.1 | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies

4. IP Networking

Tracing a MAC address to IP address: Solaris

Hi there I lost connectivity to one of our remote systems and when I checked the messages log I found the following: Aug 10 23:42:34 host xntpd: time reset (step) 1.681729 s Aug 16 13:20:51 host ip: WARNING: node "mac address" is using our IP address x.x.x.x on aggr1 Aug 16 13:20:51 host... (9 Replies)
Discussion started by: notreallyhere
9 Replies

5. UNIX for Dummies Questions & Answers

DNS & DHCP configuration

Hi to all. Sorry for my bad english. For pure self-educational, not professional, purposes, I am studying how to configure a server with several services operating on it. For my experiment I'm using VirtualBox 3.1.4 on a WinXP host with 3 FreeBSD guests; one acts as a DHCP + DNS server; the... (0 Replies)
Discussion started by: marboxer
0 Replies

6. Debian

Question on the dhcp-server configuration for a fixed IP address.

Hi , when i configure my server with a fixed ip address in dhcpd.conf as below subnet 172.21.151.0 netmask 255.255.255.0 { range 172.21.151.66 172.21.151.66; } host switch { hardware ethernet 00:05:30:02:DB:31; fixed-address 172.21.151.66; } when i start dhcpd server , it... (2 Replies)
Discussion started by: Gopi Krishna P
2 Replies

7. UNIX for Dummies Questions & Answers

Solaris Machine IP Configuration via DHCP

I have a new solaris machine and I am trying to bring the same on network. The IP assignemnt is via DHCP. I want to know as which files need to be modified to include DHCP server IP in order that the machine gets its IP via DHCP server. Thanks in Advance. :) (1 Reply)
Discussion started by: Ashvin Gaur
1 Replies

8. Red Hat

DHCP configuration

Hi, I'm just wanna configure dhcp server using redhat enterprise 4.0 as. can anyone help me on this, on setting using two NICs. Thankx. (1 Reply)
Discussion started by: johan_sysv
1 Replies

9. IP Networking

How to Achive IP address through MAC(Ethernet) address

Hi sir, i want to make such programe which takes MAC(Ethernet) address of any host & give me its IP address....... but i'm nt getting that how i can pass the MAC address to Frame........ Please give me an idea for making such program... Thanks & regards Krishna (3 Replies)
Discussion started by: krishnacins
3 Replies

Featured Tech Videos