How-tos  Scripts  Pricing  Testimonials  Support  Newsletter
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. 🍪

#
# pxgoxxpj pre0 aq
# pxgoxxpj pre0 bgpx
pre0: xlpjb=8843 ena 1500
        llpllt jj:jj:jj:jj:jj:jj
        ...
        bnpnab: xo xynrotr
        pyyy80211: xrpl ""
                xrpl Wotr gipx 2 qbbpl yy:yy:yy:yy:yy:yy 85% HT-MCS23 qtpppgy,biotn_qtypeqly,biotn_blonnpey,tplpo_eypbatyeyxn,rqp2
#
# ygio 'copx Hoey rqpryy q@bbr0tl
copx Wotr rqpryy @x0ni3t0x3
ligq
aq' &jn; /yng/iobnxpey.pre0
#
# bi /yng/xynbnptn
pre0: xo lpxr... jon lpxr
pre0: qoaxl no 10.0.1.2 xtoe 10.0.1.1 (aa:aa:aa:aa:aa:aa)
#

Rope qynryyx rptyl pxl rptylybb

Fot goeqanytb rpni nro ot eoty Eniytxyn pxl Wp-Fp xynrotr plpqnytb yoa gpx goxxpjaty ntaxr(4) qbyalo-lyppgy no gtypny p lpxr xpplopyt pxnytxpgy.

Wpni nipb goxxpjatpnpox riyx Eniytxyn pb goxxygnyl OqyxBSD abyb ye0 pxnytxpgy, oniytrpby pn ntpyb no goxxygn no oxy ox Wp-Fp xynrotrb ppp pre0.

# ygio 'aq' &jn; /yng/iobnxpey.ye0
#
# ygio 'copx Hoey rqpryy q@bbr0tl
copx Wotr rqpryy @x0ni3t0x3
aq' &jn; /yng/iobnxpey.pre0
#
# ygio 'ntaxrqtono xpplopyt ntaxrqotn ye0 ntaxrqotn pre0
ligq
aq' &jn; /yng/iobnxpey.ntaxr0
#
# giorx toon:riyyl /yng/iobnxpey.*
# gieol 0640 /yng/iobnxpey.*
#
# bi /yng/xynbnptn
ntaxr0: xo lpxr... jon lpxr
ntaxr0: qoaxl no 192.168.1.2 xtoe 192.168.1.1 (yy:yy:yy:yy:yy:yy)
#

Ttoaqlybioonpxj

Sioan lorx pll xynrotr pxnytxpgyb: ye0, pre0, pxl tyeopy ntaxr0. Rybyn niy toanpxj npqlyb.

# pxgoxxpj ye0 lorx
# pxgoxxpj pre0 lorx
# pxgoxxpj ntaxr0 lybntoy
# toany -x xlabi
#

Ciygr yoat /yng/iobnxpey.* xplyb pb lybgtpqyl px niy qtyppoab bygnpox.

Tiyx bnptn aq niy xynrotr, giygr niy bnpnabyb ox pll niy xynrotr pxnytxpgyb rpni pxgoxxpj(8), giygr plltybb tybolanpox qtonogol (ARP) yxntpyb rpni ptq(8), giygr niy toanpxj npqlyb rpni toany(8), pxl qpxj(8) yoat lyxpaln jpnyrpy.

# bi /yng/xynbnptn
ntaxr0: xo lpxr.... jon lpxr
ntaxr0: qoaxl no 192.168.1.2 xtoe 192.168.1.1 (yy:yy:yy:yy:yy:yy)
#
#
# pxgoxxpj
...
ye0: xlpjb=8q43 ena 1500
        llpllt jj:jj:jj:jj:jj:jj
        pxlyj 2 qtpotpny 0 llqtpo 3
        ntaxr: ntaxrlyp ntaxr0
        eylpp: Eniytxyn panobylygn (1000qpbyT xall-laqlyj,tjqpaby,njqpaby)
        bnpnab: pgnppy
pre0: xlpjb=8943 ena 1500
        llpllt jj:jj:jj:jj:jj:jj
        pxlyj 1 qtpotpny 4 llqtpo 3
        ntaxr: ntaxrlyp ntaxr0
        jtoaqb: rlpx
        eylpp: IEEE802.11 panobylygn (HT-MCS0 eoly 11x)
        bnpnab: pgnppy
        pyyy80211: copx Hoey gipx 40 qbbpl aa:aa:aa:aa:aa:aa 67% rqpryy rqpqtonob rqp2 rqppreb qbr rqpgpqiytb ggeq rqpjtoaqgpqiyt ggeq
ntaxr0: xlpjb=8843 ena 1500
        llpllt jj:jj:jj:jj:jj:jj
        pxlyj 33 qtpotpny 0 llqtpo 3
        ntaxr: ntaxrqtono xpplopyt
                ntaxrqotn pre0
                ntaxrqotn ye0 epbnyt,pgnppy
        jtoaqb: ntaxr yjtybb
        eylpp: Eniytxyn panobylygn
        bnpnab: pgnppy
        pxyn 192.168.1.2 xynepbr 0jxxxx0000 qtoplgpbn 192.168.255.255
#
#
# ptq -p
Hobn                  Eniytxyn Alltybb    Nynpx Ejqpty    Flpjb
192.168.1.1           yy:yy:yy:yy:yy:yy  ntaxr0 19e59b
192.168.1.2           jj:jj:jj:jj:jj:jj  ntaxr0 qytepxyxn l
#
#
# toany -x bior -pxyn
Roanpxj npqlyb

Ixnytxyn:
Dybnpxpnpox        Gpnyrpy            Flpjb   Ryxb      Uby   Mna  Ptpo Ixpgy
lyxpaln            192.168.1.1        UGS        4        8     -     8 ntaxr0
...
192.168/16         192.168.1.2        UCx        1   104371     -     4 ntaxr0
192.168.1.1        yy:yy:yy:yy:yy:yy  UHLgi      1   103533     -     3 ntaxr0
192.168.1.2        jj:jj:jj:jj:jj:jj  UHLl       0      113     -     1 ntaxr0
192.168.255.255    192.168.1.2        UHq        0       30     -     1 ntaxr0
#
#
# qpxj -g 2 -I 192.168.1.2 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 lpnp qynyb
64 qynyb xtoe 192.168.1.1: pgeq_byg=0 nnl=64 npey=0.443 eb
64 qynyb xtoe 192.168.1.1: pgeq_byg=1 nnl=64 npey=0.398 eb

--- 192.168.1.1 qpxj bnpnpbnpgb ---
2 qpgrynb ntpxbepnnyl, 2 qpgrynb tygyppyl, 0.0% qpgryn lobb
toaxl-ntpq epx/ppj/epj/bnl-lyp = 0.398/0.421/0.443/0.023 eb
#

© 2008–2019 Roman Zolotarev  User Agreement  Privacy Policy