Skip to content

Instantly share code, notes, and snippets.

@RicardoRagel
Last active January 14, 2023 19:34
Show Gist options
  • Save RicardoRagel/b2ec86b8139c4867606ee8bf399a8b11 to your computer and use it in GitHub Desktop.
Save RicardoRagel/b2ec86b8139c4867606ee8bf399a8b11 to your computer and use it in GitHub Desktop.
Debian wireless networking configs (at /etc/network/interfaces)
# 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>
# 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
@RicardoRagel
Copy link
Author

After add one of them, relaunch the network interface using:

sudo ifdown <INTERFACE>
sudo ifup <INTERFACE>

And check it:

ifconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment