Results 1 to 4 of 4
Hi, We have multiple subnets and vlans in our organisation. Our dhcp server has all those vlans tagged and has an IP number in all those vlans. Everything works great, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-26-2006 #1
- Join Date
- Oct 2006
dhcp server question
We have multiple subnets and vlans in our organisation. Our dhcp server has all those vlans tagged and has an IP number in all those vlans.
Everything works great, but this is the issue....
When a laptop has a static reservation in a subnet...it cannot get a dynamic ip number in a different vlan/subnet.
The message is : no free leases.
Every client is only allowed 1 ip number, so I guess this is the reason, but how can this be solved. I've read something about classes ?
- 10-27-2006 #2
If I understood the problem right it is this: You were trying to use your laptop in different networks. In one of the network it is given static ip and other network supports giving dynamic ip to the machines connected to that network.
I don't have any good suggestion for this, but I know the dirty solution for this. I have no idea how far this is convenient but you can try.
You might already be knowing this.. the network is setup by reading a file in
So now you can make two copies of this file and name it as ifcfg-eth0.static and
There is a parameter BOOTPROTO in this file, you can assigne "none" to it in ifcfg-eth0.static and give other paramters like what is the static ip to it, netmask, gateway etc.
For the ifcfg-eth0.dynamic one you can just give the "dhcp" for BOOTPROTO.
Now depending on the network you were in you copy either ifcfg-eth0.static or ifcfg-eth0.dynamic to ifcfg-eth0 and then you can use the ifup command manually that will get you an ip.
May you can automate this by writing a script, right now i have no better idea of doing this. I'll let you know if I can come up with a more clean solution.
- 10-27-2006 #3
- 10-28-2006 #4
- Join Date
- Oct 2006
Thank you for the tips. They should work indeed.
But as I understand, there is no quick fix for this problem...
If I find anything in the future, I will let you know..