File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,19 @@ NETMASK=$($IFCONFIG | grep -w inet |grep -v 127.0.0.1| awk '{print $4}' | cut -d
99GATEWAY=$( route -n| grep " UG" | grep -v " UGH" | cut -f 10 -d " " )
1010
1111cat << -IPCONFIG > "$INTERFACES "
12- auto lo $IFACE
12+ source /etc/network/interfaces.d/*
1313
14+ # The loopback network interface
15+ auto lo $IFACE
1416 iface lo inet loopback
1517
18+ # The primary network interface
1619 iface $IFACE inet static
1720 pre-up /sbin/ethtool -K $IFACE tso off
1821 pre-up /sbin/ethtool -K $IFACE gso off
1922
23+ # Best practice is to change the static address
24+ # to something outside your DHCP range.
2025 address $ADDRESS
2126 netmask $NETMASK
2227 gateway $GATEWAY
Original file line number Diff line number Diff line change @@ -36,9 +36,7 @@ wget -q --spider http://github.com
3636 else
3737 echo
3838 echo " Network NOT OK. You must have a working Network connection to run this script."
39- echo " You could try to change network settings of this VM to 'Bridged Mode'" .
40- echo " If that doesn't help, please try to un-check 'Replicate physical host' in"
41- echo " the network settings of the VM."
39+ echo " Please report this to: https://github.com/enoch85/wordpress-vm/issues/new"
4240 exit 1
4341 fi
4442
You can’t perform that action at this time.
0 commit comments