User guide
dhcpd Files dhcpd.conf
AlliedView NMS Administration Guide (Appendices)
13-10
13.2.1 dhcpd.conf
log-facility local7;
######################################################################
# In addition to setting this value, you may need to modify your
# syslog.conf file to configure logging of the DHCP server.
# For example, you might add a line like this:
# local7.* /val/log/dhcpd.log
# local7.info @192.168.2.199
######################################################################
server-name "RG_DHCP_TelcoX";
server-identifier rgdhcp.telco_x.org;
authoritative;
#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.3.0.0 netmask 255.255.255.0 {
}
if exists agent.circuit-id
{
log (info, concat(
"Lease granted for ",binary-to-ascii(10, 8, ".", leased-address),
" is associated to iMAP ",(option agent.remote-id),
" interface ",binary-to-ascii(10, 8, ".", substring(option agent.circuit-id, 0, 2)),
", using 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
{
log (info, concat(
"Lease granted for ",binary-to-ascii(10, 8, ".", leased-address),
" is associated to iMAP ",(option agent.remote-id),
" interface ",binary-to-ascii(10, 8, ".", substring(option agent.circuit-id, 0, 2)),
", using VLAN ",binary-to-ascii(10, 16, "", substring(option agent.circuit-id, 2, 2))
));
}
on expiry
{
log (info, concat(
"Lease for ",binary-to-ascii(10, 8, ".", leased-address),
" has expired for MAC ",binary-to-ascii(16,8,":",hardware)));
}
on release
{
log (info, concat(
"Release for ",binary-to-ascii(10, 8, ".", leased-address),
" from MAC ",binary-to-ascii(16,8,":",hardware)));
}
ddns-updates off;
ddns-update-style interim;
# MAP class config files
include "/etc/dhcpd_include/CLLISS-AI00-class";
include "/etc/dhcpd_include/CLLISS-AI01-class";
# MAP subnet config files
include "/etc/dhcpd_include/CLLISS-AI00-subnet";
include "/etc/dhcpd_include/CLLISS-AI01-subnet";
13.2.2 dhcpd Includes
13.2.2.1 CLLISS-AI00-class
######################################################################
# AGENT REMOTE ID:
# CLLISS-AI00 (TEST [AI00] ACCESS ISLAND)
#
# AGENT CIRCUIT ID:
# Vlan 299 (Internet) = \x01\x2b = 69.178.0.0 255.255.252.0 UFO?
# Vlan 399 (Video) = \x01\x8f = 10.246.0.0 255.255.240.0 UFO
# Vlan 499 (Voice) = \x01\xf3 = 10.48 .0.0 255.255.252.0 UFO
# Vlan 599 (RGMgmt) = \x02\x57 = 10.56 .0.0 255.255.252.0 UFO
# Vlan 699 (RGBBoot) = \x02\xbb = 10.64.0.0 255.255.255.0 UFO