FreeBSD Manual Pages
NETWORKING(7) Miscellaneous Information Manual NETWORKING(7) NAME networking, wifi -- quickstart guide to connecting to a network DESCRIPTION In the following examples, it is assumed that we are connecting to Eth- ernet with the first interface found by the em(4) driver, and Wi-Fi with the first interface found by the iwn(4) driver, though your hard- ware will vary. EXAMPLES Connecting to an Ethernet network with DHCP: # dhclient em0 Connecting to a cellular network with USB tethering: Load the USB tethering driver, urndis(4): # kldload urndis Ask for a DHCP lease on the USB tethering interface: # dhclient ue0 Connecting to a Wi-Fi network: Identify your Wi-Fi hardware: % sysctl net.wlan.devices Configure your Wi-Fi hardware as wlan0 interface: # sysrc wlans_iwn0="wlan0" Set that interface to negotiate a DHCP lease with wpa_supplicant(8): # sysrc ifconfig_wlan0="WPA SYNCDHCP" Enter the details of the Wi-Fi network: # wpa_passphrase "myssid" "mypassphrase" >> wpa_supplicant.conf Restart the network interface daemon: # service netif restart Scanning for Wi-Fi networks: % ifconfig wlan0 scan Airplane mode: # service netif stop SEE ALSO bsdconfig(8), dhclient(8), ifconfig(8), wpa_passphrase(8) The Advanced Networking chapter of the FreeBSD Handbook. CAVEATS Shell Special Characters in the SSID or passphrase will need to be es- caped for wpa_passphrase(8), commonly using `\', see the manual page for your shell for more details. FreeBSD 13.2 April 17, 2024 NETWORKING(7)
NAME | DESCRIPTION | EXAMPLES | SEE ALSO | CAVEATS
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=networking&sektion=7&manpath=FreeBSD+14.2-RELEASE+and+Ports>