notiz:bird2-debian-buster-installieren
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| notiz:bird2-debian-buster-installieren [2020/11/17 22:18] – clerie | notiz:bird2-debian-buster-installieren [2020/11/18 22:18] (aktuell) – [bird2 bauen und installieren] clerie | ||
|---|---|---|---|
| Zeile 12: | Zeile 12: | ||
| wget https:// | wget https:// | ||
| tar -xf bird-2.0.7.tar.gz | tar -xf bird-2.0.7.tar.gz | ||
| - | ls -al | ||
| cd bird-2.0.7/ | cd bird-2.0.7/ | ||
| ./ | ./ | ||
| Zeile 48: | Zeile 47: | ||
| <code - / | <code - / | ||
| router id 192.168.10.26; | router id 192.168.10.26; | ||
| - | | + | |
| - | ipv6 table ospf6; | + | ipv6 table ospf6; |
| - | ipv6 table bgp6; | + | ipv6 table bgp6; |
| - | | + | |
| - | protocol direct { | + | protocol direct { |
| interface " | interface " | ||
| - | ipv6 { | + | ipv6 { |
| - | table ospf6; | + | table ospf6; |
| - | }; | + | }; |
| - | } | + | } |
| - | | + | |
| - | protocol static { | + | protocol static { |
| ipv6 { | ipv6 { | ||
| table bgp6; | table bgp6; | ||
| Zeile 65: | Zeile 64: | ||
| route fd56: | route fd56: | ||
| route fd56: | route fd56: | ||
| - | } | + | } |
| - | + | ||
| - | protocol kernel { | + | protocol kernel { |
| - | ipv6 { | + | ipv6 { |
| table ospf6; | table ospf6; | ||
| export filter { | export filter { | ||
| krt_prefsrc=fd56: | krt_prefsrc=fd56: | ||
| accept; | accept; | ||
| - | }; | + | }; |
| - | import none; | + | import none; |
| - | }; | + | }; |
| - | kernel table 1337; | + | kernel table 1337; |
| - | } | + | } |
| - | | + | |
| - | protocol kernel { | + | protocol kernel { |
| - | ipv6 { | + | ipv6 { |
| - | table bgp6; | + | table bgp6; |
| export filter { | export filter { | ||
| krt_prefsrc=fd56: | krt_prefsrc=fd56: | ||
| Zeile 87: | Zeile 86: | ||
| }; | }; | ||
| import none; | import none; | ||
| - | }; | + | }; |
| kernel table 2342; | kernel table 2342; | ||
| } | } | ||
| Zeile 147: | Zeile 146: | ||
| </ | </ | ||
| + | ===== forwarding aktivieren ===== | ||
| + | |||
| + | <code / | ||
| + | net.ipv4.ip_forward=1 | ||
| + | net.ipv6.conf.all.forwarding=1 | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | systemctl restart systemd-sysctl | ||
| + | </ | ||
| + | |||
| + | ===== policy based Routing einrichten ===== | ||
| + | |||
| + | <code - / | ||
| + | #!/bin/bash | ||
| + | |||
| + | ip -6 rule flush | ||
| + | ip -6 rule add lookup main prio 32000 | ||
| + | ip -6 rule add from all to fd56: | ||
| + | #ip -6 rule add from fd56: | ||
| + | ip -6 rule add from all to all lookup 2342 prio 10000 | ||
| + | ip -6 rule add from all to fd56: | ||
| + | ip -6 rule add from fd56: | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | chmod +x / | ||
| + | / | ||
| + | </ | ||
notiz/bird2-debian-buster-installieren.1605647899.txt.gz · Zuletzt geändert: von clerie
