Results 1 to 5 of 5
Hi all,
I configure a DHCP server.
In this configuration i would like, in the same subnet, 2 differents
default-lease-time & max-lease-time
My goal:
"fixed-address" with
default-lease-time & max-lease-time
and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-09-2012 #1Just Joined!
- Join Date
- Jul 2012
- Posts
- 9
DHCP with multi default-lease-time in the same subnet
Hi all,
I configure a DHCP server.
In this configuration i would like, in the same subnet, 2 differents
default-lease-time & max-lease-time
My goal:
"fixed-address" with
default-lease-time & max-lease-time
and "range" with another
default-lease-time & max-lease-time
Is it possible?
Thank you very much.
paco
- 07-11-2012 #2Just Joined!
- Join Date
- Jul 2012
- Posts
- 39
Hi, I think it would help more if you would include what software your DHCP server is. I'm also wondering why you want to do that. Or maybe you are using a firewall (Cisco, Juniper, etc.)?
- 07-11-2012 #3Just Joined!
- Join Date
- Jul 2012
- Posts
- 9
Hmm...yes.
I configure DHCP with the package "dhcpd".
I think of this solution:
What do you think?Code:ddns-update-style none; option routers 192.168.0.254; option subnet-mask 255.255.255.0; option broadcast-address 192.168.0.255; option domain-name-servers 192.168.0.1; option domain-name "exemple.com"; default-lease-time 86400; max-lease-time 1296000; ## Free Pool - 240 at 245 ## subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.240 192.168.0.245; option routers 192.168.0.254; option broadcast-address 192.168.0.255; option domain-name-servers 192.168.0.1; option domain-name "exemple.com"; default-lease-time 86400; max-lease-time 172800; } ## Fixed-addresses ## host pc1 { hardware ethernet 02:02:27:11:00:00; fixed-address 192.168.0.16; } host pc2 { hardware ethernet 02:02:03:11:00:20; fixed-address 192.168.0.17; }
Thank you very much.
- 07-14-2012 #4
I haven't played with this as I have no need to, but have your tried to set your lease times for unknown users in the main config and then in your host sections used the lease time you want for known?
- 07-19-2012 #5Just Joined!
- Join Date
- Jul 2012
- Posts
- 9
Hello Lazydog,
That config works very well after 1 week of use.
Thanks



