[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dhcp class identifier with modified settings



On Wed, 04 Jan 2012 18:34:18 +1100
Scott Ferguson <prettyfly.productions@gmail.com> wrote:

> On 04/01/12 18:18, J. Bakshi wrote:
> > 
> > Dear list,
> > 
> > I have attached an Access Point to my DHCP server. I like to arrange
> > an identifier in my dhcp configuration for the access point by
> > matching its MAC address, so that I can define a different gateway
> > for that access point. All the hosts connects with that access points
> > should go through that defined gateway. How can I set it ?
> > 
> > Thaanks
> > 
> > 
> 
> That's certainly possible - probably not the answer you're looking for
> but... you set it in:-
> /etc/dhcp/dhcpd.conf
> 
> See:-
> man dhcpd.conf (also man dhcpd)
> and the examples in:-
> /usr/share/doc/isc-dhcp-server/examples/
> 
> 
> Cheers
> 

well..from the example I have found a class option as below

````````
class "foo" {
  match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
}

shared-network 224-29 {
  subnet 10.17.224.0 netmask 255.255.255.0 {
    option routers rtr-224.example.org;
  }
  subnet 10.0.29.0 netmask 255.255.255.0 {
    option routers rtr-29.example.org;
  }
  pool {
    allow members of "foo";
    range 10.17.224.10 10.17.224.250;
  }
  pool {
    deny members of "foo";
    range 10.0.29.10 10.0.29.230;
  }
}
````````````

Now I just like to set a route for the access point so that laptops/mobile connected with that AP
should go through the defined gateway. Don't need the range,netmask etc.... as those are already defined globally,
so only the route.

Also how can I get the substring of my wireless router ?

Thanks


Reply to: