Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


lpi2:routing

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

Nächste Überarbeitung
Vorherige Überarbeitung
Nächste Überarbeitung Beide Seiten, nächste Überarbeitung
lpi2:routing [2023/12/05 13:46]
127.0.0.1 Externe Bearbeitung
lpi2:routing [2024/04/15 06:22]
ingo_wichmann [5 Routen]
Zeile 1: Zeile 1:
 +====== 5 Routen ======
 +{{ :​lpi2:​routing5.svg |}}
 +  ip netns add a
 +  ip netns add b1
 +  ip netns add b2
 +  ip netns add c
 +  ip link set dev a0 netns a
 +  ip link add a-b1  type veth peer name b1-a
 +  ip link add a-b2  type veth peer name b2-a
 +  ip link add b1-b2 type veth peer name b2-b1
 +  ip link add b1-c  type veth peer name c-b1
 +  ip link add b2-c  type veth peer name c-b2
 +  ip link set dev c0 netns c
 +  ip link set dev a-b1  netns a
 +  ip link set dev a-b2  netns a
 +  ip link set dev b1-a  netns b1
 +  ip link set dev b1-b2 netns b1
 +  ip link set dev b1-c  netns b1
 +  ip link set dev b2-a  netns b2
 +  ip link set dev b2-b1 netns b2
 +  ip link set dev b2-c  netns b2
 +  ip link set dev c-b1  netns c
 +  ip link set dev c-b2  netns c
 +
 +Terminal a:
 +  ip netns exec a /bin/bash
 +  sysctl -w '​net.ipv6.conf.all.forwarding=1'​
 +  ip link set up dev a-b1
 +  ip link set up dev a-b2
 +  ip link set up dev c0
 +  ip addr add fca::1/64 dev a0
 +  ip addr add fca:​b1::​a/​64 dev a-b1
 +  ip addr add fca:​b2::​a/​64 dev a-b2
 +
 +Terminal b1:
 +  ip netns exec b1 /bin/bash
 +  sysctl -w '​net.ipv6.conf.all.forwarding=1'​
 +  ip link set up dev b1-a
 +  ip addr add fca:​b1::​b1/​64 dev b1-a
 +  ip addr add fcb1:​b2::​b1/​64 dev b1-b2
 +  ip addr add fcb1:​c::​b1/​64 dev b1-c
 +  ping -qc1 fca:b1::a
 +
 +Terminal b2:
 +  ip netns exec b2 /bin/bash
 +  sysctl -w '​net.ipv6.conf.all.forwarding=1'​
 +  ip link set up dev b2-a
 +  ip addr add fca:​b1::​b2/​64 dev b2-a
 +  ip addr add fcb1:​b2::​b2/​64 dev b2-b1
 +  ip addr add fcb1:​c::​b2/​64 dev b2-c
 +  ping -qc1 fca:b2::a
 +
 +Terminal c:
 +  ip netns exec c /bin/bash
 +  sysctl -w '​net.ipv6.conf.all.forwarding=1'​
 +  ip link set up dev c-b1
 +  ip link set up dev c-b2
 +  ip link set up dev c0
 +  ip addr add fcb1:​c::​c/​64 dev c-b1
 +  ip addr add fcb2:​c::​c/​64 dev c-b2
 +  ip addr add fcc::1/64 dev c0
 +  ping -qc1 fcb1:c::b1
 +  ping -qc1 fcb2:c::b2
 +
 +====== 8 Routen ======
 +
 {{:​fortgeschrittene:​pasted:​20230818-145100.png}} {{:​fortgeschrittene:​pasted:​20230818-145100.png}}
   ip netns add a   ip netns add a
lpi2/routing.txt · Zuletzt geändert: 2024/04/28 09:52 (Externe Bearbeitung)