<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    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>
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <title></title>
      <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 face="Calibri, sans-serif"
            size="2">
            <div><font size="3"><font face="Times New Roman, serif"><b>
                  </b></font></font><font face="Calibri, sans-serif"
                size="2" color="#000000"><font size="3"><font size="2">Núcleo
                    de Administração de Sistemas</font></font></font><font
                size="3" color="#000000"><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 size="2"
                color="#000000"><b>E.</b> <a
                  class="moz-txt-link-abbreviated"
                  href="mailto:nmm@ul.pt">nmm@ul.pt</a>  </font></div>
            <font color="#000000"> </font>
            <div style="margin-top: 4pt; "><font size="2"
                color="#000000"><b>T.</b> +351 21 044 34 23 - <b>Ext.</b>
                30243</font></div>
            <font color="#000000"> </font>
            <div style="margin-top: 4pt; "><font size="2"
                color="#000000"><b>M.</b> 924 138 406</font></div>
            <font color="#000000"> </font>
            <div style="margin-top: 4pt; "><font size="2"
                color="#000000"><b>Morada</b></font></div>
            <font color="#000000"> </font>
            <div style="margin-top: 4pt; "><font size="2"
                color="#000000">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/">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>
  </body>
</html>