problem with dhcp server behind dhcprelay
Sebastian Reitenbach
sebastia at l00-bugdead-prods.de
Sat Aug 2 18:29:19 UTC 2008
Hi,
I want to move the DHCP server into a single lan, and let the clients have
to contact it via a dhcp relay.
On the relay host, the dhcrelay is started like this:
/usr/sbin/dhcrelay -a -i eth0 -i eth1 -i vlan3 -i vlan30 -i vlan8 -i
vlan13 -i vlan25 192.168.0.5
shared-network Clients {
subnet 192.168.0.0 netmask 255.255.254.0 {
class "one" {
match if option routers = "192.168.0.1";
#spawn with option agent.circuit-id;
}
option domain-name "one.intern";
option routers 192.168.0.1;
host one001 {
hardware ethernet 00:11:11:2B:B6:0B;
fixed-address 192.168.0.30;
}
}
subnet 10.0.0.0 netmask 255.255.255.0 {
option domain-name "two.intern";
option routers 10.0.0.1;
class "two" {
match if option routers = "10.0.0.1";
spawn with option agent.circuit-id;
}
host two002 {
hardware ethernet 00:11:11:2B:B6:0B;
fixed-address 10.0.0.30;
}
}
}
With tcpdump I see the relay sends the default gateway to the dhcp server,
but the server does not match the option to the class?
I guess its sth. small and stupid that I only miss, so any idea what could
be my problem or a pointer to some howto would be great.
kind regards
Sebastian
More information about the dhcp-users
mailing list