| Main index | Section 7 | Options |
| Example 1: Connecting to an Ethernet network with DHCP | |
|
Ask for a DHCP lease on the first Intel 10Gb Ethernet interface: # dhclient ix0 | |
| Example 2: Connecting to a cellular network with USB tethering | |
|
Ask for a DHCP lease on the first USB tethering interface: # dhclient ue0 | |
| Example 3: Connecting to a Wi-Fi network | |
|
Identify your Wi-Fi hardware: % sysctl net.wlan.devices Create the wlan0 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 dqmyssiddq dqmypassphrasedq >> wpa_supplicant.conf Restart the network interface daemon: # service netif restart | |
| Example 4: Scanning for Wi-Fi networks | |
% ifconfig wlan0 scan | |
| Example 5: Airplane mode | |
# service netif stop | |
The Advanced Networking chapter of the FreeBSD Handbook.
Stopping the network interface service also stops internal networking.
| NETWORKING (7) | March 21, 2025 |
| Main index | Section 7 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | "I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act." | ” |
| — Ken Pier, Xerox PARC | ||