Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat global.template
- option domain-name "inet";
- option domain-name-servers 193.107.128.8;
- default-lease-time 3600;
- max-lease-time 43200;
- authoritative;
- ddns-update-style none;
- log-facility local7;
- one-lease-per-client true;
- deny duplicates;
- shared-network inet {
- {SUBNETS}
- subnet 192.168.168.0 netmask 255.255.255.0 {
- }
- subnet 10.123.0.0 netmask 255.255.248.0 {
- default-lease-time 3600;
- option domain-name "citynet";
- option subnet-mask 255.255.248.0;
- option domain-name-servers 193.107.128.8;
- option routers 10.123.0.1;
- pool {
- range 10.123.0.100 10.123.0.254;
- {DENYMEMBERS}
- }
- log(info, "==");
- if exists agent.remote-id {
- set clip = binary-to-ascii(10,8,".",leased-address);
- set clremote = binary-to-ascii(16,8,"",option agent.remote-id);
- set clcircuit = binary-to-ascii(10,8,"",option agent.circuit-id);
- log( info,concat("*Leased IP: ",clip, " SWITCH: ",clremote," PORT: ",clcircuit ," (with opt82)") );
- } else {
- set clhw = concat (
- suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,1,1))),2), ":",
- suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,2,1))),2), ":",
- suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,3,1))),2), ":",
- suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,4,1))),2), ":",
- suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,5,1))),2), ":",
- suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,6,1))),2)
- );
- log( info,concat("*Leased IP: ",binary-to-ascii(10,8,".",leased-address), " MAC: ", clhw," (without opt82)") );
- }
- log(info, "==");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement