Created
September 7, 2020 07:58
-
-
Save Deadlyelder/0f877013013c349fbc0ce5f2a128215d to your computer and use it in GitHub Desktop.
fx from config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resetntinf () { | |
echo "It will clean up the route tables for connectivity issues"; | |
for i in $(ifconfig | egrep -o "^[a-z].+\d{1}:" | sed 's/://'); | |
do | |
sudo ifconfig "$i" down; | |
done; | |
sudo route -n flush; | |
for i in $(ifconfig | egrep -o "^[a-z].+\d{1}:" | sed 's/://'); | |
do | |
sudo ifconfig "$i" up; | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment