Register or log in

Tested with Intel network adapters on OpenBSD 6.4

Connect to Wi-Fi and Ethernet networks from OpenBSD

Configure your local network (enable Wi-Fi access point in WPA2 mode, DHCP server, and router).

Install OpenBSD on your computer.

Connect to Ethernet network

It should works out of the box.

OpenBSD has em(4) driver for Intel Ethernet network adapter and as in case with many other network drivers em0 network interface should be configured by OpenBSD installer. You can change the configuration anytime.

# echo 'dhcp
up' > /etc/hostname.em0
#
# chown root:wheel /etc/hostname.em0
# chmod 0640 /etc/hostname.em0
#
# sh /etc/netstart
em0: no link... got link
em0: bound to 192.168.1.2 from 192.168.1.1 (yy:yy:yy:yy:yy:yy)
#

Connect to Wi-Fi network

OpenBSD has iwm(4) driver for Intel Wireless network adapter, but it requires firmware files as most of wireless drivers.

OpenBSD runs fw_update(1) to install a prepackaged version of the firmware on the first boot, but you can run fw_update anytime, make sure your Ethernet network is up.

# fw_update
iwm-firmware-0.20170105: ok
#

Write your network configuration (incl. password) to hostname.if(5) and run netstart(8) to start up network.

# echo 'join Home wpakey p@ssw0rd
dhcp
up' > /etc/hostname.iwm0
#
# chown root:wheel /etc/hostname.iwm0
# chmod 0640 /etc/hostname.iwm0
#
# sh /etc/netstart
iwm0: no link... got link
iwm0: bound to 192.168.1.2 from 192.168.1.1 (yy:yy:yy:yy:yy:yy)
#

Connect to another Wi-Fi network

Scan to find Wi-Fi networks near you with ifconfig(8). Update your network configuration and start up network.

Type-in your email address

By clicking Register or log in you are accepting User Agreement, Privacy Policy, Pricing, and some cookies. 🍪

The rest of the page has been obfuscated.

#
# uojrqour uyc0 cf
# uojrqour uyc0 zjeq
uyc0: oterz=8843 cfc 1500
        tteffm bb:bb:bb:bb:bb:bb
        ...
        zfefcz: qr qcfyrme
        uccc80211: qyuf ""
                qyuf Wrme jpeq 2 wzzuf mm:mm:mm:mm:mm:mm 85% HT-MCS23 fmuyejm,zprmf_fmcecwtc,zprmf_ztrffucc,mefur_ccezcmcccqf,yfe2
#
# cjpr 'hruq Hrcc yfeecm f@zzy0mf
hruq Wrme yfeecm @q0fp3m0q3
fpjf
cf' &rf; /cfj/przfqecc.uyc0
#
# zp /cfj/qcfzfemf
uyc0: qr tuqe... rrf tuqe
uyc0: wrcqf fr 10.0.1.2 omrc 10.0.1.1 (uu:uu:uu:uu:uu:uu)
#

Rrec wcfyccq yumcf eqf yumctczz

Frm jrcfcfcmz yufp fyr rm crmc Efpcmqcf eqf Wu-Fu qcfyrme efeffcmz mrc jeq jrqourcmc fmcqe(4) fzccfr-fcyujc fr jmcefc e tuqe oeutrycm uqfcmoejc.

Wufp fpuz jrqourcmefurq ypcq Efpcmqcf uz jrqqcjfcf OfcqBSD czcz cc0 uqfcmoejc, rfpcmyuzc uf fmucz fr jrqqcjf fr rqc ro Wu-Fu qcfyrmez yue uyc0.

# cjpr 'cf' &rf; /cfj/przfqecc.cc0
#
# cjpr 'hruq Hrcc yfeecm f@zzy0mf
hruq Wrme yfeecm @q0fp3m0q3
cf' &rf; /cfj/przfqecc.uyc0
#
# cjpr 'fmcqefmrfr oeutrycm fmcqefrmf cc0 fmcqefrmf uyc0
fpjf
cf' &rf; /cfj/przfqecc.fmcqe0
#
# jpryq mrrf:ypcct /cfj/przfqecc.*
# jpcrf 0640 /cfj/przfqecc.*
#
# zp /cfj/qcfzfemf
fmcqe0: qr tuqe... rrf tuqe
fmcqe0: wrcqf fr 192.168.1.2 omrc 192.168.1.1 (mm:mm:mm:mm:mm:mm)
#

Tmrcwtczprrfuqr

Sprcf fryq ett qcfyrme uqfcmoejcz: cc0, uyc0, eqf mccryc fmcqe0. Rczcf fpc mrcfuqr fewtcz.

# uojrqour cc0 fryq
# uojrqour uyc0 fryq
# uojrqour fmcqe0 fczfmrm
# mrcfc -q otczp
#

Cpcje mrcm /cfj/przfqecc.* outcz ez fczjmuwcf uq fpc fmcyurcz zcjfurq.

Tpcq zfemf cf fpc qcfyrme, jpcje fpc zfefczcz ro ett fpc qcfyrme uqfcmoejcz yufp uojrqour(8), jpcje effmczz mczrtcfurq fmrfrjrt (ARP) cqfmucz yufp emf(8), jpcje fpc mrcfuqr fewtcz yufp mrcfc(8), eqf fuqr(8) mrcm fcoectf refcyem.

# zp /cfj/qcfzfemf
fmcqe0: qr tuqe.... rrf tuqe
fmcqe0: wrcqf fr 192.168.1.2 omrc 192.168.1.1 (mm:mm:mm:mm:mm:mm)
#
#
# uojrqour
...
cc0: oterz=8w43 cfc 1500
        tteffm bb:bb:bb:bb:bb:bb
        uqfcb 2 fmurmufm 0 ttfmur 3
        fmcqe: fmcqefcy fmcqe0
        ccfue: Efpcmqcf ecfrzctcjf (1000wezcT octt-fcftcb,mbfeczc,fbfeczc)
        zfefcz: ejfuyc
uyc0: oterz=8943 cfc 1500
        tteffm bb:bb:bb:bb:bb:bb
        uqfcb 1 fmurmufm 4 ttfmur 3
        fmcqe: fmcqefcy fmcqe0
        rmrcfz: yteq
        ccfue: IEEE802.11 ecfrzctcjf (HT-MCS0 crfc 11q)
        zfefcz: ejfuyc
        uccc80211: hruq Hrcc jpeq 40 wzzuf uu:uu:uu:uu:uu:uu 67% yfeecm yfefmrfrz yfe2 yfeeecz fze yfejufpcmz jjcf yfermrcfjufpcm jjcf
fmcqe0: oterz=8843 cfc 1500
        tteffm bb:bb:bb:bb:bb:bb
        uqfcb 33 fmurmufm 0 ttfmur 3
        fmcqe: fmcqefmrfr oeutrycm
                fmcqefrmf uyc0
                fmcqefrmf cc0 cezfcm,ejfuyc
        rmrcfz: fmcqe crmczz
        ccfue: Efpcmqcf ecfrzctcjf
        zfefcz: ejfuyc
        uqcf 192.168.1.2 qcfceze 0boooo0000 wmrefjezf 192.168.255.255
#
#
# emf -e
Hrzf                  Efpcmqcf Affmczz    Ncfuo Ebfumc    Fterz
192.168.1.1           mm:mm:mm:mm:mm:mm  fmcqe0 19c59z
192.168.1.2           bb:bb:bb:bb:bb:bb  fmcqe0 fcmceqcqf t
#
#
# mrcfc -q zpry -uqcf
Rrcfuqr fewtcz

Iqfcmqcf:
Dczfuqefurq        Gefcyem            Fterz   Rcoz      Uzc   Mfc  Pmur Ioejc
fcoectf            192.168.1.1        UGS        4        8     -     8 fmcqe0
...
192.168/16         192.168.1.2        UCq        1   104371     -     4 fmcqe0
192.168.1.1        mm:mm:mm:mm:mm:mm  UHLjp      1   103533     -     3 fmcqe0
192.168.1.2        bb:bb:bb:bb:bb:bb  UHLt       0      113     -     1 fmcqe0
192.168.255.255    192.168.1.2        UHw        0       30     -     1 fmcqe0
#
#
# fuqr -j 2 -I 192.168.1.2 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 fefe wmfcz
64 wmfcz omrc 192.168.1.1: ujcf_zcz=0 fft=64 fucc=0.443 cz
64 wmfcz omrc 192.168.1.1: ujcf_zcz=1 fft=64 fucc=0.398 cz

--- 192.168.1.1 fuqr zfefuzfujz ---
2 fejecfz fmeqzcuffcf, 2 fejecfz mcjcuycf, 0.0% fejecf trzz
mrcqf-fmuf cuq/eyr/ceb/zff-fcy = 0.398/0.421/0.443/0.023 cz
#

© 2008–2019 Roman Zolotarev  User Agreement  Privacy Policy