NETWORKING(7)
π NETWORKING(7) β the networking + wifi glow-up guide π
okay so bestie, this is networking(7) from the Miscellaneous Information Manual, and it's literally your quickstart guide to connecting to a network. no cap, it's short, it's sweet, it slays. let's go π«Ά
πΈ DESCRIPTION πΈ
so in all the examples below, the page is assuming a couple things, bestie, and your hardware will vary (iykyk):
- you're connecting to Ethernet with the first interface found by the
ix(4)driver - and you're doing Wi-Fi with the first interface found by the
iwlwifi(4)driver
that's the vibe. your actual setup might be different and that's fine π
β¨ EXAMPLES β¨
π§ Example 1: Connecting to an Ethernet network with DHCP
ask for a DHCP lease on the first Intel 10Gb Ethernet interface:
# dhclient ix0
ate. that's it. that's the whole thing π
π₯ Example 2: Connecting to a cellular network with USB tethering
ask for a DHCP lease on the first USB tethering interface:
# dhclient ue0
same energy, different interface. iconic π
π Example 3: Connecting to a Wi-Fi network
this one's a whole journey, but we got you. step by step, no skipping π
step one β identify your Wi-Fi hardware:
% sysctl net.wlan.devices
step two β create the wlan0 interface with the first Intel Wi-Fi adapter:
# sysrc wlans_iwlwifi0="wlan0"
step three β set that interface to ask for a DHCP lease with wpa_supplicant(8):
# sysrc ifconfig_wlan0="WPA SYNCDHCP"
step four β enter the details of the Wi-Fi network:
# cd /etc/
# wpa_passphrase "myssid" "mypassphrase" >> wpa_supplicant.conf
step five β restart the network interface daemon:
# service netif restart
and boom, you're on the network, main character energy β¨π
π¦ Example 4: Scanning for Wi-Fi networks
% ifconfig wlan0 scan
look at all those networks. so many options. vibe check passed πΈ
π Example 5: Airplane mode
# service netif stop
going off the grid, respectfully. βοΈ
π CAVEATS π
Shell Special Characters in the SSID or passphrase will need to be escaped forwpa_passphrase(8), commonly usingβ\ββ see the manual page for your shell for more details. (fr fr, don't skip this one, your passphrase will simply not work and you'll be sad π)
also stopping the network interface service also stops internal networking. so like, heads up. service netif stop is not just a little pause, it's a whole thing. be aware π
π SEE ALSO π
and also: The Advanced Networking chapter of the FreeBSD Handbook β go read it, it's giving study buddy ππ
and that's the page, bestie! π this iconic little guide comes to you from Debian, dated March 21, 2025 β stay connected, stay slay β¨π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- π the page's license: BSD-2-Clause
- Copyright (c) 2024 Alexander Ziaee. Ohio
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms