documentation:examples:simple_bgp-rip-ospf_lab_with_bird
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
documentation:examples:simple_bgp-rip-ospf_lab_with_bird [2022/02/21 16:11] – [Jail 5] olivier | documentation:examples:simple_bgp-rip-ospf_lab_with_bird [2022/02/21 16:31] – [BGP/OSPF/RIP/BABEL/STATIC lab with bird] olivier | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== BGP/ | + | ====== BGP/ |
This Labs is done from one BSDRP VM and it explains how to use BSDRP using bird 2. | This Labs is done from one BSDRP VM and it explains how to use BSDRP using bird 2. | ||
Line 9: | Line 9: | ||
Here is the logical and physical view: | Here is the logical and physical view: | ||
- | {{: | + | {{: |
===== Router configuration ===== | ===== Router configuration ===== | ||
Line 338: | Line 338: | ||
} | } | ||
- | protocol | + | protocol |
- | ipv4; | + | |
- | route 192.168.50.0/ | + | |
+ | ipv6 { import all; export all;}; | ||
} | } | ||
- | protocol static static6 { | ||
- | ipv6; | ||
- | route 2001: | ||
- | } | ||
EOF | EOF | ||
</ | </ | ||
Line 357: | Line 354: | ||
gateway_enable=YES | gateway_enable=YES | ||
ipv6_gateway_enable=YES | ipv6_gateway_enable=YES | ||
- | ifconfig_epair2b="inet 192.168.45.5/ | + | ifconfig_epair3b="inet 192.168.45.5/ |
- | ifconfig_epair2b_ipv6=" | + | ifconfig_epair3b_ipv6=" |
- | ifconfig_epair3a="inet 192.168.56.5/ | + | ifconfig_epair4a="inet 192.168.56.5/ |
- | ifconfig_epair3a_ipv6=" | + | ifconfig_epair4a_ipv6=" |
bird_enable=yes | bird_enable=yes | ||
EOF | EOF | ||
Line 395: | Line 392: | ||
} | } | ||
- | protocol | + | protocol |
- | protocol ospf v2 ospf4 { | + | |
ipv4 { import all; export all;}; | ipv4 { import all; export all;}; | ||
- | area 0 { | ||
- | interface " | ||
- | }; | ||
- | } | ||
- | |||
- | protocol ospf v3 ospf6 { | ||
ipv6 { import all; export all;}; | ipv6 { import all; export all;}; | ||
- | area 0 { | ||
- | interface " | ||
- | }; | ||
} | } | ||
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 | ||
</ | </ | ||
Line 426: | Line 415: | ||
< | < | ||
- | cat > /etc/jails/jail5/rc.conf << | + | cat > /etc/jails/jail6/rc.conf << |
- | hostname=" | + | hostname=" |
gateway_enable=YES | gateway_enable=YES | ||
ipv6_gateway_enable=YES | ipv6_gateway_enable=YES | ||
cloned_interfaces=lo1 | cloned_interfaces=lo1 | ||
- | ifconfig_epair3b="inet 192.168.45.5/24" | + | ifconfig_epair4b="inet 192.168.56.6/24" |
- | ifconfig_epair3b_ipv6=" | + | ifconfig_epair4b_ipv6=" |
- | ifconfig_lo1=" | + | ifconfig_lo1=" |
- | ifconfig_lo1_ipv6=" | + | ifconfig_lo1_ipv6=" |
bird_enable=yes | bird_enable=yes | ||
EOF | EOF | ||
- | cat > /etc/jails/jail5/ | + | cat > /etc/jails/jail6/ |
# Configure logging | # Configure logging | ||
log syslog all; | log syslog all; | ||
Line 445: | Line 434: | ||
# Override router ID | # Override router ID | ||
- | router id 192.168.10.5; | + | router id 192.168.10.6; |
# Sync bird routing table with kernel | # Sync bird routing table with kernel | ||
Line 470: | Line 459: | ||
protocol static static4 { | protocol static static4 { | ||
ipv4; | ipv4; | ||
- | route 0.0.0.0/0 via 192.168.45.4; | + | route 0.0.0.0/0 via 192.168.56.5; |
} | } | ||
protocol static static6 { | protocol static static6 { | ||
ipv6; | ipv6; | ||
- | route ::/0 via 2001:db8:45::4; | + | route ::/0 via 2001:db8:56::5; |
} | } | ||
documentation/examples/simple_bgp-rip-ospf_lab_with_bird.txt · Last modified: 2022/02/21 17:06 by olivier