User guide
Appendices dhcpd Files
988
AlliedView NMS Administration Guide
authoritative;
ddns-update-style interim;
#option domain-name-servers 166.163.129.19,166.163.128.15,166.163.128.5;
default-lease-time 86400;
max-lease-time 86400;
# To identify the network that this machine is physically on.
#subnet 10.52.110.32 netmask 255.255.255.240 {
subnet 10.52.201.0 netmask 255.255.255.0 {
}
if exists agent.circuit-id
{
if ((substring(option vendor-class-identifier,0,8)="iMG646PX") or (substring(option vendor-class-identifier,0,9)="iMG646MOD"))
{
log (info, concat(
" PX INCOMING> ",binary-to-ascii(10, 8, ".", leased-address),
" MAC: ",binary-to-ascii(16,8,":",hardware),
" offered to iMAP: ",(option agent.remote-id),
" INTERFACE: ",binary-to-ascii(10, 8, ".", substring(option agent.circuit-id, 0, 3)),
", VLAN: ",binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 3, 2))
));
}
else
{
log (info, concat(
" INCOMING> ",binary-to-ascii(10, 8, ".", leased-address),
" MAC: ",binary-to-ascii(16,8,":",hardware),
" offered to iMAP: ",(option agent.remote-id),
" INTERFACE: ",binary-to-ascii(10, 8, ".", substring(option agent.circuit-id, 0, 2)),
", VLAN: ",binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 2, 2))
));
}
}
#log ( info, concat(
#">>Lease for ",binary-to-ascii(10, 8, ".", leased-address),
#" raw option-82 info is CID: ",binary-to-ascii(10, 8, ".", option agent.circuit-id),
#" AID: ",binary-to-ascii(16, 8, ".", option agent.remote-id)
# ));
on commit
{
if ((substring(option vendor-class-identifier,0,8)="iMG646PX") or (substring(option vendor-class-identifier,0,9)="iMG646MOD"))
{
log (info, concat(
" LEASE ACK>> ",binary-to-ascii(10, 8, ".", leased-address),
" MAC: ",binary-to-ascii(16,8,":",hardware),
" linked & associated to iMAP: ",(option agent.remote-id),
" INTERFACE: ",binary-to-ascii(10, 8, ".", substring(option agent.circuit-id, 0, 3)),
", VLAN: ",binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 3, 2))
));
}
else
{
log (info, concat(
" LEASE ACK>> ",binary-to-ascii(10, 8, ".", leased-address),
" MAC: ",binary-to-ascii(16,8,":",hardware),
" linked & associated to iMAP: ",(option agent.remote-id),
" INTERFACE: ",binary-to-ascii(10, 8, ".", substring(option agent.circuit-id, 0, 2)),
", VLAN: ",binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 2, 2))
));
}
}
on expiry
{
if ((substring(option vendor-class-identifier,0,8)="iMG646PX") or (substring(option vendor-class-identifier,0,9)="iMG646MOD"))
{
log (info, concat(
" LEASE EXPIRE>> ",binary-to-ascii(10, 8, ".", leased-address),
" MAC: ",binary-to-ascii(16,8,":",hardware),
" associated to iMAP: ",(option agent.remote-id),
" INTERFACE: ",binary-to-ascii(10, 8, ".", substring(option agent.circuit-id, 0, 2)),
", VLAN: ",binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 2, 2))
));
}
else
{
log (info, concat(
" LEASE EXPIRE>> ",binary-to-ascii(10, 8, ".", leased-address),
" MAC: ",binary-to-ascii(16,8,":",hardware),
" associated to iMAP: ",(option agent.remote-id),
" INTERFACE: ",binary-to-ascii(10, 8, ".", substring(option agent.circuit-id, 0, 2)),
", VLAN: ",binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 2, 2))
));
}
}