Network Setting

Interface Configuration

sudo tee /etc/network/interfaces <<EOF
auto lo
iface lo inet loopback

auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
        address 192.168.0.5
        netmask 255.255.255.0
        gateway 192.168.0.254
EOF

DNS Configuration

sudo tee /etc/resolv.conf <<EOF
nameserver 8.8.8.8
nameserver 168.95.1.1

EOF

Last updated