Last active
January 14, 2023 19:34
-
-
Save RicardoRagel/b2ec86b8139c4867606ee8bf399a8b11 to your computer and use it in GitHub Desktop.
Debian wireless networking configs (at /etc/network/interfaces)
This file contains 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
# DHCP network config | |
## Set your interface, e.g. wlan0 | |
allow-hotplug <INTERFACE> | |
## Set your network SSID and password | |
iface <INTERFACE> inet dhcp | |
wpa-ssid <SSID> | |
wpa-psk <PASSWORD> |
This file contains 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
# STATIC IP network config | |
## Set your interface, e.g. wlan0 | |
allow-hotplug <INTERFACE> | |
## Set your network SSID and password together with the desired IP and router config | |
iface <INTERFACE> inet static | |
wpa-ssid <SSID> | |
wpa-psk <PASSWORD> | |
address <IP> # 192.168.1.150 | |
netmask <NETMASK> # 255.255.255.0 | |
gateway <GATEWAY> # 192.168.1.254 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After add one of them, relaunch the network interface using:
And check it: