User Tools

Site Tools


documentation:examples:simple_bgp-rip-ospf_lab_with_bird

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
documentation:examples:simple_bgp-rip-ospf_lab_with_bird [2020/12/16 23:13] – [Host] olivierdocumentation:examples:simple_bgp-rip-ospf_lab_with_bird [2022/02/21 16:13] – [Jail 5] olivier
Line 336: Line 336:
     interface "epair2b" {};     interface "epair2b" {};
     };     };
 +}
 +
 +protocol babel {
 +  interface "epair3a" { type wired; };
 +  ipv4 { import all; export all;};
 +  ipv6 { import all; export all;};
 +}
 +
 +EOF
 +</code>
 +
 +==== Jail 5 ====
 +
 +<code>
 +cat > /etc/jails/jail5/rc.conf <<EOF
 +hostname="jail5"
 +gateway_enable=YES
 +ipv6_gateway_enable=YES
 +ifconfig_epair2b="inet 192.168.45.5/24"
 +ifconfig_epair2b_ipv6="inet6 2001:db8:45::5/64"
 +ifconfig_epair3a="inet 192.168.56.5/24"
 +ifconfig_epair3a_ipv6="inet6 2001:db8:56::5/64"
 +bird_enable=yes
 +EOF
 +
 +cat > /etc/jails/jail5/local/bird.conf <<EOF
 +# Configure logging
 +log syslog all;
 +log "/var/log/bird.log" all;
 +log stderr all;
 +
 +# Override router ID
 +router id 192.168.10.5;
 +
 +# Sync bird routing table with kernel
 +protocol kernel kernel4 {
 +    ipv4 {
 +        export all;
 +    };
 +}
 +protocol kernel kernel6 {
 +    ipv6 {
 +        export all;
 +    };
 +}
 +
 +protocol device {
 +        scan time 10;
 +}
 +
 +# Include directly connected networks
 +protocol direct {
 +        ipv4;
 +        ipv6;
 } }
  
 protocol static static4 { protocol static static4 {
     ipv4;     ipv4;
-    route 192.168.50.0/24 via 192.168.45.5;+    route 192.168.60.0/24 via 192.168.56.6;
 } }
  
 protocol static static6 { protocol static static6 {
     ipv6;     ipv6;
-    route 2001:db8:50::/64 via 2001:db8:45::5;+    route 2001:db8:60::/64 via 2001:db8:56::6;
 } }
 +
 EOF EOF
 </code> </code>
  
-==== Jail ====+ 
 +==== Jail ====
  
 <code> <code>
documentation/examples/simple_bgp-rip-ospf_lab_with_bird.txt · Last modified: 2022/02/21 17:06 by olivier

Except where otherwise noted, content on this wiki is licensed under the following license: BSD 2-Clause
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki