diff --git a/configs/scripts/server.sh b/configs/scripts/server.sh index 9df77e5..3dd7a6c 100755 --- a/configs/scripts/server.sh +++ b/configs/scripts/server.sh @@ -22,9 +22,9 @@ while true; do fi done -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 /mnt/etc/network/interfaces +echo -e "\nauto ens3\niface ens3 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.1" | tee -a /mnt/etc/network/interfaces cp /mnt/root/dhcpd.conf /mnt/etc/dhcp/ -sed -i 's/^INTERFACES=.*/INTERFACES="eth0"/' /mnt/etc/default/isc-dhcp-server +sed -i 's/^INTERFACES=.*/INTERFACES="ens3"/' /mnt/etc/default/isc-dhcp-server read a