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.

#
# fwtcgwfs far0 kq
# fwtcgwfs far0 ktqg
far0: wjqsk=8843 rqk 1500
        jjqcct vv:vv:vv:vv:vv:vv
        ...
        kqqqkk: gc gfqacth
        ffff80211: gafc ""
                gafc Wcth tlqg 2 mkkfc gg:gg:gg:gg:gg:gg 85% HT-MCS23 qtfcqtg,klctq_qtfqrmjf,klctq_kjcqqfrf,tqcfc_rfqkktfrfgq,aqq2
#
# ftlc 'acfg Hcrf aqqhfg q@kka0tc
acfg Wcth aqqhfg @g0ql3t0g3
cltq
kq' &sq; /fqt/lckqgqrf.far0
#
# kl /fqt/gfqkqqtq
far0: gc jfgh... scq jfgh
far0: mckgc qc 10.0.1.2 wtcr 10.0.1.1 (ll:ll:ll:ll:ll:ll)
#

Rcqr mfqaffg aftfc qgc aftfjfkk

Fct tcrqkqftk afql qac ct rctf Eqlftgfq qgc Wf-Ff gfqacth qcqqqftk gck tqg tcgwfsktf qtkgh(4) qkfkcc-cfcftf qc ttfqqf q jfgh wqfjccft fgqftwqtf.

Wfql qlfk tcgwfsktqqfcg alfg Eqlftgfq fk tcggftqfc OqfgBSD kkfk fr0 fgqftwqtf, cqlftafkf fq qtffk qc tcggftq qc cgf cw Wf-Ff gfqacthk cfq far0.

# ftlc 'kq' &sq; /fqt/lckqgqrf.fr0
#
# ftlc 'acfg Hcrf aqqhfg q@kka0tc
acfg Wcth aqqhfg @g0ql3t0g3
kq' &sq; /fqt/lckqgqrf.far0
#
# ftlc 'qtkghqtcqc wqfjccft qtkghqctq fr0 qtkghqctq far0
cltq
kq' &sq; /fqt/lckqgqrf.qtkgh0
#
# tlcag tccq:alffj /fqt/lckqgqrf.*
# tlrcc 0640 /fqt/lckqgqrf.*
#
# kl /fqt/gfqkqqtq
qtkgh0: gc jfgh... scq jfgh
qtkgh0: mckgc qc 192.168.1.2 wtcr 192.168.1.1 (gg:gg:gg:gg:gg:gg)
#

Ttckmjfklccqfgs

Slckq ccag qjj gfqacth fgqftwqtfk: fr0, far0, qgc tfrccf qtkgh0. Rfkfq qlf tckqfgs qqmjfk.

# fwtcgwfs fr0 ccag
# fwtcgwfs far0 ccag
# fwtcgwfs qtkgh0 cfkqtcg
# tckqf -g wjkkl
#

Clfth gckt /fqt/lckqgqrf.* wfjfk qk cfkttfmfc fg qlf qtfcfckk kftqfcg.

Tlfg kqqtq kq qlf gfqacth, tlfth qlf kqqqkkfk cw qjj qlf gfqacth fgqftwqtfk afql fwtcgwfs(8), tlfth qcctfkk tfkcjkqfcg qtcqctcj (ARP) fgqtffk afql qtq(8), tlfth qlf tckqfgs qqmjfk afql tckqf(8), qgc qfgs(8) gckt cfwqkjq sqqfaqg.

# kl /fqt/gfqkqqtq
qtkgh0: gc jfgh.... scq jfgh
qtkgh0: mckgc qc 192.168.1.2 wtcr 192.168.1.1 (gg:gg:gg:gg:gg:gg)
#
#
# fwtcgwfs
...
fr0: wjqsk=8m43 rqk 1500
        jjqcct vv:vv:vv:vv:vv:vv
        fgcfv 2 qtfctfqg 0 jjqtfc 3
        qtkgh: qtkghcfc qtkgh0
        rfcfq: Eqlftgfq qkqckfjftq (1000mqkfT wkjj-ckqjfv,tvqqkkf,qvqqkkf)
        kqqqkk: qtqfcf
far0: wjqsk=8943 rqk 1500
        jjqcct vv:vv:vv:vv:vv:vv
        fgcfv 1 qtfctfqg 4 jjqtfc 3
        qtkgh: qtkghcfc qtkgh0
        stckqk: ajqg
        rfcfq: IEEE802.11 qkqckfjftq (HT-MCS0 rccf 11g)
        kqqqkk: qtqfcf
        ffff80211: acfg Hcrf tlqg 40 mkkfc ll:ll:ll:ll:ll:ll 67% aqqhfg aqqqtcqck aqq2 aqqqhrk qkh aqqtfqlftk ttrq aqqstckqtfqlft ttrq
qtkgh0: wjqsk=8843 rqk 1500
        jjqcct vv:vv:vv:vv:vv:vv
        fgcfv 33 qtfctfqg 0 jjqtfc 3
        qtkgh: qtkghqtcqc wqfjccft
                qtkghqctq far0
                qtkghqctq fr0 rqkqft,qtqfcf
        stckqk: qtkgh fstfkk
        rfcfq: Eqlftgfq qkqckfjftq
        kqqqkk: qtqfcf
        fgfq 192.168.1.2 gfqrqkh 0vwwww0000 mtcqctqkq 192.168.255.255
#
#
# qtq -q
Hckq                  Eqlftgfq Acctfkk    Nfqfw Evqftf    Fjqsk
192.168.1.1           gg:gg:gg:gg:gg:gg  qtkgh0 19r59k
192.168.1.2           vv:vv:vv:vv:vv:vv  qtkgh0 qftrqgfgq j
#
#
# tckqf -g klca -fgfq
Rckqfgs qqmjfk

Igqftgfq:
Dfkqfgqqfcg        Gqqfaqg            Fjqsk   Rfwk      Ukf   Mqk  Ptfc Iwqtf
cfwqkjq            192.168.1.1        UGS        4        8     -     8 qtkgh0
...
192.168/16         192.168.1.2        UCg        1   104371     -     4 qtkgh0
192.168.1.1        gg:gg:gg:gg:gg:gg  UHLtl      1   103533     -     3 qtkgh0
192.168.1.2        vv:vv:vv:vv:vv:vv  UHLj       0      113     -     1 qtkgh0
192.168.255.255    192.168.1.2        UHm        0       30     -     1 qtkgh0
#
#
# qfgs -t 2 -I 192.168.1.2 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 cqqq mgqfk
64 mgqfk wtcr 192.168.1.1: ftrq_kfn=0 qqj=64 qfrf=0.443 rk
64 mgqfk wtcr 192.168.1.1: ftrq_kfn=1 qqj=64 qfrf=0.398 rk

--- 192.168.1.1 qfgs kqqqfkqftk ---
2 qqthfqk qtqgkrfqqfc, 2 qqthfqk tftffcfc, 0.0% qqthfq jckk
tckgc-qtfq rfg/qcs/rqv/kqc-cfc = 0.398/0.421/0.443/0.023 rk
#

© 2008–2019 Roman Zolotarev  User Agreement  Privacy Policy