Match based on Ralay Agent IP

Chuck Anderson cra at WPI.EDU
Fri May 7 13:27:22 UTC 2010


On Fri, May 07, 2010 at 03:06:34PM +0200, Pawel Warowny wrote:
> Thanks for reply, but the problem is a bit different.
> 
> The _main_ IP address of my relay agent servers is not within the subnet
> I want to assign for clients and that's why your solution will not work.
> 
> Relay Agent IP field in dhcp discover packet is 10.0.1.1 and I
> want to assign for these requests ip address from subnet> 192.168.100.0/24.
> The same for relay agent ip 10.0.2.1 and subnet 192.168.200.0/24.

Normally if the relay agent ip is not in the client's subnet, you have 
what is called a "shared network"--multiple IP subnets on the same 
Layer2 broadcast domain (LAN or VLAN).  You then define the 
shared-network like this:

shared-network FOO {
	subnet 10.0.1.0 netmask 255.255.255.0 {
		...
	}

	subnet 192.168.100.0 netmask 255.255.255.0 {
		...
	}
}


You can leave the relay agent's subnet block empty if you don't have 
any use for assigning clients out of that subnet.



More information about the dhcp-users mailing list