- 论坛徽章:
- 0
|
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# option definitions common to all supported networks...
option domain-name "domain.com";
option domain-name-servers 192.168.0.1;
default-lease-time 3600;
max-lease-time 10800;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;
# ad-hoc DNS update scheme - set to "none" to disable dynamic DNS updates.
ddns-update-style ad-hoc;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.
shared-network Vlan-0 {
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
range 192.168.0.200 192.168.0.249;
}
}
shared-network Vlan-1 {
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
range 192.168.1.101 192.168.1.249;
}
}
shared-network Vlan-2 {
subnet 192.168.2.0 netmask 255.255.255.0 {
option routers 192.168.2.1;
range 192.168.2.101 192.168.2.249;
}
}
shared-network Vlan-3 {
subnet 192.168.3.0 netmask 255.255.255.0 {
option routers 192.168.3.1;
range 192.168.3.101 192.168.3.249;
}
}
echo "">/var/db/dhcpd/dhcpd.leases
tail -f /var/db/dhcpd/dhcpd.leases
lease 192.168.0.240 {
starts 3 2009/05/13 02:13:03;
ends 3 2009/05/13 03:13:03;
binding state active;
next binding state free;
hardware ethernet 00:e0:4c:39:02:db;
uid "\001RAS \000\340L9\002\333\000\000\007\000\000\000";
client-hostname "s-k12";
}
lease 192.168.0.239 {
starts 3 2009/05/13 02:13:03;
ends 3 2009/05/13 03:13:03;
binding state active;
next binding state free;
hardware ethernet 00:02:55:d6:ba:6d;
uid "\001RAS \000\002U\326\272\215\000\000\000\000\000\000";
client-hostname "Myser";
}
lease 192.168.1.249 {
starts 3 2009/05/13 02:13:06;
ends 3 2009/05/13 03:13:06;
binding state active;
next binding state free;
hardware ethernet 00:23:4e:db:a6:8b;
uid "\001\000#N\333\246\213";
client-hostname "Lenovo-PC";
}
lease 192.168.0.238 {
starts 3 2009/05/13 02:13:07;
ends 3 2009/05/13 03:13:07;
binding state active;
next binding state free;
hardware ethernet 00:e0:4c:39:02:db;
uid "\001RAS \000\340L9\002\333\000\000\006\000\000\000";
client-hostname "s-k12";
}
lease 192.168.2.243 {
starts 3 2009/05/13 02:13:09;
ends 3 2009/05/13 03:13:09;
binding state active;
next binding state free;
hardware ethernet 00:21:00:b9:db:87;
uid "\001\000!\000\271\333\207";
client-hostname "cic";
}
lease 192.168.0.237 {
starts 3 2009/05/13 02:13:12;
ends 3 2009/05/13 03:13:12;
binding state active;
next binding state free;
hardware ethernet 00:02:55:d6:ba:6d;
uid "\001RAS \000\002U\326\272\215\000\000\006\000\000\000";
client-hostname "Myser";
}
lease 192.168.2.109 {
starts 3 2009/05/13 02:13:12;
ends 3 2009/05/13 03:13:12;
binding state active;
next binding state free;
hardware ethernet 00:11:5b:53:5c:fa;
uid "\001\000\021[S\\\372";
client-hostname "PC-20090108FWCW";
}
lease 192.168.2.142 {
starts 3 2009/05/13 02:13:12;
ends 3 2009/05/13 03:13:12;
binding state active;
next binding state free;
hardware ethernet 00:11:5b:d7:5e:97;
uid "\001\000\021[\327^\227";
client-hostname "WWW-CF8FB9A3E5E";
}
lease 192.168.0.236 {
starts 3 2009/05/13 02:13:15;
ends 3 2009/05/13 03:13:15;
binding state active;
next binding state free;
hardware ethernet 00:e0:4c:39:02:db;
uid "\001RAS \000\340L9\002\333\000\000\001\000\000\000";
client-hostname "s-k12";
}
lease 192.168.0.235 {
starts 3 2009/05/13 02:13:17;
ends 3 2009/05/13 03:13:17;
binding state active;
next binding state free;
hardware ethernet 00:e0:4c:39:02:db;
uid "\001RAS \000\340L9\002\333\000\000\002\000\000\000";
client-hostname "s-k12";
}
lease 192.168.2.115 {
starts 3 2009/05/13 02:13:19;
ends 3 2009/05/13 03:13:19;
binding state active;
next binding state free;
hardware ethernet 00:21:00:c3:a1:9f;
uid "\001\000!\000\303\241\237";
client-hostname "Lenovo-PC";
}
lease 192.168.0.234 {
starts 3 2009/05/13 02:13:21;
ends 3 2009/05/13 03:13:21;
binding state active;
next binding state free;
hardware ethernet 00:e0:4c:39:02:db;
uid "\001RAS \000\340L9\002\333\000\000\010\000\000\000";
client-hostname "s-k12";
}
注:主机s-k12和Myser都是网内固定IP的机器。
[ 本帖最后由 dylibin 于 2009-5-13 10:34 编辑 ] |
|