SV: Failover question

Lars Jacobsen lars-jacobsen at newmail.dk
Sat Oct 7 19:15:28 UTC 2006


> 
> I have a similar scenario, where have a hundreds of pools with only 1
> IP address in the range. This is used to assign a static IP based on
> option 82 information for FTTP ONT units.
> So far it seems to work fine in a failover configuration.
> What other ways could be used in this situation?
> 

This is exactly the same setup I am working with. 
FYI my FTH vendor is Wave7optics, (witch by the way also use tftp files like
yours)

I came up with this "class selection" in my conf so that I assign the
costumer to a specific class based/selected on witch switch/router/ONT the
costumer is connected:

### TEST LMC ###
class "1130-ch1" {
         match if  substring ( (option agent.circuit-id) , 0,4)= "1130" AND
(substring ( (option agent.circuit-id) , 4,2)= "01" OR
substring ( (option agent.circuit-id) , 4,2)= "02" OR
substring ( (option agent.circuit-id) , 4,2)= "03" OR
substring ( (option agent.circuit-id) , 4,2)= "04" OR
substring ( (option agent.circuit-id) , 4,2)= "05" OR
substring ( (option agent.circuit-id) , 4,2)= "06" OR
substring ( (option agent.circuit-id) , 4,2)= "07" OR
substring ( (option agent.circuit-id) , 4,2)= "08" OR
substring ( (option agent.circuit-id) , 4,2)= "09" OR
substring ( (option agent.circuit-id) , 4,2)= "10" OR
substring ( (option agent.circuit-id) , 4,2)= "11" OR
substring ( (option agent.circuit-id) , 4,2)= "12" OR
substring ( (option agent.circuit-id) , 4,2)= "13" OR
substring ( (option agent.circuit-id) , 4,2)= "14" OR
substring ( (option agent.circuit-id) , 4,2)= "15" OR
substring ( (option agent.circuit-id) , 4,2)= "16");
spawn with option agent.circuit-id;
lease limit 1;     
}


# Network where DHCP is physical conected
subnet 85.27.129.0 netmask 255.255.255.192 {
	}

# Whole network
shared-network sydfynsnet {
	# LMG (relay agents) network
	subnet 10.0.0.0 netmask 255.0.0.0 {
		}
	# Management and LMC network
	subnet 192.168.0.0 netmask 255.255.0.0 {
		}

### TEST LMC ###
# 1130-ch1
	subnet 85.27.128.224 netmask 255.255.255.252 {
		option routers 85.27.128.225;
		option subnet-mask 255.255.255.252;
		pool {
			allow members of "1130-ch1";
			range 85.27.128.226 85.27.128.226;
			}
		}

Normally I have around 16 costumers in each class and thus a /28 or /29
pool. But some costumers wants the same (static) IP each time no matter
witch PC they connect, so making static IP assignments based on hardware
(MAC) is not an option. That's why I also need pools down to just 1 IP.
This setup works fine in my test lab with a single server and before
migrating it to production witch need to be resilient with failover, I was 
Wondering how this 1 IP pool was handled.
But after finding and reading the failover draft im getting much wiser 8-)

Well I guess I just have to make another test setup in my lab and go for it.

Regards

Lars Jacobsen 



More information about the dhcp-users mailing list