<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body bgcolor="#ffffff" fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>not a bug, but perhaps a misunderstanding of the parser.</p>
<p>you must keep the class definitions out of the subnets definitions.</p>
<p>for the parser there is no relationship so you have effectively created a duplication</p>
<p>which results in a collision.</p>
<div>
<p> </p>
<div><font size="2" face="Tahoma">Randall Grimshaw <a href="mailto:rgrimsha@syr.edu">
rgrimsha@syr.edu</a></font></div>
<div> </div>
</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<hr tabindex="-1">
<div style="DIRECTION: ltr" id="divRpF853841"><font color="#000000" size="2" face="Tahoma"><b>From:</b> dhcp-users-bounces+rgrimsha=syr.edu@lists.isc.org [dhcp-users-bounces+rgrimsha=syr.edu@lists.isc.org] on behalf of Nuno Marques [nmm@ul.pt]<br>
<b>Sent:</b> Friday, June 01, 2012 7:28 AM<br>
<b>To:</b> Users of ISC DHCP<br>
<b>Subject:</b> Wrong gateway when using class in a subnet<br>
</font><br>
</div>
<div></div>
<div>Hi all,<br>
<br>
I'm using dhcp-4.1.1-25.P1.el6_2.1.i686 on RHEL6, and have somthing like this:<br>
<br>
subnet 10.99.112.0 netmask 255.255.255.0{<br>
option routers 10.99.112.1;<br>
<br>
class "Cisco-AP-c1140" {<br>
match if option vendor-class-identifier = "Cisco AP c1140";<br>
option vendor-class-identifier "Cisco AP c1140";<br>
vendor-option-space Cisco_LWAPP_AP;<br>
option Cisco_LWAPP_AP.server-address 10.99.4.221; }<br>
<br>
....<br>
}<br>
<br>
subnet 10.99.113.0 netmask 255.255.255.0{<br>
option routers 10.99.113.1;<br>
<br>
class "Cisco-AP-c1140" {<br>
match if option vendor-class-identifier = "Cisco AP c1140";<br>
option vendor-class-identifier "Cisco AP c1140";<br>
vendor-option-space Cisco_LWAPP_AP;<br>
option Cisco_LWAPP_AP.server-address 10.99.4.221; }<br>
<br>
....<br>
}<br>
<br>
The problem is, an AP on the second subnet will receive the gateway from the first (10.99.112.1).
<br>
My guess is DHCP is giving the first 'option router' that matches the class.<br>
<br>
If I put the class declaration on the top of the configuration and remove it from every subnet it works as expected, but I got several subnets that shouldn't have this configuration, so I want to keep it out of the general configuration.<br>
<br>
Is this a bug?<br>
<br>
Thanks,<br>
<br>
<div class="moz-signature">-- <br>
<font color="#000000"><b><font face="Times New Roman, serif">Nuno Miguel Lopes Marques</font></b></font><br>
<div class="moz-signature">
<div class="moz-signature"><font size="2" face="Calibri, sans-serif">
<div><font size="3"><font face="Times New Roman, serif"><b></b></font></font><font color="#000000" size="2" face="Calibri, sans-serif"><font size="3"><font size="2">Núcleo de Administração de Sistemas</font></font></font><font color="#000000" size="3"><font size="2">
- </font><font size="2">Área de Sistemas e Comunicações</font><font size="2"> - Serviços Tecnológicos</font></font></div>
<font color="#000000"></font>
<div> </div>
<font color="#000000"></font>
<div style="MARGIN-TOP: 4pt"><font color="#000000" size="2"><b>E.</b> <a class="moz-txt-link-abbreviated" href="mailto:nmm@ul.pt" target="_blank">
nmm@ul.pt</a> </font></div>
<font color="#000000"></font>
<div style="MARGIN-TOP: 4pt"><font color="#000000" size="2"><b>T.</b> +351 21 044 34 23 -
<b>Ext.</b> 30243</font></div>
<font color="#000000"></font>
<div style="MARGIN-TOP: 4pt"><font color="#000000" size="2"><b>M.</b> 924 138 406</font></div>
<font color="#000000"></font>
<div style="MARGIN-TOP: 4pt"><font color="#000000" size="2"><b>Morada</b></font></div>
<font color="#000000"></font>
<div style="MARGIN-TOP: 4pt"><font color="#000000" size="2">Alameda da Universidade, Cidade Universitária</font></div>
<font color="#000000"></font>
<div style="MARGIN-TOP: 4pt"><font size="2"><font color="#000000">1649-004 Lisboa</font><br>
</font></div>
<font color="#000000"></font>
<div style="MARGIN-TOP: 4pt"><font size="2"><br>
<b><a href="http://www.sp.ul.pt/" target="_blank">www.sp.ul.pt</a></b></font></div>
<div style="MARGIN-TOP: 4pt"> </div>
<div style="MARGIN-TOP: 4pt"><img src="cid:part3.03090109.04030302@ul.pt"><font size="2"><b>
</b></font></div>
<div> </div>
<div> </div>
<div> </div>
</font></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>