We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716a6c7 commit 8c173a2Copy full SHA for 8c173a2
static/ip.sh
@@ -9,14 +9,19 @@ NETMASK=$($IFCONFIG | grep -w inet |grep -v 127.0.0.1| awk '{print $4}' | cut -d
9
GATEWAY=$(route -n|grep "UG"|grep -v "UGH"|cut -f 10 -d " ")
10
11
cat <<-IPCONFIG > "$INTERFACES"
12
- auto lo $IFACE
+source /etc/network/interfaces.d/*
13
14
+# The loopback network interface
15
+ auto lo $IFACE
16
iface lo inet loopback
17
18
+# The primary network interface
19
iface $IFACE inet static
20
pre-up /sbin/ethtool -K $IFACE tso off
21
pre-up /sbin/ethtool -K $IFACE gso off
22
23
+# Best practice is to change the static address
24
+# to something outside your DHCP range.
25
address $ADDRESS
26
netmask $NETMASK
27
gateway $GATEWAY
0 commit comments