dhcp test 1

This commit is contained in:
Patrick 2024-11-14 16:25:59 +01:00
parent 9695b09087
commit f8fc6da54c
4 changed files with 18 additions and 2 deletions

View file

@ -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