Reply
Accepted Solution

Nested MAC then Option filter

Dale
Techie
Posts: 1
2335     0

Hi 

 

I have a need to change the boot file name and server based on efi or bios boot AND a MAC address group.

 

I can use the mac address filter and add option 66,67 but have found no way to change these based on an option match

 

I can add an dhcp option filter but can not also use a mac address list to match against.

 

Is there any way to do both?

 

something like...

 

if MAC address in MAC list AND (dhcp-client-identifier="PXEClient:Arch:00000:UNDI:002001") then set options...

 

Thanks

Re: Nested MAC then Option filter

GHorne Community Manager
Community Manager
Posts: 254
2336     0

You should be able to do it, either on a range or the whole network.

 

But on a range, you have to add one of the filters as a 'class filter' and one of them as a logic filter.

 

You get something like this (The infoblox dhcpd.conf does not 100% reflect reality)

 

# Option filter "Option-filter-1"
class "Option-filter-1" {
	match if (option routers = 22:22:22:01 or option host-name = "noname");
	default-lease-time 1800;
	min-lease-time 1800;
	max-lease-time 1800;
	option log-servers 3.4.5.6;
}

subnet 45.0.0.0 netmask 255.255.255.0 {
	pool {
		infoblox-range 45.0.0.10 45.0.0.100;
		range 45.0.0.10 45.0.0.100;
		allow members of "Option-filter-1";
		
		if infobloxMACmemberof(substring(hardware,1,6), "IV Pumps") {
			# MAC filter "IV Pumps"
		}
	}
}
Showing results for 
Search instead for 
Do you mean 

Recommended for You