Memo

Affichier interface physiques ou virtuelles

sudo ip -4 addr show

Afficher les toutes:

ip route

Activer passage internet:

net.ipv4.ip_forward = 1 est bien activé dans /etc/sysctl.conf

DNS FDN

80.67.169.12
80.67.169.40

Se connecter à une interface

sudo ip addr add 192.168.100.200/24 dev ens3 // accroche ip a interface 
sudo ip route add default via 192.168.100.1
sudo ip link set ens3 up // monte interface

IP FIXE LAN

allow-hotplug eth0
auto eth0
iface eth0 inet static
    address 192.168.1.101 
    netmask 255.255.255.0
    gateway 192.168.1.1

IP DYNAMIQUE LAN

allow-hotplug eth0
iface eth0 inet dhcp

IP FIXE WIFI

allow-hotplug wlp2s0
auto wlp2s0
iface wlp2s0 inet static
wpa-ssid Eru Iluvatar - 5GHz
wpa-psk [CLEF WIFI]
address 192.168.1.15
    netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 80.67.169.12 80.67.169.40

IP DYNAMIQUE WIFI

allow-hotplug wlp2s0
iface wlp2s0 inet dhcp
wpa-ssid Eru Iluvatar - 5GHz
wpa-psk [mellon]
dns-nameservers 80.67.169.12 80.67.169.40