2016年8月11日 星期四

Configure DHCP ( Dynamic Host Configuration Protocol ) Server.

yum -y install dhcp

cp /163.17.209.1/etc/dhcp/dhcpd.conf /etc/dhcp/.

vim /etc/dhcp/dhcpd.conf

ddns-update-style none;
ignore client-updates;
option nis-domain  "wcjs.tc.edu.tw";
option routers     163.17.209.254;
option domain-name "w252.wcjs.tc.edu.tw";
option domain-name-servers 163.17.209.1, 168.95.1.1, 8.8.8.8;
option time-offset  -18000; # Eastern Standard Time
default-lease-time 28800;
max-lease-time 28800;
authoritative;
subnet 163.17.209.0 netmask 255.255.255.0 {
         range dynamic-bootp 163.17.209.75 163.17.209.200;
         host Epson6500 {
                 hardware ethernet 00:00:48:cc:9b:e5;
                 fixed-address 163.17.209.81;
         }
}


systemctl start dhcpd
systemctl status dhcpd
systemctl enable dhcpd 

firewall-cmd --add-service=dhcp --permanent 
firewall-cmd --reload 

沒有留言:

張貼留言