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

Re: VLAN config on Jessie





On 30/07/15 22:34, Matt Ventura wrote:
Could you post the DHCPD config?

default-lease-time 7200; #2 hours
max-lease-time 7200;
option web-proxy code 252 = text;


#Subnet 192.168.10.d our private network
#As a convention we're using d values 1 to 199 for DHCP (192.168.10.1 etc), 200
 and above for static
subnet 192.168.10.0 netmask 255.255.255.0{
    option subnet-mask 255.255.255.0;
    option broadcast-address 192.168.10.255;
    option routers 192.168.10.254;
    range 192.168.10.1 192.168.10.199;
    option domain-name-servers 192.168.10.254;
    #option web-proxy "http://192.168.10.254/wpad.dat\000";;
    option domain-name "commsmuseum.local";
    #option ntp-servers 192.168.10.200;
}

#Subnet 192.168.100.0 the public (wifi) network
subnet 192.168.100.0 netmask 255.255.255.0{
    option subnet-mask 255.255.255.0;
    option routers 192.168.100.254;
    range 192.168.100.1 192.168.100.253;
    option domain-name-servers 192.168.100.254;
    #option web-proxy "http://192.168.100.254/wpad.dat\000";;
    option domain-name "commsmuseumpublic.local";

    on release {
        set clip = binary-to-ascii(10, 8, ".", leased-address);
    set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
        execute("/var/publicwifisessions/clearsession.sh", clip);
    execute("/var/publicwifisessions/logdhcp.sh", clip, clhw, "released");

        }
    on expiry {
        set clip = binary-to-ascii(10, 8, ".", leased-address);
    set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
        execute("/var/publicwifisessions/clearsession.sh", clip);
    execute("/var/publicwifisessions/logdhcp.sh", clip, clhw, "released");

        }
    on commit {
        set clip = binary-to-ascii(10, 8, ".", leased-address);
    set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
        execute("/var/publicwifisessions/clearsession.sh", clip);
    execute("/var/publicwifisessions/logdhcp.sh", clip, clhw, "assigned");
        }

}


class "MSFT" {
  match if substring(option vendor-class-identifier, 0, 4) = "MSFT";
  # Send PAC file to Windows clients
  # They put 252 on the DHCPINFORM's, but not on the DHCPREQUEST's
  # PRL.  So we over-ride the PRL to include 252 = 0xFC, which will
  # send the option at DHCPDISCOVER/DHCPREQUEST time, and wil also
  # suppress the DHCPINFORMS!  They seem to cache it.
  option dhcp-parameter-request-list = concat(option
dhcp-parameter-request-list, fc);
}


Reply to: