Browse Source

Added renew ip script

Toby Chui 3 years ago
parent
commit
30461b79dd
1 changed files with 6 additions and 0 deletions
  1. 6 0
      renew-ip.sh

+ 6 - 0
renew-ip.sh

@@ -0,0 +1,6 @@
+#/bin/bash
+echo "Releasing DHCP ip addr"
+sudo dhclient -v -r enp0s3
+echo "Requesting new ip addr"
+sudo dhclient -v
+ip a