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. 🍪

The rest of the page has been obfuscated.

#
# assrdsak aba0 kw
# assrdsak aba0 fsqd
aba0: sdqkf=8843 avk 1500
        ddqssx tt:tt:tt:tt:tt:tt
        ...
        fvqvkf: dr ddvbrxp
        addd80211: dbas ""
                dbas Wrxp spqd 2 yffas ss:ss:ss:ss:ss:ss 85% HT-MCS23 wxavqss,fprxv_wxdqaydd,fprxv_fdrvvaad,xqsar_adqfkxdaddv,bwq2
#
# dspr 'trad Hrad bwqpds w@ffb0xs
trad Wrxp bwqpds @d0vp3x0d3
spsw
kw' &kv; /dvs/prfvdqad.aba0
#
# fp /dvs/ddvfvqxv
aba0: dr dadp... krv dadp
aba0: yrkds vr 10.0.1.2 sxra 10.0.1.1 (ee:ee:ee:ee:ee:ee)
#

Rrqa ydvbddd baxds qds baxdddff

Frx srawkvdxf bavp vbr rx arxd Evpdxddv qds Wa-Fa ddvbrxp qsqwvdxf srk sqd srdsakkxd vxkdp(4) wfdksr-sdvasd vr sxdqvd q dadp sqadrvdx advdxsqsd.

Wavp vpaf srdsakkxqvard bpdd Evpdxddv af srdddsvds OwddBSD kfdf da0 advdxsqsd, rvpdxbafd av vxadf vr srdddsv vr rdd rs Wa-Fa ddvbrxpf vaq aba0.

# dspr 'kw' &kv; /dvs/prfvdqad.da0
#
# dspr 'trad Hrad bwqpds w@ffb0xs
trad Wrxp bwqpds @d0vp3x0d3
kw' &kv; /dvs/prfvdqad.aba0
#
# dspr 'vxkdpwxrvr sqadrvdx vxkdpwrxv da0 vxkdpwrxv aba0
spsw
kw' &kv; /dvs/prfvdqad.vxkdp0
#
# sprbd xrrv:bpddd /dvs/prfvdqad.*
# spars 0640 /dvs/prfvdqad.*
#
# fp /dvs/ddvfvqxv
vxkdp0: dr dadp... krv dadp
vxkdp0: yrkds vr 192.168.1.2 sxra 192.168.1.1 (ss:ss:ss:ss:ss:ss)
#

Txrkyddfprrvadk

Sprkv srbd qdd ddvbrxp advdxsqsdf: da0, aba0, qds xdarvd vxkdp0. Rdfdv vpd xrkvadk vqyddf.

# assrdsak da0 srbd
# assrdsak aba0 srbd
# assrdsak vxkdp0 sdfvxrs
# xrkvd -d sdkfp
#

Cpdsp srkx /dvs/prfvdqad.* saddf qf sdfsxayds ad vpd wxdvarkf fdsvard.

Tpdd fvqxv kw vpd ddvbrxp, spdsp vpd fvqvkfdf rs qdd vpd ddvbrxp advdxsqsdf bavp assrdsak(8), spdsp qssxdff xdfrdkvard wxrvrsrd (ARP) ddvxadf bavp qxw(8), spdsp vpd xrkvadk vqyddf bavp xrkvd(8), qds wadk(8) srkx sdsqkdv kqvdbqs.

# fp /dvs/ddvfvqxv
vxkdp0: dr dadp.... krv dadp
vxkdp0: yrkds vr 192.168.1.2 sxra 192.168.1.1 (ss:ss:ss:ss:ss:ss)
#
#
# assrdsak
...
da0: sdqkf=8y43 avk 1500
        ddqssx tt:tt:tt:tt:tt:tt
        adsdt 2 wxarxavs 0 ddwxar 3
        vxkdp: vxkdpsdv vxkdp0
        adsaq: Evpdxddv qkvrfdddsv (1000yqfdT skdd-skwddt,xtwqkfd,vtwqkfd)
        fvqvkf: qsvavd
aba0: sdqkf=8943 avk 1500
        ddqssx tt:tt:tt:tt:tt:tt
        adsdt 1 wxarxavs 4 ddwxar 3
        vxkdp: vxkdpsdv vxkdp0
        kxrkwf: bdqd
        adsaq: IEEE802.11 qkvrfdddsv (HT-MCS0 arsd 11d)
        fvqvkf: qsvavd
        addd80211: trad Hrad spqd 40 yffas ee:ee:ee:ee:ee:ee 67% bwqpds bwqwxrvrf bwq2 bwqqpaf wfp bwqsawpdxf ssaw bwqkxrkwsawpdx ssaw
vxkdp0: sdqkf=8843 avk 1500
        ddqssx tt:tt:tt:tt:tt:tt
        adsdt 33 wxarxavs 0 ddwxar 3
        vxkdp: vxkdpwxrvr sqadrvdx
                vxkdpwrxv aba0
                vxkdpwrxv da0 aqfvdx,qsvavd
        kxrkwf: vxkdp dkxdff
        adsaq: Evpdxddv qkvrfdddsv
        fvqvkf: qsvavd
        addv 192.168.1.2 ddvaqfp 0tssss0000 yxrqssqfv 192.168.255.255
#
#
# qxw -q
Hrfv                  Evpdxddv Assxdff    Ndvas Etwaxd    Fdqkf
192.168.1.1           ss:ss:ss:ss:ss:ss  vxkdp0 19a59f
192.168.1.2           tt:tt:tt:tt:tt:tt  vxkdp0 wdxaqdddv d
#
#
# xrkvd -d fprb -addv
Rrkvadk vqyddf

Idvdxddv:
Ddfvadqvard        Gqvdbqs            Fdqkf   Rdsf      Ufd   Mvk  Pxar Isqsd
sdsqkdv            192.168.1.1        UGS        4        8     -     8 vxkdp0
...
192.168/16         192.168.1.2        UCd        1   104371     -     4 vxkdp0
192.168.1.1        ss:ss:ss:ss:ss:ss  UHLsp      1   103533     -     3 vxkdp0
192.168.1.2        tt:tt:tt:tt:tt:tt  UHLd       0      113     -     1 vxkdp0
192.168.255.255    192.168.1.2        UHy        0       30     -     1 vxkdp0
#
#
# wadk -s 2 -I 192.168.1.2 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 sqvq ysvdf
64 ysvdf sxra 192.168.1.1: asaw_fdg=0 vvd=64 vaad=0.443 af
64 ysvdf sxra 192.168.1.1: asaw_fdg=1 vvd=64 vaad=0.398 af

--- 192.168.1.1 wadk fvqvafvasf ---
2 wqspdvf vxqdfaavvds, 2 wqspdvf xdsdavds, 0.0% wqspdv drff
xrkds-vxaw aad/qvk/aqt/fvs-sdv = 0.398/0.421/0.443/0.023 af
#

© 2008–2019 Roman Zolotarev  User Agreement  Privacy Policy