apt-get install isc-dhcp-server vi /etc/dhcp/dhcpd.conf コメントにする #option domain-name "example.org"; #option domain-name-servers ns1.example.org, ns2.example.org; コメントを取る # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. authoritative; 最終行に追記
subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.50 192.168.1.100; option broadcast-address 192.168.1.255; option routers 192.168.1.1; default-lease-time 600; max-lease-time 7200; option domain-name "local"; option domain-name-servers 8.8.8.8, 8.8.4.4; } vi /etc/default/isc-dhcp-server #IINTERFACES="" NTERFACES="eth0" 再起動
service isc-dhcp-server restart
これでIP一覧が出てくる
apt-get install nmap
nmap -sP 192.168.1.1-255
コメント