aboutsummaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2025-06-20 18:12:28 +0000
committeralexpdp7 <alex@corcoles.net>2025-06-20 20:27:28 +0200
commit3d5e3ac72b843d102ec750e524c66a294f107691 (patch)
treefb7e78c47592758be21c800893ae39c0dc5b766a /linux
parentf2409785ac02845908d7cd9476cc33991f44c624 (diff)
Add instructions to connect remote hosts
Diffstat (limited to 'linux')
-rw-r--r--linux/remote-networking.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/linux/remote-networking.md b/linux/remote-networking.md
new file mode 100644
index 00000000..dac35083
--- /dev/null
+++ b/linux/remote-networking.md
@@ -0,0 +1,24 @@
+# Remote networking
+
+If you can create a pipe between two hosts (using SSH, for example), you can use VDE (Virtual Distributed Ethernet) to connect the two hosts over a virtual network.
+
+You need the following programs on both hosts:
+
+* `dpipe` and `vde_plug` (on Debian, use the `vdeplug` package)
+* `vde-switch` (on Debian, use the `vde-switch` package)
+
+Run `vde_switch -t tap0` as root on both hosts.
+This command creates a virtual switch connected to `tap0`.
+
+Use the `dpipe` command to connect two instances of the `vde_plug` command running as root on both hosts.
+
+```console
+$ dpipe sudo vde_plug = ssh root@remote vde_plug
+```
+
+Then bring the `tap0` interface up and configure IP addresses on both hosts.
+
+```console
+# ip link set tap0 up
+# ip addr add $IP/$NETMASK dev tap0
+```