dhcp fix
This commit is contained in:
parent
71f9a54323
commit
327b544f41
1 changed files with 1 additions and 1 deletions
|
@ -25,6 +25,6 @@ done
|
||||||
echo -e "\nauto enp0s3\niface enp0s3 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.0" | tee -a /mnt/etc/network/interfaces
|
echo -e "\nauto enp0s3\niface enp0s3 inet static\n address 192.168.1.1\n netmask 255.255.255.0\n gateway 192.168.1.0" | tee -a /mnt/etc/network/interfaces
|
||||||
|
|
||||||
cp /mnt/root/dhcpd.conf /mnt/etc/dhcp/
|
cp /mnt/root/dhcpd.conf /mnt/etc/dhcp/
|
||||||
sed -i 's/^INTERFACES=.*/INTERFACES="enp0s3"/' /mnt/etc/default/isc-dhcp-server
|
sed -i 's/^INTERFACESv4=.*/INTERFACESv4="enp0s3"/' /mnt/etc/default/isc-dhcp-server
|
||||||
|
|
||||||
read a
|
read a
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue