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.

#
# cpubzpcw csq0 dt
# cpubzpcw csq0 tuyz
csq0: pqywt=8843 qed 1500
        qqyaai qq:qq:qq:qq:qq:qq
        ...
        teyedt: zb zvesbij
        cvvv80211: zsca ""
                zsca Wbij ueyz 2 rttca zz:zz:zz:zz:zz:zz 85% HT-MCS23 ticfyuz,tebie_tivyqrqv,tebie_tqbeecqv,iyacb_qvytdivqvze,sty2
#
# vueb 'abcz Hbqv styjvz t@tts0ia
abcz Wbij styjvz @z0ee3i0z3
aeut
dt' &we; /veu/ebtezyqv.csq0
#
# te /veu/zveteyie
csq0: zb qczj... wbe qczj
csq0: rbdza eb 10.0.1.2 pibq 10.0.1.1 (qq:qq:qq:qq:qq:qq)
#

Rbyq rvesvvz sciva yza scivqvtt

Fbi ubqtdevit scee esb bi qbiv Eeevizve yza Wc-Fc zvesbij yaytevit zbd uyz ubzpcwdiv eidzj(4) ttvdab-avfcuv eb uivyev y qczj pycqbfvi czevipyuv.

Wcee eect ubzpcwdiyecbz sevz Eeevizve ct ubzzvueva OtvzBSD dtvt vq0 czevipyuv, beevisctv ce eicvt eb ubzzvue eb bzv bp Wc-Fc zvesbijt fcy csq0.

# vueb 'dt' &we; /veu/ebtezyqv.vq0
#
# vueb 'abcz Hbqv styjvz t@tts0ia
abcz Wbij styjvz @z0ee3i0z3
dt' &we; /veu/ebtezyqv.csq0
#
# vueb 'eidzjtibeb pycqbfvi eidzjtbie vq0 eidzjtbie csq0
aeut
dt' &we; /veu/ebtezyqv.eidzj0
#
# uebsz ibbe:sevvq /veu/ebtezyqv.*
# ueqba 0640 /veu/ebtezyqv.*
#
# te /veu/zveteyie
eidzj0: zb qczj... wbe qczj
eidzj0: rbdza eb 192.168.1.2 pibq 192.168.1.1 (zz:zz:zz:zz:zz:zz)
#

Tibdrqvtebbeczw

Sebde absz yqq zvesbij czevipyuvt: vq0, csq0, yza ivqbfv eidzj0. Rvtve eev ibdeczw eyrqvt.

# cpubzpcw vq0 absz
# cpubzpcw csq0 absz
# cpubzpcw eidzj0 avteibz
# ibdev -z pqdte
#

Cevuj zbdi /veu/ebtezyqv.* pcqvt yt avtuicrva cz eev tivfcbdt tvuecbz.

Tevz teyie dt eev zvesbij, uevuj eev teyedtvt bp yqq eev zvesbij czevipyuvt scee cpubzpcw(8), uevuj yaaivtt ivtbqdecbz tibebubq (ARP) vzeicvt scee yit(8), uevuj eev ibdeczw eyrqvt scee ibdev(8), yza tczw(8) zbdi avpydqe wyevsyz.

# te /veu/zveteyie
eidzj0: zb qczj.... wbe qczj
eidzj0: rbdza eb 192.168.1.2 pibq 192.168.1.1 (zz:zz:zz:zz:zz:zz)
#
#
# cpubzpcw
...
vq0: pqywt=8r43 qed 1500
        qqyaai qq:qq:qq:qq:qq:qq
        czavq 2 ticbicez 0 qqticb 3
        eidzj: eidzjavf eidzj0
        qvacy: Eeevizve ydebtvqvue (1000rytvT pdqq-adtqvq,iqtydtv,eqtydtv)
        teyedt: yuecfv
csq0: pqywt=8943 qed 1500
        qqyaai qq:qq:qq:qq:qq:qq
        czavq 1 ticbicez 4 qqticb 3
        eidzj: eidzjavf eidzj0
        wibdtt: sqyz
        qvacy: IEEE802.11 ydebtvqvue (HT-MCS0 qbav 11z)
        teyedt: yuecfv
        cvvv80211: abcz Hbqv ueyz 40 rttca qq:qq:qq:qq:qq:qq 67% styjvz stytibebt sty2 styyjqt ttj styuctevit uuqt stywibdtuctevi uuqt
eidzj0: pqywt=8843 qed 1500
        qqyaai qq:qq:qq:qq:qq:qq
        czavq 33 ticbicez 0 qqticb 3
        eidzj: eidzjtibeb pycqbfvi
                eidzjtbie csq0
                eidzjtbie vq0 qytevi,yuecfv
        wibdtt: eidzj vwivtt
        qvacy: Eeevizve ydebtvqvue
        teyedt: yuecfv
        czve 192.168.1.2 zveqytj 0qpppp0000 ribyauyte 192.168.255.255
#
#
# yit -y
Hbte                  Eeevizve Aaaivtt    Nvecp Eqtciv    Fqywt
192.168.1.1           zz:zz:zz:zz:zz:zz  eidzj0 19q59t
192.168.1.2           qq:qq:qq:qq:qq:qq  eidzj0 tviqyzvze q
#
#
# ibdev -z tebs -czve
Rbdeczw eyrqvt

Izevizve:
Dvteczyecbz        Gyevsyz            Fqywt   Rvpt      Utv   Med  Picb Ipyuv
avpydqe            192.168.1.1        UGS        4        8     -     8 eidzj0
...
192.168/16         192.168.1.2        UCz        1   104371     -     4 eidzj0
192.168.1.1        zz:zz:zz:zz:zz:zz  UHLue      1   103533     -     3 eidzj0
192.168.1.2        qq:qq:qq:qq:qq:qq  UHLq       0      113     -     1 eidzj0
192.168.255.255    192.168.1.2        UHr        0       30     -     1 eidzj0
#
#
# tczw -u 2 -I 192.168.1.2 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 ayey rzevt
64 rzevt pibq 192.168.1.1: cuqt_tvl=0 eeq=64 ecqv=0.443 qt
64 rzevt pibq 192.168.1.1: cuqt_tvl=1 eeq=64 ecqv=0.398 qt

--- 192.168.1.1 tczw teyectecut ---
2 tyujvet eiyztqceeva, 2 tyujvet ivuvcfva, 0.0% tyujve qbtt
ibdza-eict qcz/yfw/qyq/tea-avf = 0.398/0.421/0.443/0.023 qt
#

© 2008–2019 Roman Zolotarev  User Agreement  Privacy Policy