Last active
September 11, 2020 16:34
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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