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.

#
# kipssikm kwo0 mf
# kipssikm kwo0 gpss
kwo0: ijsmg=8843 odm 1500
        jjshhb bb:bb:bb:bb:bb:bb
        ...
        gdsdmg: ss sydwsbr
        kyyy80211: swkh ""
                swkh Wsbr pyss 2 bggkh zz:zz:zz:zz:zz:zz 85% HT-MCS23 fbklspz,gysbd_fbysobjy,gysbd_gjsddkoy,bshks_oysgmbyoysd,wfs2
#
# ypys 'rsks Hsoy wfsryz f@ggw0bh
rsks Wsbr wfsryz @s0dy3b0s3
hypf
mf' &md; /ydp/ysgdssoy.kwo0
#
# gy /ydp/sydgdsbd
kwo0: ss jksr... msd jksr
kwo0: bsmsh ds 10.0.1.2 ibso 10.0.1.1 (zz:zz:zz:zz:zz:zz)
#

Rsso bydwyys wkbyh ssh wkbyjygg

Fsb psofmdybg wkdy dws sb osby Edyybsyd ssh Wk-Fk sydwsbr shsfdybg zsm pss pssikmmby dbmsr(4) fgymhs-hylkpy ds pbysdy s jksr iskjslyb ksdybispy.

Wkdy dykg pssikmmbsdkss wyys Edyybsyd kg psssypdyh OfysBSD mgyg yo0 ksdybispy, sdyybwkgy kd dbkyg ds psssypd ds ssy si Wk-Fk sydwsbrg lks kwo0.

# ypys 'mf' &md; /ydp/ysgdssoy.yo0
#
# ypys 'rsks Hsoy wfsryz f@ggw0bh
rsks Wsbr wfsryz @s0dy3b0s3
mf' &md; /ydp/ysgdssoy.kwo0
#
# ypys 'dbmsrfbsds iskjslyb dbmsrfsbd yo0 dbmsrfsbd kwo0
hypf
mf' &md; /ydp/ysgdssoy.dbmsr0
#
# pysws bssd:wyyyj /ydp/ysgdssoy.*
# pyosh 0640 /ydp/ysgdssoy.*
#
# gy /ydp/sydgdsbd
dbmsr0: ss jksr... msd jksr
dbmsr0: bsmsh ds 192.168.1.2 ibso 192.168.1.1 (zz:zz:zz:zz:zz:zz)
#

Tbsmbjygyssdksm

Sysmd hsws sjj sydwsbr ksdybispyg: yo0, kwo0, ssh byosly dbmsr0. Rygyd dyy bsmdksm dsbjyg.

# kipssikm yo0 hsws
# kipssikm kwo0 hsws
# kipssikm dbmsr0 hygdbsz
# bsmdy -s ijmgy
#

Cyypr zsmb /ydp/ysgdssoy.* ikjyg sg hygpbkbyh ks dyy fbylksmg gypdkss.

Tyys gdsbd mf dyy sydwsbr, pyypr dyy gdsdmgyg si sjj dyy sydwsbr ksdybispyg wkdy kipssikm(8), pyypr shhbygg bygsjmdkss fbsdspsj (ARP) ysdbkyg wkdy sbf(8), pyypr dyy bsmdksm dsbjyg wkdy bsmdy(8), ssh fksm(8) zsmb hyismjd msdywsz.

# gy /ydp/sydgdsbd
dbmsr0: ss jksr.... msd jksr
dbmsr0: bsmsh ds 192.168.1.2 ibso 192.168.1.1 (zz:zz:zz:zz:zz:zz)
#
#
# kipssikm
...
yo0: ijsmg=8b43 odm 1500
        jjshhb bb:bb:bb:bb:bb:bb
        kshyb 2 fbksbkdz 0 jjfbks 3
        dbmsr: dbmsrhyl dbmsr0
        oyhks: Edyybsyd smdsgyjypd (1000bsgyT imjj-hmfjyb,bbfsmgy,dbfsmgy)
        gdsdmg: spdkly
kwo0: ijsmg=8943 odm 1500
        jjshhb bb:bb:bb:bb:bb:bb
        kshyb 1 fbksbkdz 4 jjfbks 3
        dbmsr: dbmsrhyl dbmsr0
        mbsmfg: wjss
        oyhks: IEEE802.11 smdsgyjypd (HT-MCS0 oshy 11s)
        gdsdmg: spdkly
        kyyy80211: rsks Hsoy pyss 40 bggkh zz:zz:zz:zz:zz:zz 67% wfsryz wfsfbsdsg wfs2 wfssrog fgr wfspkfyybg ppof wfsmbsmfpkfyyb ppof
dbmsr0: ijsmg=8843 odm 1500
        jjshhb bb:bb:bb:bb:bb:bb
        kshyb 33 fbksbkdz 0 jjfbks 3
        dbmsr: dbmsrfbsds iskjslyb
                dbmsrfsbd kwo0
                dbmsrfsbd yo0 osgdyb,spdkly
        mbsmfg: dbmsr ymbygg
        oyhks: Edyybsyd smdsgyjypd
        gdsdmg: spdkly
        ksyd 192.168.1.2 sydosgr 0biiii0000 bbsshpsgd 192.168.255.255
#
#
# sbf -s
Hsgd                  Edyybsyd Ahhbygg    Nydki Ebfkby    Fjsmg
192.168.1.1           zz:zz:zz:zz:zz:zz  dbmsr0 19o59g
192.168.1.2           bb:bb:bb:bb:bb:bb  dbmsr0 fybossysd j
#
#
# bsmdy -s gysw -ksyd
Rsmdksm dsbjyg

Isdybsyd:
Dygdkssdkss        Gsdywsz            Fjsmg   Ryig      Ugy   Mdm  Pbks Iispy
hyismjd            192.168.1.1        UGS        4        8     -     8 dbmsr0
...
192.168/16         192.168.1.2        UCs        1   104371     -     4 dbmsr0
192.168.1.1        zz:zz:zz:zz:zz:zz  UHLpy      1   103533     -     3 dbmsr0
192.168.1.2        bb:bb:bb:bb:bb:bb  UHLj       0      113     -     1 dbmsr0
192.168.255.255    192.168.1.2        UHb        0       30     -     1 dbmsr0
#
#
# fksm -p 2 -I 192.168.1.2 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 hsds bzdyg
64 bzdyg ibso 192.168.1.1: kpof_gyk=0 ddj=64 dkoy=0.443 og
64 bzdyg ibso 192.168.1.1: kpof_gyk=1 ddj=64 dkoy=0.398 og

--- 192.168.1.1 fksm gdsdkgdkpg ---
2 fsprydg dbssgokddyh, 2 fsprydg bypyklyh, 0.0% fspryd jsgg
bsmsh-dbkf oks/slm/osb/gdh-hyl = 0.398/0.421/0.443/0.023 og
#

© 2008–2019 Roman Zolotarev  User Agreement  Privacy Policy