Identifying DHCP Relay Agent
William Lindén
william.linden at multifi.net
Wed Jul 12 14:15:33 UTC 2006
> Message-ID: d2695be005092005492fbde2ba () mail ! gmail ! com
>
> You have to assign different classes for each relay agent:
>
> class relay_agent_1{
> match if packet (24,4) is the ip address of the first relay agent
> }
> class relay_agent_2{
> match if packet (24,4) is the ip address of the second relay agent
> }
> subnet{
> allow members of "relay_agent_1"
> ....
> ...
> ..
> .
>
Hello,
I'm trying to do something like this above, but I'm probably doint something wrong, again.
I'd like to set a different router depending on via which router the request gets in. Idea would be to use one bigger subnet instead of several smaller, and with vrrp/hsrp etc etc, but thats a different problem.. ;)
Here's my config, but it just tells me no free leases when I try to get an IP from the dhcp..
----
shared-network vrrp-test
{
class "via_router1" {
match if packet (24,4) = "192.168.1.2";
option routers 192.168.1.2;
}
class "via_router2" {
match if packet (24,4) = "192.168.1.3";
option routers 192.168.1.3;
}
subnet 192.168.1.0 netmask 255.255.255.0
{
pool
{
allow members of "via_router1";
allow members of "via_router2";
range 192.168.1.10 192.168.1.254;
option subnet-mask 255.255.255.0;
}
}
}
----
Jul 12 16:50:35 katla dhcpd: DHCPDISCOVER from 00:0a:e4:53:7d:63 via 192.168.1.2: network vrrp-test: no free leases
Anyone got any ideas?
Thanks and Kind Regards,
--
William Lindén,
Multi.fi Finland
More information about the dhcp-users
mailing list