- 论坛徽章:
- 0
|
一台DHCP服务器,怎样才能让它为多个网段分配IP地址?
[root@firewall etc]# more dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.0.0 {
# --- default gateway
option routers 192.168.0.2;
option subnet-mask 255.255.254.0;
option nis-domain "szbb.com";
option domain-name "szbb.com";
option domain-name-servers 202.102.15.162,202.102.14.141;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.0.21 192.168.1.254;
default-lease-time 43200;
max-lease-time 64800;
host dellserver{
hardware ethernet 00:06:5B:F7:77:14;
fixed-address 192.168.0.236;
}
}
下面是我的租约文件中部分内容:
[root@firewall etc]# cd /var/lib/dhcp/
[root@firewall dhcp]# ls
dhcpd.leases dhcpd.leases~
[root@firewall dhcp]# more dhcpd.leases
****************
lease 192.168.1.182 {
starts 2 2003/04/29 10:25:55;
ends 2 2003/04/29 10:27:55;
tstp 2 2003/04/29 10:27:55;
binding state free;
hardware ethernet 00:e0:4c:a1:36:53;
}
lease 192.168.0.183 {
starts 2 2003/04/29 10:25:59;
ends 2 2003/04/29 10:27:59;
tstp 2 2003/04/29 10:27:59;
binding state free;
hardware ethernet 00:e0:4c:a1:36:53;
}
lease 192.168.0.241 {
starts 2 2003/04/29 10:28:42;
ends 2 2003/04/29 10:30:42;
tstp 2 2003/04/29 10:30:42;
binding state free;
hardware ethernet 00:e0:4c:a1:36:53;
}
lease 192.168.1.242 {
starts 2 2003/04/29 23:40:07;
ends 2 2003/04/29 23:42:07;
tstp 2 2003/04/29 23:42:07;
binding state free;
hardware ethernet 00:10:dc:40:6b:95;
}
************
非常正常... |
|