Linux: Enable or disable a network interface

To disable a network interface from the commandline type

sudo ip link set  down

To bring it back up

sudo ip link set  down

Sources

9 / 2024