<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFCC" text="#000000">
You have put the host declaration inside the subnet declaration.<br>
When you do that, it has the side effect that it will get its router
and some other settings from that subnet. The general advice is to
have all host declarations outside all subnet declarations as they
are global in scope no matter where they are placed, inheritance is
from where they are placed.<br>
<br>
It could also look like the class and subclass declarations inherit
form the subnets they are placed in. I suggest to move them to
outside all subnets, they are global anyway.<br>
<br>
Also subnet a.tu-clausthal.de allows the class, try using deny here.<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 19/09/13 11.14, Christian Marg
wrote:<br>
</div>
<blockquote cite="mid:523AC091.6010506@rz.tu-clausthal.de"
type="cite">Hello,
<br>
<br>
I've encountered a problem with our DHCP config:
<br>
<br>
A (mobile) client, having a host declaration with "fixed-address"
in one subnet, gets it's IP, but the router IP etc. comes from
another subnet - where that same client is bound to a pool via
(sub)class.
<br>
<br>
The config looks like this:
<br>
<br>
====8<====8<====8<====8<====
<br>
subnet 192.168.65.0 netmask 255.255.255.0 {
<br>
option domain-name "a.tu-clausthal.de";
<br>
option routers 192.168.65.254;
<br>
option domain-name-servers ...
<br>
option broadcast-address 192.168.65.255;
<br>
<br>
host a.a.tu-clausthal.de {
<br>
hardware ethernet 5c:26:0a:06:11:2f;
<br>
fixed-address 192.168.65.128; }
<br>
}
<br>
<br>
subnet 192.168.102.0 netmask 255.255.255.0 {
<br>
option domain-name "b.tu-clausthal.de";
<br>
option routers 192.168.102.254;
<br>
option domain-name-servers ...;
<br>
option broadcast-address 192.168.102.255;
<br>
<br>
class "192.168.102-shared-pool" {
<br>
match hardware;
<br>
}
<br>
<br>
subclass "139.174.102-shared-pool-test" 1:5c:26:0a:06:11:2f;
<br>
<br>
pool {
<br>
failover peer "dhcp";
<br>
range 192.168.102.231 192.168.102.251;
<br>
ping-check true;
<br>
max-lease-time 3600;
<br>
min-lease-time 1800;
<br>
adaptive-lease-time-threshold 80;
<br>
allow members of "192.168.102-shared-pool";
<br>
deny dynamic bootp clients;
<br>
}
<br>
}
<br>
====8<====8<====8<====8<====
<br>
<br>
Connecting it to a network port in subnet 192.168.65.0 leads to
following result:
<br>
<br>
IP: 192.168.65.128
<br>
domain: "b.tu-clausthal.de"
<br>
router: 192.168.102.254
<br>
broadcast: 192.168.102.254
<br>
<br>
When I comment out the "subclass" line, it works as expected...
<br>
<br>
How can I work around this problem? I googled to see if I could
the class match only if the giaddr is 192.168.102.254, but all I
found was "that's not needed, DHCPD does that automatically" -
which is usually right, but no solution to this problem...
<br>
<br>
Is there another way to restrict a Pool to certain MAC adresses?
<br>
<br>
Thanks in advance!
<br>
<br>
Best regards,
<br>
<br>
Christian Marg
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Best regards
Sten Carlsen
No improvements come from shouting:
"MALE BOVINE MANURE!!!"
</pre>
</body>
</html>