Routing
Set/Unset interface
ip
From here https://www.redeszone.net/tutoriales/servidores/configurar-linux-comando-ip-iproute2-suite/
To see links, masks, local network config:
ip a
ip link showTo activate an interface:
ip link set enp0s1 upTo deactivate an interface:
ip link set enp0s1 downTo configure a network interface:
ip addr add 192.168.1.1/24 dev enp0s1To delete a network interface:
ip addr del 192.168.1.1 dev enp0s1nmcli
If we detect a interface as "disconnected".
nmcli device statusWe could try to "activate" it:
nmcli dev connect enp0s8And maybe the interface now is giving us new info (:
Last updated