GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
NETWORKING(7) FreeBSD Miscellaneous Information Manual NETWORKING(7)

networking, wifiquickstart guide to connecting to a network

In the following examples, it is assumed that we are connecting to Ethernet with the first interface found by the ix(4) driver, and Wi-Fi with the first interface found by the iwlwifi(4) driver, though your hardware will vary.

Ask for a DHCP lease on the first Intel 10Gb Ethernet interface:

# dhclient ix0

Ask for a DHCP lease on the first USB tethering interface:

# dhclient ue0

Identify your Wi-Fi hardware:

% sysctl net.wlan.devices

Create the interface with the first Intel Wi-Fi adapter:

# sysrc wlans_iwlwifi0="wlan0"

Set that interface to ask for a DHCP lease with wpa_supplicant(8):

# sysrc ifconfig_wlan0="WPA SYNCDHCP"

Enter the details of the Wi-Fi network:

# cd /etc/
# wpa_passphrase "myssid" "mypassphrase" >> wpa_supplicant.conf

Restart the network interface daemon:

# service netif restart
% ifconfig wlan0 scan
# service netif stop

bsdconfig(8), dhclient(8), ifconfig(8), wpa_passphrase(8)

The Advanced Networking chapter of the FreeBSD Handbook.

Shell Special Characters in the SSID or passphrase will need to be escaped for wpa_passphrase(8), commonly using ‘\’, see the manual page for your shell for more details.

Stopping the network interface service also stops internal networking.

March 21, 2025 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.