RPORT(4)
π
RPORT(4) β the rport manual, bestie edition π
okay so real talk, this is from the Kernel Interfaces Manual, and it's literally all about rport β the rdomain port interface pseudo-device. yes that's a mouthful, we'll get through it together π«Ά
β¨ NAME β¨
rport β the rdomain port interface pseudo-device. it's giving "networking but make it modular" π
πΈ SYNOPSIS πΈ
pseudo-device rport
that's it. that's the whole vibe check. one line. iconic π
π¦ DESCRIPTION π¦
okay so the rport driver hands you point-to-point interfaces for layer 3 connectivity between rdomain(4) instances. lowkey genius β¨
you wanna get two rdomains talking at layer 3? the move is: create an rport interface in each rdomain, then link them together by configuring one of these interfaces as the parent of the other. that's the whole connecting-scheme, no cap π₯
and here's the fun part β you can make rport interfaces at runtime with the ifconfig rportN create command, or by setting up a hostname.if(5) configuration file for netstart(8). either way slays π
the interface itself gets configured with ifconfig(8) β go read its manual page for the deets, iykyk π
π EXAMPLES π
okay bestie here's the actual recipe π β create two rport interfaces in separate rdomain(4) instances and connect them together:
# ifconfig rport0 create rdomain 0 up
# ifconfig rport1 create rdomain 1 parent rport0 up
# ifconfig rport0 inet 192.168.0.0/32 192.168.0.1
# ifconfig rport1 inet 192.168.0.1/32 192.168.0.0
see how rport1 gets parent rport0? that's the glue, bestie π§β¨ and then the inet lines are literally just the two ends of the link. ate. π
π SEE ALSO π
the whole friend group, honestly π
β HISTORY β
the rport driver first appeared in OpenBSD 7.6. a recent king π periodt.
π AUTHORS π
David Gwynne <dlg@openbsd.org>. that's the main character energy right there, we stan ππ
π CAVEATS π
okay before you go wild, read this part, fr fr:
a pair of rport interfaces must be created for each connection between a pair of rdomains. like, every single connection. no shortcuts π
alternatively β and this is the big-brain move β if you need peering between multiple rdomain(4) instances, you can use a single veb(4) interface with a vport(4) interface for each rdomain instead. so basically: two rdomains = rport pair, many rdomains = veb + vports. pick your fighter π¦π₯
so yeah, that's rport. go forth and connect your rdomains, bestie πΈπ«Ά
this page came to you via the Debian source, dated August 31, 2024, and it's filed under RPORT(4) β mwah, love that for us πβ¨
π¦ where this page comes from
- nixpkgs unstable: cvs-export
- Copyright (c) 2024 David Gwynne <dlg@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms