
954
AlliedView NMS Administration Guide
B. dhcpd Files
Following is a complete example of a dhcpd file, with comments highlighted. There are five files, since DHCP-related
configurations for each Access Island are placed in separate configuration files.
B.1 dhcpd.conf
# dhcpd.conf for Service Provider Solutions Interop (SPSI) lab
# Jul-12-08 JWS: removed subnets AI01, L2Supp, YKTA
# Jul-8-10 JWS: added subnets spsi-ai00-awplus
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 @10.52.110.4
######################################################################
server-name "dhcp1";
server-identifier dhcp1.spsi.lab.telesyn.corp;
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
Kommentare zu diesen Handbüchern