sudo apt install isc-dhcp-server修改 DHCP 設定檔
nano /etc/dhcp/dhcpd.conf
default-lease-time 3600; max-lease-time 28800; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.121 192.168.1.220; option subnet-mask 255.255.255.0; option routers 192.168.1.254; }重啟 DHCP SERVER
sudo systemctl restart isc-dhcp-server isc-dhcp-server6檢查是否有啟動成功
sudo systemctl status isc-dhcp-server isc-dhcp-server6
sudo netstat -tulnp | grep dhcp
沒有留言:
張貼留言