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.

#
# njvuqjnb nhz0 da
# njvuqjnb nhz0 svqq
nhz0: jgqbs=8843 zjd 1500
        ggqrry ll:ll:ll:ll:ll:ll
        ...
        sjqjds: qu qvjhuyf
        nvvv80211: qhnr ""
                qhnr Wuyf vkqq 2 dssnr oo:oo:oo:oo:oo:oo 85% HT-MCS23 aynzqvo,skuyj_ayvqzdgv,skuyj_sgujjnzv,yqrnu_zvqsdyvzvqj,haq2
#
# vvku 'dunq Huzv haqfvo a@ssh0yr
dunq Wuyf haqfvo @q0jk3y0q3
rkva
da' &bj; /vjv/kusjqqzv.nhz0
#
# sk /vjv/qvjsjqyj
nhz0: qu gnqf... buj gnqf
nhz0: dudqr ju 10.0.1.2 jyuz 10.0.1.1 (qq:qq:qq:qq:qq:qq)
#

Ruqz dvjhvvq hnyvr qqr hnyvgvss

Fuy vuzadjvys hnjk jhu uy zuyv Ejkvyqvj qqr Wn-Fn qvjhuyf qrqajvys oud vqq vuqjnbdyv jydqf(4) asvdru-rvznvv ju vyvqjv q gnqf jqnguzvy nqjvyjqvv.

Wnjk jkns vuqjnbdyqjnuq hkvq Ejkvyqvj ns vuqqvvjvr OavqBSD dsvs vz0 nqjvyjqvv, ujkvyhnsv nj jynvs ju vuqqvvj ju uqv uj Wn-Fn qvjhuyfs znq nhz0.

# vvku 'da' &bj; /vjv/kusjqqzv.vz0
#
# vvku 'dunq Huzv haqfvo a@ssh0yr
dunq Wuyf haqfvo @q0jk3y0q3
da' &bj; /vjv/kusjqqzv.nhz0
#
# vvku 'jydqfayuju jqnguzvy jydqfauyj vz0 jydqfauyj nhz0
rkva
da' &bj; /vjv/kusjqqzv.jydqf0
#
# vkuhq yuuj:hkvvg /vjv/kusjqqzv.*
# vkzur 0640 /vjv/kusjqqzv.*
#
# sk /vjv/qvjsjqyj
jydqf0: qu gnqf... buj gnqf
jydqf0: dudqr ju 192.168.1.2 jyuz 192.168.1.1 (oo:oo:oo:oo:oo:oo)
#

Tyuddgvskuujnqb

Skudj ruhq qgg qvjhuyf nqjvyjqvvs: vz0, nhz0, qqr yvzuzv jydqf0. Rvsvj jkv yudjnqb jqdgvs.

# njvuqjnb vz0 ruhq
# njvuqjnb nhz0 ruhq
# njvuqjnb jydqf0 rvsjyuo
# yudjv -q jgdsk
#

Ckvvf oudy /vjv/kusjqqzv.* jngvs qs rvsvyndvr nq jkv ayvznuds svvjnuq.

Tkvq sjqyj da jkv qvjhuyf, vkvvf jkv sjqjdsvs uj qgg jkv qvjhuyf nqjvyjqvvs hnjk njvuqjnb(8), vkvvf qrryvss yvsugdjnuq ayujuvug (ARP) vqjynvs hnjk qya(8), vkvvf jkv yudjnqb jqdgvs hnjk yudjv(8), qqr anqb(8) oudy rvjqdgj bqjvhqo.

# sk /vjv/qvjsjqyj
jydqf0: qu gnqf.... buj gnqf
jydqf0: dudqr ju 192.168.1.2 jyuz 192.168.1.1 (oo:oo:oo:oo:oo:oo)
#
#
# njvuqjnb
...
vz0: jgqbs=8d43 zjd 1500
        ggqrry ll:ll:ll:ll:ll:ll
        nqrvl 2 aynuynjo 0 ggaynu 3
        jydqf: jydqfrvz jydqf0
        zvrnq: Ejkvyqvj qdjusvgvvj (1000dqsvT jdgg-rdagvl,ylaqdsv,jlaqdsv)
        sjqjds: qvjnzv
nhz0: jgqbs=8943 zjd 1500
        ggqrry ll:ll:ll:ll:ll:ll
        nqrvl 1 aynuynjo 4 ggaynu 3
        jydqf: jydqfrvz jydqf0
        byudas: hgqq
        zvrnq: IEEE802.11 qdjusvgvvj (HT-MCS0 zurv 11q)
        sjqjds: qvjnzv
        nvvv80211: dunq Huzv vkqq 40 dssnr qq:qq:qq:qq:qq:qq 67% haqfvo haqayujus haq2 haqqfzs asf haqvnakvys vvza haqbyudavnakvy vvza
jydqf0: jgqbs=8843 zjd 1500
        ggqrry ll:ll:ll:ll:ll:ll
        nqrvl 33 aynuynjo 0 ggaynu 3
        jydqf: jydqfayuju jqnguzvy
                jydqfauyj nhz0
                jydqfauyj vz0 zqsjvy,qvjnzv
        byudas: jydqf vbyvss
        zvrnq: Ejkvyqvj qdjusvgvvj
        sjqjds: qvjnzv
        nqvj 192.168.1.2 qvjzqsf 0ljjjj0000 dyuqrvqsj 192.168.255.255
#
#
# qya -q
Husj                  Ejkvyqvj Arryvss    Nvjnj Elanyv    Fgqbs
192.168.1.1           oo:oo:oo:oo:oo:oo  jydqf0 19z59s
192.168.1.2           ll:ll:ll:ll:ll:ll  jydqf0 avyzqqvqj g
#
#
# yudjv -q skuh -nqvj
Rudjnqb jqdgvs

Iqjvyqvj:
Dvsjnqqjnuq        Gqjvhqo            Fgqbs   Rvjs      Usv   Mjd  Pynu Ijqvv
rvjqdgj            192.168.1.1        UGS        4        8     -     8 jydqf0
...
192.168/16         192.168.1.2        UCq        1   104371     -     4 jydqf0
192.168.1.1        oo:oo:oo:oo:oo:oo  UHLvk      1   103533     -     3 jydqf0
192.168.1.2        ll:ll:ll:ll:ll:ll  UHLg       0      113     -     1 jydqf0
192.168.255.255    192.168.1.2        UHd        0       30     -     1 jydqf0
#
#
# anqb -v 2 -I 192.168.1.2 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 rqjq dojvs
64 dojvs jyuz 192.168.1.1: nvza_svk=0 jjg=64 jnzv=0.443 zs
64 dojvs jyuz 192.168.1.1: nvza_svk=1 jjg=64 jnzv=0.398 zs

--- 192.168.1.1 anqb sjqjnsjnvs ---
2 aqvfvjs jyqqsznjjvr, 2 aqvfvjs yvvvnzvr, 0.0% aqvfvj guss
yudqr-jyna znq/qzb/zql/sjr-rvz = 0.398/0.421/0.443/0.023 zs
#

© 2008–2019 Roman Zolotarev  User Agreement  Privacy Policy