#!/bin/bash sudo ip addr add 20.0.0.5/8 dev eth1 ip addr show eth1 sudo sysctl net.ipv4.ip_forward=1 cat /proc/sys/net/ipv4/ip_forward # zebra config nc 127.0.0.1 2601 <<'EOF' zebra enable zebra configure terminal interface eth1 ip address 20.0.0.5/8 ipv6 nd suppress-ra no shutdown interface eth2 ip address 30.0.0.5/8 ipv6 nd suppress-ra no shutdown show running-config exit quit EOF # ripd config nc 127.0.0.1 2602 <<'EOF' zebra enable configure terminal router rip network 20.0.0.0/8 network eth1 network 30.0.0.0/8 network eth2 version 1 exit interface eth1 # split-horizon Aktiveren mit no vor dem Befehl; wichtig im interface-Kontext ausführen! # ip rip split-horizon # deaktivieren no ip rip split-horizon # split-horizon mit poison reverse aktivieren # ip rip split-horizon poisoned-reverse # deaktivieren # no ip rip split-horizon poisoned-reverse exit EOF