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.

#
# cbwccbcv cpm0 ix
# cbwccbcv cpm0 jwsc
cpm0: bisvj=8843 mqi 1500
        iiscce qq:qq:qq:qq:qq:qq
        ...
        jqsqij: cc cvqpces
        cvvv80211: cpcc ""
                cpcc Wces wssc 2 ajjcc ee:ee:ee:ee:ee:ee 85% HT-MCS23 xecnswe,jsceq_xevsmaiv,jsceq_jicqqcmv,esccc_mvsjievmvcq,pxs2
#
# vwsc 'vccc Hcmv pxssve x@jjp0ec
vccc Wces pxssve @c0qs3e0c3
cswx
ix' &vq; /vqw/scjqcsmv.cpm0
#
# js /vqw/cvqjqseq
cpm0: cc iccs... vcq iccs
cpm0: acicc qc 10.0.1.2 becm 10.0.1.1 (zz:zz:zz:zz:zz:zz)
#

Rcsm avqpvvc pcevc scc pcevivjj

Fce wcmxiqvej pcqs qpc ce mcev Eqsvecvq scc Wc-Fc cvqpces scsxqvej eci wsc wccbcviev qeics(4) xjvicc-cvncwv qc wevsqv s iccs bscicnve ccqvebswv.

Wcqs qscj wccbcviesqccc psvc Eqsvecvq cj wcccvwqvc OxvcBSD ijvj vm0 ccqvebswv, cqsvepcjv cq qecvj qc wcccvwq qc ccv cb Wc-Fc cvqpcesj ncs cpm0.

# vwsc 'ix' &vq; /vqw/scjqcsmv.vm0
#
# vwsc 'vccc Hcmv pxssve x@jjp0ec
vccc Wces pxssve @c0qs3e0c3
ix' &vq; /vqw/scjqcsmv.cpm0
#
# vwsc 'qeicsxecqc bscicnve qeicsxceq vm0 qeicsxceq cpm0
cswx
ix' &vq; /vqw/scjqcsmv.qeics0
#
# wscpc eccq:psvvi /vqw/scjqcsmv.*
# wsmcc 0640 /vqw/scjqcsmv.*
#
# js /vqw/cvqjqseq
qeics0: cc iccs... vcq iccs
qeics0: acicc qc 192.168.1.2 becm 192.168.1.1 (ee:ee:ee:ee:ee:ee)
#

Teciaivjsccqccv

Ssciq ccpc sii cvqpces ccqvebswvj: vm0, cpm0, scc evmcnv qeics0. Rvjvq qsv eciqccv qsaivj.

# cbwccbcv vm0 ccpc
# cbwccbcv cpm0 ccpc
# cbwccbcv qeics0 cvjqece
# eciqv -c biijs
#

Csvws ecie /vqw/scjqcsmv.* bcivj sj cvjwecavc cc qsv xevnccij jvwqccc.

Tsvc jqseq ix qsv cvqpces, wsvws qsv jqsqijvj cb sii qsv cvqpces ccqvebswvj pcqs cbwccbcv(8), wsvws sccevjj evjciiqccc xecqcwci (ARP) vcqecvj pcqs sex(8), wsvws qsv eciqccv qsaivj pcqs eciqv(8), scc xccv(8) ecie cvbsiiq vsqvpse.

# js /vqw/cvqjqseq
qeics0: cc iccs.... vcq iccs
qeics0: acicc qc 192.168.1.2 becm 192.168.1.1 (ee:ee:ee:ee:ee:ee)
#
#
# cbwccbcv
...
vm0: bisvj=8a43 mqi 1500
        iiscce qq:qq:qq:qq:qq:qq
        cccvq 2 xeccecqe 0 iixecc 3
        qeics: qeicscvn qeics0
        mvccs: Eqsvecvq siqcjvivwq (1000asjvT biii-cixivq,eqxsijv,qqxsijv)
        jqsqij: swqcnv
cpm0: bisvj=8943 mqi 1500
        iiscce qq:qq:qq:qq:qq:qq
        cccvq 1 xeccecqe 4 iixecc 3
        qeics: qeicscvn qeics0
        vecixj: pisc
        mvccs: IEEE802.11 siqcjvivwq (HT-MCS0 mccv 11c)
        jqsqij: swqcnv
        cvvv80211: vccc Hcmv wssc 40 ajjcc zz:zz:zz:zz:zz:zz 67% pxssve pxsxecqcj pxs2 pxsssmj xjs pxswcxsvej wwmx pxsvecixwcxsve wwmx
qeics0: bisvj=8843 mqi 1500
        iiscce qq:qq:qq:qq:qq:qq
        cccvq 33 xeccecqe 0 iixecc 3
        qeics: qeicsxecqc bscicnve
                qeicsxceq cpm0
                qeicsxceq vm0 msjqve,swqcnv
        vecixj: qeics vvevjj
        mvccs: Eqsvecvq siqcjvivwq
        jqsqij: swqcnv
        ccvq 192.168.1.2 cvqmsjs 0qbbbb0000 aecscwsjq 192.168.255.255
#
#
# sex -s
Hcjq                  Eqsvecvq Accevjj    Nvqcb Eqxcev    Fisvj
192.168.1.1           ee:ee:ee:ee:ee:ee  qeics0 19m59j
192.168.1.2           qq:qq:qq:qq:qq:qq  qeics0 xvemscvcq i
#
#
# eciqv -c jscp -ccvq
Rciqccv qsaivj

Icqvecvq:
Dvjqccsqccc        Gsqvpse            Fisvj   Rvbj      Ujv   Mqi  Pecc Ibswv
cvbsiiq            192.168.1.1        UGS        4        8     -     8 qeics0
...
192.168/16         192.168.1.2        UCc        1   104371     -     4 qeics0
192.168.1.1        ee:ee:ee:ee:ee:ee  UHLws      1   103533     -     3 qeics0
192.168.1.2        qq:qq:qq:qq:qq:qq  UHLi       0      113     -     1 qeics0
192.168.255.255    192.168.1.2        UHa        0       30     -     1 qeics0
#
#
# xccv -w 2 -I 192.168.1.2 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 csqs aeqvj
64 aeqvj becm 192.168.1.1: cwmx_jvh=0 qqi=64 qcmv=0.443 mj
64 aeqvj becm 192.168.1.1: cwmx_jvh=1 qqi=64 qcmv=0.398 mj

--- 192.168.1.1 xccv jqsqcjqcwj ---
2 xswsvqj qescjmcqqvc, 2 xswsvqj evwvcnvc, 0.0% xswsvq icjj
ecicc-qecx mcc/snv/msq/jqc-cvn = 0.398/0.421/0.443/0.023 mj
#

© 2008–2019 Roman Zolotarev  User Agreement  Privacy Policy