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.

#
# cgrwlgco cec0 in
# cgrwlgco cec0 nrpl
cec0: ggpon=8843 cxi 1500
        ggpiic oo:oo:oo:oo:oo:oo
        ...
        nxpxin: lw lcxewcb
        cccc80211: leci ""
                leci Wwcb rspl 2 lnnci ee:ee:ee:ee:ee:ee 85% HT-MCS23 nccnpre,nswcx_nccpclgc,nswcx_ngwxxccc,cpicw_ccpnicccclx,enp2
#
# crsw 'fwcl Hwcc enpbce n@nne0ci
fwcl Wwcb enpbce @l0xs3c0l3
isrn
in' &ox; /cxr/swnxlpcc.cec0
#
# ns /cxr/lcxnxpcx
cec0: lw gclb... owx gclb
cec0: lwili xw 10.0.1.2 gcwc 10.0.1.1 (aa:aa:aa:aa:aa:aa)
#

Rwpc lcxeccl eccci pli ecccgcnn

Fwc rwcnixccn ecxs xew wc cwcc Exscclcx pli Wc-Fc lcxewcb pipnxccn ewi rpl rwlgcoicc xcilb(4) nnciiw-icncrc xw rccpxc p gclb gpcgwncc clxccgprc.

Wcxs xscn rwlgcoicpxcwl escl Exscclcx cn rwllcrxci OnclBSD incn cc0 clxccgprc, wxsccecnc cx xcccn xw rwllcrx xw wlc wg Wc-Fc lcxewcbn ncp cec0.

# crsw 'in' &ox; /cxr/swnxlpcc.cc0
#
# crsw 'fwcl Hwcc enpbce n@nne0ci
fwcl Wwcb enpbce @l0xs3c0l3
in' &ox; /cxr/swnxlpcc.cec0
#
# crsw 'xcilbncwxw gpcgwncc xcilbnwcx cc0 xcilbnwcx cec0
isrn
in' &ox; /cxr/swnxlpcc.xcilb0
#
# rswel cwwx:esccg /cxr/swnxlpcc.*
# rscwi 0640 /cxr/swnxlpcc.*
#
# ns /cxr/lcxnxpcx
xcilb0: lw gclb... owx gclb
xcilb0: lwili xw 192.168.1.2 gcwc 192.168.1.1 (ee:ee:ee:ee:ee:ee)
#

Tcwilgcnswwxclo

Sswix iwel pgg lcxewcb clxccgprcn: cc0, cec0, pli cccwnc xcilb0. Rcncx xsc cwixclo xplgcn.

# cgrwlgco cc0 iwel
# cgrwlgco cec0 iwel
# cgrwlgco xcilb0 icnxcwe
# cwixc -l ggins
#

Cscrb ewic /cxr/swnxlpcc.* gcgcn pn icnrcclci cl xsc nccncwin ncrxcwl.

Tscl nxpcx in xsc lcxewcb, rscrb xsc nxpxincn wg pgg xsc lcxewcb clxccgprcn ecxs cgrwlgco(8), rscrb piiccnn ccnwgixcwl ncwxwrwg (ARP) clxcccn ecxs pcn(8), rscrb xsc cwixclo xplgcn ecxs cwixc(8), pli nclo(8) ewic icgpigx opxcepe.

# ns /cxr/lcxnxpcx
xcilb0: lw gclb.... owx gclb
xcilb0: lwili xw 192.168.1.2 gcwc 192.168.1.1 (ee:ee:ee:ee:ee:ee)
#
#
# cgrwlgco
...
cc0: ggpon=8l43 cxi 1500
        ggpiic oo:oo:oo:oo:oo:oo
        clico 2 nccwccxe 0 ggnccw 3
        xcilb: xcilbicn xcilb0
        ccicp: Exscclcx pixwncgcrx (1000lpncT gigg-iingco,conpinc,xonpinc)
        nxpxin: prxcnc
cec0: ggpon=8943 cxi 1500
        ggpiic oo:oo:oo:oo:oo:oo
        clico 1 nccwccxe 4 ggnccw 3
        xcilb: xcilbicn xcilb0
        ocwinn: egpl
        ccicp: IEEE802.11 pixwncgcrx (HT-MCS0 cwic 11l)
        nxpxin: prxcnc
        cccc80211: fwcl Hwcc rspl 40 lnnci aa:aa:aa:aa:aa:aa 67% enpbce enpncwxwn enp2 enppbcn nnb enprcnsccn rrcn enpocwinrcnscc rrcn
xcilb0: ggpon=8843 cxi 1500
        ggpiic oo:oo:oo:oo:oo:oo
        clico 33 nccwccxe 0 ggnccw 3
        xcilb: xcilbncwxw gpcgwncc
                xcilbnwcx cec0
                xcilbnwcx cc0 cpnxcc,prxcnc
        ocwinn: xcilb coccnn
        ccicp: Exscclcx pixwncgcrx
        nxpxin: prxcnc
        clcx 192.168.1.2 lcxcpnb 0ogggg0000 lcwpirpnx 192.168.255.255
#
#
# pcn -p
Hwnx                  Exscclcx Aiiccnn    Ncxcg Eonccc    Fgpon
192.168.1.1           ee:ee:ee:ee:ee:ee  xcilb0 19c59n
192.168.1.2           oo:oo:oo:oo:oo:oo  xcilb0 ncccplclx g
#
#
# cwixc -l nswe -clcx
Rwixclo xplgcn

Ilxcclcx:
Dcnxclpxcwl        Gpxcepe            Fgpon   Rcgn      Unc   Mxi  Pccw Igprc
icgpigx            192.168.1.1        UGS        4        8     -     8 xcilb0
...
192.168/16         192.168.1.2        UCl        1   104371     -     4 xcilb0
192.168.1.1        ee:ee:ee:ee:ee:ee  UHLrs      1   103533     -     3 xcilb0
192.168.1.2        oo:oo:oo:oo:oo:oo  UHLg       0      113     -     1 xcilb0
192.168.255.255    192.168.1.2        UHl        0       30     -     1 xcilb0
#
#
# nclo -r 2 -I 192.168.1.2 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 ipxp lexcn
64 lexcn gcwc 192.168.1.1: crcn_ncj=0 xxg=64 xccc=0.443 cn
64 lexcn gcwc 192.168.1.1: crcn_ncj=1 xxg=64 xccc=0.398 cn

--- 192.168.1.1 nclo nxpxcnxcrn ---
2 nprbcxn xcplnccxxci, 2 nprbcxn ccrccnci, 0.0% nprbcx gwnn
cwili-xccn ccl/pno/cpo/nxi-icn = 0.398/0.421/0.443/0.023 cn
#

© 2008–2019 Roman Zolotarev  User Agreement  Privacy Policy