![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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;
}
}
thanks Last edited by otheus; 01-30-2009 at 05:07 AM.. Reason: [code]tags and formatting added |
|
||||
|
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;
}
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|