8bb8938d23648189b37ba99594f8c71a14a9e2c9
unix/openbsd.md
| ... | ... | @@ -176,5 +176,16 @@ newfs_msdos /dev/rsd2b |
| 176 | 176 | cabel install |
| 177 | 177 | bdf2wscons trigon8x15.bdf > |
| 178 | 178 | ``` |
| 179 | + |
|
| 180 | +## networking |
|
| 181 | +* network interface /etc/hostname.<int> |
|
| 182 | + ``` |
|
| 183 | + inet 192.168.1.3 255.255.255.0 |
|
| 184 | + ``` |
|
| 185 | +* add routes after (`!` prefix executes command after int is configured) |
|
| 186 | + ``` |
|
| 187 | + inet 192.168.1.3 255.255.255.0 |
|
| 188 | + !/sbin/route add -inet default 192.168.1.0 |
|
| 189 | + ``` |
|
| 179 | 190 | |
| 180 | 191 | [softraid encryption]: https://www.openbsd.org/faq/faq14.html#softraidFDE |