dhcp test 1
This commit is contained in:
parent
9695b09087
commit
f8fc6da54c
4 changed files with 18 additions and 2 deletions
|
@ -21,3 +21,11 @@ while true; do
|
|||
break
|
||||
fi
|
||||
done
|
||||
|
||||
ip addr flush dev eth0
|
||||
ip addr add 192.168.1.1/24 dev eth0
|
||||
|
||||
echo -e "\nauto eth0\niface eth0 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.1" | tee -a /etc/network/interfaces
|
||||
|
||||
cp dhcpd.conf /etc/dhcp/dhcpd.conf
|
||||
sed -i 's/^INTERFACES=.*/INTERFACES="eth0"/' /etc/default/isc-dhcp-server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue