Config Network


nano /etc/network/interfaces

auto ens192  
allow-hotplug ens192  
iface ens192 inet static  
        address 192.168.20.68  
        gateway 192.168.20.254  
        # dns-* options are implemented by the resolvconf package, if installed  
        #dns-nameservers 192.168.20.254  

auto ensxxx
allow-hotplug ensxxx
iface ensxxx inet dhcp

ifup NICNAME


Supprimer IPV6

sudo nano /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.tun0.disable_ipv6 = 1
net.ipv6.conf.ens33.disable_ipv6 = 1
net.ipv6.conf.enp0s3.disable_ipv6 = 1

sudo sysctl -p
sudo ifdown ens33
sudo ifup ens33


Afficher DNS et Gateway

DNS

sudo cat /etc/resolv.conf

Gateway

sudo ip route
sudo netstat -r -n