The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Solaris Machine IP Configuration via DHCP Ashvin Gaur UNIX for Dummies Questions & Answers 1 09-29-2008 09:27 AM
Unix terminal re-assigned with wrong IP address from window's DHCP tlee SUN Solaris 0 03-11-2008 01:44 AM
How to grep dhcp ip address chongkls77 Shell Programming and Scripting 4 03-28-2007 09:27 AM
DHCP configuration johan_sysv Red Hat 1 01-25-2007 06:42 AM
How to Achive IP address through MAC(Ethernet) address krishnacins IP Networking 3 08-29-2005 08:45 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-23-2009
ouzist ouzist is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 2
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 05:07 AM.. Reason: [code]tags and formatting added
  #2 (permalink)  
Old 01-30-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,884
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 (permalink)  
Old 01-30-2009
ouzist ouzist is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 2
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;


    }
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0