#!/bin/bash

cat /dev/null > etc/network/interfaces

cat > /etc/network/interfaces <<EOF
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
    address 127.0.0.1
    netmask 255.255.255.255
    gateway 1.1.1.1
    dns-nameservers 114.114.114.114 5.5.5.5

EOF

systemctl restart networking


rm -rf /tmp/change.sh
