Update 2023-11-06 11:38:11

This commit is contained in:
c0dev0id 2023-11-06 11:38:13 +01:00
parent a8c4d51ffd
commit ff6e92e279

View File

@ -1,4 +1,4 @@
# OpenBSD: laptop network setup
# OpenBSD: a simple laptop network setup (with dhcp)
Note, each of the commands comes with a man page, which I encourage you to read. This post is merely to get you started.
@ -111,7 +111,7 @@ This `/etc/hostname.<device>` based configuration makes it easy to copy configur
You can create a [trunk(4)](https://man.openbsd.org/trunk.4) device, which internally switches between your ethernet and your wireless device.
For this to work, we need three configurations and you should be able to understand most of it.
For this to work, we need three configurations and you should be able to understand most of it by now.
```
# cat /etc/hostname.em0
@ -144,4 +144,3 @@ trunkport iwx0
The fist line means that we do a failover. This means we use the fist device if we can. If the first device (master device) is down, then we use the second one.
In this concrete example it means, if a network cable is plugged in to `em0`, we use this device. If the network cable is pulled, we simply continue with the wireless device `iwx0`.