Configuring option 82
Surya Teja
suryateja042 at gmail.com
Thu Sep 26 14:12:19 UTC 2019
Hi is the option 82 supported by using class concept only ?
or can it be defined as other general options like domain-name server,
router in scope section ?
On Tue, Sep 24, 2019 at 12:49 PM Surya Teja <suryateja042 at gmail.com> wrote:
> Hi,
> I am trying to configure the dhcp option 82, went through the google
> forums and one of it suggest the syntax like
> # vim /etc/dhcp/dhcpd.conf
> ########################################################
> log-facility local7;
>
>
>
>
>
>
> *class "VLAN10" { match if
> binary-to-ascii(10,16,"",substring(option agent.circuit-id,2,2)) = "10";} #
> VLAN10class "VLAN20" { match if ( substring(option
> agent.remote-id,2,15)="10.5.20.4" and binary-to-ascii(10, 16,
> "",substring(option agent.circuit-id, 4, 2)) = "2" ); }*
> subnet 192.168.10.0 netmask 255.255.255.0 {
> pool {
> *allow members of "VLAN10";*
> default-lease-time 600;
> max-lease-time 7200;
> range 192.168.10.1
> 192.168.10.199;
> option routers 192.168.10.254;
> option broadcast-address 192.168.10.255;
> option subnet-mask 255.255.255.0;
> option domain-name-servers 4.2.2.2;
> }
> }
> subnet 192.168.20.0 netmask 255.255.255.0 {
> pool {
> * allow members of "VLAN20";*
> default-lease-time 600;
> max-lease-time 7200;
> range 192.168.20.20 192.168.20.199;
> option routers 192.168.20.254;
> option broadcast-address 192.168.20.255;
> option subnet-mask 255.255.255.0;
> option domain-name-servers 4.2.2.2;
>
> }
> (Just ignore ip values)
> can we configure this concept only by using classes and make it allow or
> deny like that?
> or can we use the option space concept to get it worked(do we have any
> other syntax). Thanks in advance
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20190926/af4205bb/attachment.html>
More information about the dhcp-users
mailing list