yum install dhcp* -y
rpm -qa | grep dhcp
dhcp-3.0.5-3.el5.i386.rpm
dhcpv6-1.0.10-17.el5
dhcp-devel-3.0.5-21.el5
dhcpv6-client-1.0.10-17.el5
cp /usr/share/doc/dhcp*/dhcpd.conf.sample /etc/dhcpd.conf
vi /etc/dhcpd.conf
修改后重启即可:service dhcpd restart
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.0.3;
option subnet-mask 255.255.255.0;
option nis-domain "hrsx.com";
option domain-name "hrsx.com";
option domain-name-servers 192.168.0.233;
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.0.1 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host liuming {
hardware ethernet 70:71:bc:c9:a0:df;
fixed-address 192.168.0.101;
}
host jiangjianb {
hardware ethernet 00:1f:3c:46:f6:f5;
fixed-address 192.168.0.104;
}
host jiangjiant {
hardware ethernet e0:69:95:07:8f:56;
fixed-address 192.168.0.105;
}
host liuxingweit {
hardware ethernet e0:69:95:07:a6:5a;
fixed-address 192.168.0.107;
}
host liuxingweib {
hardware ethernet 60:eb:69:93:57:3b;
fixed-address 192.168.0.108;
}
host wangjiafut {
hardware ethernet e0:69:95:07:ab:8a;
fixed-address 192.168.0.110;
}
host wangjiafub {
hardware ethernet 20:6a:8a:03:db:6c;
fixed-address 192.168.0.111;
}
host chenglong {
hardware ethernet 00:1d:ba:04:47:df;
fixed-address 192.168.0.113;
}
host shuxin {
hardware ethernet 00:11:09:27:68:cf;
fixed-address 192.168.0.116;
}
host zhangzuozhen {
hardware ethernet 90:fb:a6:e5:00:9c;
fixed-address 192.168.0.121;
}
host donghaizhen {
hardware ethernet 10:78:d2:ac:75:43;
fixed-address 192.168.0.122;
}
host jiangshiyao {
hardware ethernet 90:fb:a6:e4:f6:0b;
fixed-address 192.168.0.123;
}
host shaoyuxiang {
hardware ethernet 10:78:d2:c1:49:70;
fixed-address 192.168.0.124;
}
host tianjiahui {
hardware ethernet 10:78:d2:c1:4a:28;
fixed-address 192.168.0.125;
}
host wangqiu {
hardware ethernet 10:78:d2:ac:74:65;
fixed-address 192.168.0.151;
}
host zhengdi {
hardware ethernet 10:78:d2:c1:4a:27;
fixed-address 192.168.0.152;
}
host yuanpeng {
hardware ethernet 10:78:d2:ac:74:62;
fixed-address 192.168.0.153;
}
host wangyang {
hardware ethernet 00:15:f2:d9:ef:c9;
fixed-address 192.168.0.154;
}
host sunlibo {
hardware ethernet 00:19:d1:a7:23:e5;
fixed-address 192.168.0.155;
}
host fengguangping {
hardware ethernet 10:78:d2:ac:74:5a;
fixed-address 192.168.0.156;
}
host lijian {
hardware ethernet 00:13:d3:17:4b:61;
fixed-address 192.168.0.157;
}
host wangyushi {
hardware ethernet 20:cf:30:6e:77:9d;
fixed-address 192.168.0.158;
}
host zhengyi {
hardware ethernet 00:23:54:39:92:b4;
fixed-address 192.168.0.159;
}
host wangban {
hardware ethernet 00:30:18:a1:46:b2;
fixed-address 192.168.0.181;
}
host liuyi {
hardware ethernet 00:19:d1:96:4f:78;
fixed-address 192.168.0.182;
}
}
保存退出,重启服务
service dhcpd restart
阅读(1177) | 评论(0) | 转发(0) |