LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ISC DHCP Config File Assitance (https://www.linuxquestions.org/questions/linux-software-2/isc-dhcp-config-file-assitance-676053/)

don_wombat_73 10-13-2008 10:30 AM

ISC DHCP Config File Assitance
 
I have ISC DHCP server running on a box and it is operating as expected. What I am trying to configure is to have multiple subnets with some mac reservations on these multiple subnets.

Here is my conf file:

option domain-name-servers 10.11.99.253, 10.11.101.253;
default-lease-time 86400;
max-lease-time 86400;
log-facility local7;
authoritative;
ddns-update-style none;

# I'm here to make sure 10.21.73.0/25 isn't dhcp enabled
subnet 10.21.73.128 netmask 255.255.255.128 {
}

# Permanent Leases - Old PPPOE Addresses
subnet 10.11.111.128 netmask 255.255.255.128 {
}

# DHCP Pool 10.21.88.0 255.255.248.0
subnet 10.21.88.0 netmask 255.255.248.0 {
option broadcast-address 10.21.95.255;
option subnet-mask 255.255.248.0;
option routers 10.21.95.254;
range 10.21.88.1 10.21.88.254;
range 10.21.89.1 10.21.89.254;
range 10.21.90.1 10.21.90.254;
range 10.21.91.1 10.21.91.254;
range 10.21.92.1 10.21.92.254;
range 10.21.93.1 10.21.93.254;
}
# test station
host cea3e {
hardware ethernet 00:06:b1:1c:ea:3e;
fixed-address 10.11.111.206;
}


10.21.73.0/25 is the network of the interface. 10.21.88.0 255.255.248.0 is a pool of addresses I want to use. 10.11.111.128 netmask 255.255.255.128 is a left over of some PPPoE addresses. I have a system that is using this server as a DHCP helper. The server should be configured so that it is not handing out addresses for the 10.21.73.0 subnet.

What I want to do is have the server handle regular DHCP from the 10.21.88.0 pool (working fine). If there is a mac reservation and it matches a mac of a known device, have it use a reservation from the 10.11.111.128 netmask 255.255.255.128 subnet. Even though I have the reservation stated in the config, my system with the above listed mac continues to get a pool address out of the 10.21.88.0 netmask 255.255.248.0 network.

My goal is to be able to have multiple networks and have mac reservations from multiple subnets.

Any assistance is appreciated! TIA!!

don_wombat_73 10-13-2008 12:35 PM

Made a little progress.... now my log tells me that there are no available leases for the 88.0 subnet.

Should I use classes?

Current Config:

option domain-name-servers 10.11.99.253, 10.11.101.253;
default-lease-time 86400;
max-lease-time 86400;
log-facility local7;
authoritative;
ddns-update-style none;

# I'm here to make sure 10.21.73.0/25 isn't dhcp enabled
subnet 10.21.73.128 netmask 255.255.255.128 {
}

# Permanent Leases - Old PPPOE Addresses
subnet 10.11.111.128 netmask 255.255.255.128 {
option broadcast-address 10.11.111.255;
option subnet-mask 255.255.255.128;
option routers 10.11.111.129;
deny unknown-clients;
# Desk
host desk.polarcomm.com {
hardware ethernet 00:0e:50:bd:f7:50;
fixed-address 10.11.111.240;
}
}


# DHCP Pool 10.21.88.0 255.255.248.0
subnet 10.21.88.0 netmask 255.255.248.0 {
option broadcast-address 10.21.95.255;
option subnet-mask 255.255.248.0;
option routers 10.21.95.254;
pool {
range 10.21.88.1 10.21.88.254;
range 10.21.89.1 10.21.89.254;
range 10.21.90.1 10.21.90.254;
range 10.21.91.1 10.21.91.254;
range 10.21.92.1 10.21.92.254;
range 10.21.93.1 10.21.93.254;
allow unknown-clients;
}
}


All times are GMT -5. The time now is 01:24 AM.