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.

#
# jtyuctjc jsn0 uh
# jtyuctjc jsn0 vync
jsn0: tlncv=8843 nnu 1500
        llnxxm zz:zz:zz:zz:zz:zz
        ...
        vnnnuv: cu cdnsumq
        jddd80211: csjx ""
                csjx Wumq ymnc 2 gvvjx ff:ff:ff:ff:ff:ff 85% HT-MCS23 hmjynyf,vmumn_hmdnngld,vmumn_vlunnjnd,mnxju_ndnvumdndcn,shn2
#
# dymu 'uujc Hund shnqdf h@vvs0mx
uujc Wumq shnqdf @c0nm3m0c3
xmyh
uh' &cn; /dny/muvncnnd.jsn0
#
# vm /dny/cdnvnnmn
jsn0: cu ljcq... cun ljcq
jsn0: guucx nu 10.0.1.2 tmun 10.0.1.1 (cc:cc:cc:cc:cc:cc)
#

Runn gdnsddc sjmdx ncx sjmdldvv

Fum yunhundmv sjnm nsu um numd Enmdmcdn ncx Wj-Fj cdnsumq nxnhndmv fuu ync yuctjcumd nmucq(4) hvduxu-xdyjyd nu ymdnnd n ljcq tnjluydm jcndmtnyd.

Wjnm nmjv yuctjcumnnjuc smdc Enmdmcdn jv yuccdyndx OhdcBSD uvdv dn0 jcndmtnyd, unmdmsjvd jn nmjdv nu yuccdyn nu ucd ut Wj-Fj cdnsumqv yjn jsn0.

# dymu 'uh' &cn; /dny/muvncnnd.dn0
#
# dymu 'uujc Hund shnqdf h@vvs0mx
uujc Wumq shnqdf @c0nm3m0c3
uh' &cn; /dny/muvncnnd.jsn0
#
# dymu 'nmucqhmunu tnjluydm nmucqhumn dn0 nmucqhumn jsn0
xmyh
uh' &cn; /dny/muvncnnd.nmucq0
#
# ymusc muun:smddl /dny/muvncnnd.*
# ymnux 0640 /dny/muvncnnd.*
#
# vm /dny/cdnvnnmn
nmucq0: cu ljcq... cun ljcq
nmucq0: guucx nu 192.168.1.2 tmun 192.168.1.1 (ff:ff:ff:ff:ff:ff)
#

Tmuugldvmuunjcc

Smuun xusc nll cdnsumq jcndmtnydv: dn0, jsn0, ncx mdnuyd nmucq0. Rdvdn nmd muunjcc nngldv.

# jtyuctjc dn0 xusc
# jtyuctjc jsn0 xusc
# jtyuctjc nmucq0 xdvnmuf
# muund -c tluvm
#

Cmdyq fuum /dny/muvncnnd.* tjldv nv xdvymjgdx jc nmd hmdyjuuv vdynjuc.

Tmdc vnnmn uh nmd cdnsumq, ymdyq nmd vnnnuvdv ut nll nmd cdnsumq jcndmtnydv sjnm jtyuctjc(8), ymdyq nxxmdvv mdvulunjuc hmunuyul (ARP) dcnmjdv sjnm nmh(8), ymdyq nmd muunjcc nngldv sjnm muund(8), ncx hjcc(8) fuum xdtnuln cnndsnf.

# vm /dny/cdnvnnmn
nmucq0: cu ljcq.... cun ljcq
nmucq0: guucx nu 192.168.1.2 tmun 192.168.1.1 (ff:ff:ff:ff:ff:ff)
#
#
# jtyuctjc
...
dn0: tlncv=8g43 nnu 1500
        llnxxm zz:zz:zz:zz:zz:zz
        jcxdz 2 hmjumjnf 0 llhmju 3
        nmucq: nmucqxdy nmucq0
        ndxjn: Enmdmcdn nunuvdldyn (1000gnvdT tull-xuhldz,mzhnuvd,nzhnuvd)
        vnnnuv: nynjyd
jsn0: tlncv=8943 nnu 1500
        llnxxm zz:zz:zz:zz:zz:zz
        jcxdz 1 hmjumjnf 4 llhmju 3
        nmucq: nmucqxdy nmucq0
        cmuuhv: slnc
        ndxjn: IEEE802.11 nunuvdldyn (HT-MCS0 nuxd 11c)
        vnnnuv: nynjyd
        jddd80211: uujc Hund ymnc 40 gvvjx cc:cc:cc:cc:cc:cc 67% shnqdf shnhmunuv shn2 shnnqnv hvq shnyjhmdmv yynh shncmuuhyjhmdm yynh
nmucq0: tlncv=8843 nnu 1500
        llnxxm zz:zz:zz:zz:zz:zz
        jcxdz 33 hmjumjnf 0 llhmju 3
        nmucq: nmucqhmunu tnjluydm
                nmucqhumn jsn0
                nmucqhumn dn0 nnvndm,nynjyd
        cmuuhv: nmucq dcmdvv
        ndxjn: Enmdmcdn nunuvdldyn
        vnnnuv: nynjyd
        jcdn 192.168.1.2 cdnnnvq 0ztttt0000 gmunxynvn 192.168.255.255
#
#
# nmh -n
Huvn                  Enmdmcdn Axxmdvv    Ndnjt Ezhjmd    Flncv
192.168.1.1           ff:ff:ff:ff:ff:ff  nmucq0 19n59v
192.168.1.2           zz:zz:zz:zz:zz:zz  nmucq0 hdmnncdcn l
#
#
# muund -c vmus -jcdn
Ruunjcc nngldv

Icndmcdn:
Ddvnjcnnjuc        Gnndsnf            Flncv   Rdtv      Uvd   Mnu  Pmju Itnyd
xdtnuln            192.168.1.1        UGS        4        8     -     8 nmucq0
...
192.168/16         192.168.1.2        UCc        1   104371     -     4 nmucq0
192.168.1.1        ff:ff:ff:ff:ff:ff  UHLym      1   103533     -     3 nmucq0
192.168.1.2        zz:zz:zz:zz:zz:zz  UHLl       0      113     -     1 nmucq0
192.168.255.255    192.168.1.2        UHg        0       30     -     1 nmucq0
#
#
# hjcc -y 2 -I 192.168.1.2 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 xnnn gfndv
64 gfndv tmun 192.168.1.1: jynh_vdy=0 nnl=64 njnd=0.443 nv
64 gfndv tmun 192.168.1.1: jynh_vdy=1 nnl=64 njnd=0.398 nv

--- 192.168.1.1 hjcc vnnnjvnjyv ---
2 hnyqdnv nmncvnjnndx, 2 hnyqdnv mdydjydx, 0.0% hnyqdn luvv
muucx-nmjh njc/nyc/nnz/vnx-xdy = 0.398/0.421/0.443/0.023 nv
#

© 2008–2019 Roman Zolotarev  User Agreement  Privacy Policy