diff options
| author | alex <alex@pdp7.net> | 2026-02-22 13:11:13 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2026-02-22 13:11:13 +0100 |
| commit | fbc54c0b5ae6aed4f6dd64235ff66836ac42cf63 (patch) | |
| tree | 4464b4ab367c82c686826be36531fc052ea7b1f1 | |
| parent | 6db817a76447f015c69a6e00d686e637f47d3574 (diff) | |
Move remote networking notes to misc Linux stuff
| -rw-r--r-- | blog/content/notes/tech/misc_linux_stuff.gmi | 30 | ||||
| -rw-r--r-- | linux/remote-networking.md | 24 |
2 files changed, 30 insertions, 24 deletions
diff --git a/blog/content/notes/tech/misc_linux_stuff.gmi b/blog/content/notes/tech/misc_linux_stuff.gmi index 87569146..a5521f1f 100644 --- a/blog/content/notes/tech/misc_linux_stuff.gmi +++ b/blog/content/notes/tech/misc_linux_stuff.gmi @@ -84,3 +84,33 @@ Maps: * Left pedal to be a ctrl key * Center pedal to the toggle mute key * Right pedal to be Win+M (you can map this in Gnome to toggle mic status) + +## 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 as root on both hosts: + +``` +vde_switch -t tap0 +``` + +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. + +``` +$ dpipe sudo vde_plug = ssh root@remote vde_plug +``` + +Then bring the tap0 interface up and configure IP addresses on both hosts. + +``` +# ip link set tap0 up +# ip addr add $IP/$NETMASK dev tap0 +``` diff --git a/linux/remote-networking.md b/linux/remote-networking.md deleted file mode 100644 index dac35083..00000000 --- a/linux/remote-networking.md +++ /dev/null @@ -1,24 +0,0 @@ -# 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 -``` |
