DHCP服务器在企业网络中的应用(5)
发布时间:2021-06-07
发布时间:2021-06-07
DHCP服务器在企业网络中的应用
5 ONBOOT=yes
6 NETMASK=255.255.255.0
7 IPADDR=192.168.1.254
8 GATEWAY=192.168.1.1
9 TYPE=Ethernet
重启网络服务:
[root@junjie ~]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
(3)配置DHCP服务器
[root@junjie ~]# vim /etc/dhcpd.conf
6 subnet 192.168.1.0 netmask 255.255.255.0 {
8 option routers 192.168.1.1;
9 option subnet-mask 255.255.255.0;
10 option nis-domain "";
11 option domain-name "";
12 option domain-name-servers 222.88.88.88,222.85.85.85;
13 range dynamic-bootp 192.168.1.2 192.168.1.87;
14 range dynamic-bootp 192.168.1.89 192.168.1.253;
15 default-lease-time 3600;