disable ipv6 on ubuntu touchless

build-default-monitor-config-from-definitions
Moe 2020-05-09 16:16:40 -07:00
parent 301bb4ebca
commit 6b8b9d85d3
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ getubuntuversion=$(lsb_release -r | awk '{print $2}' | cut -d . -f1)
echo "============="
echo " Ubuntu Version: $getubuntuversion"
echo "============="
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
if [ "$getubuntuversion" = "18" ] || [ "$getubuntuversion" > "18" ]; then
apt install sudo wget -y
sudo apt install -y software-properties-common