Skip to content

Instantly share code, notes, and snippets.

@InBrewJ
Last active September 11, 2020 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save InBrewJ/cb9d46f174887707ddff6709414840f1 to your computer and use it in GitHub Desktop.
Save InBrewJ/cb9d46f174887707ddff6709414840f1 to your computer and use it in GitHub Desktop.
How to toggle a network interface in Pop OS 20.04 (on the wise ThinkPad)
# To show the current link state
ip link show
# To disable the wlp3s0 interface (the built in one)
if=wlp3s0
sudo ip link set $if down
# or
sudo ip link set wlp3s0 down
# or, of course
sudo ip link set wlp3s0 up
# https://unix.stackexchange.com/questions/111256/how-to-permanently-disable-a-network-interface
# To enable/disable permanently (and therefore on restart)
sudo nano /etc/network/interfaces
# Add in/remove the line
# iface wlan0 inet manual
# Restart Networkmanager with
sudo service network-manager restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment