Created
October 10, 2018 05:05
-
-
Save salopst/2e7c83e5a6713fdd57b3c585e6aee800 to your computer and use it in GitHub Desktop.
reset network on omv
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
#!/bin/dash | |
# 2019-10-09 | |
# reset network on omv | |
# sudo ip address show | |
# sudo ip route show | |
# echo $0 | |
# env | |
# check also /etc/hostname/ | |
sudo ip add 192.168.2.42/24 dev eth1 | |
sudo ip link set eth1 up | |
sudo ip route add 192.168.2.1/24 | |
sudo ip route add default via 192.168.2.1 dev eth1 | |
sudo printf "search maranlan\nnameserver 127.0.0.1\nnameserver 192.168.2.101\nnameserver 1.1.1.1" | sudo tee -a /etc/resolv.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment