documentation:examples:simple_bgp-rip-ospf_lab
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 [2020/09/22 22:14] – [Router 1] olivier | documentation:examples:simple_bgp-rip-ospf_lab [2020/11/10 22:44] – [Routers configuration] olivier | ||
---|---|---|---|
Line 20: | Line 20: | ||
More information on these BSDRP lab scripts available on [[documentation: | More information on these BSDRP lab scripts available on [[documentation: | ||
- | Start the lab with 5 routers, here is an example with VirtualBox: | ||
- | < | ||
===== Routers configuration ===== | ===== Routers configuration ===== | ||
+ | === VM mode: 7 VMs === | ||
All these routers can be configured with labconfig tool (use it only on a lab, because it will replace your current running configuration): | All these routers can be configured with labconfig tool (use it only on a lab, because it will replace your current running configuration): | ||
+ | |||
+ | Start the lab with 7 routers, here is an example with VirtualBox: | ||
+ | |||
+ | < | ||
+ | |||
+ | Then on each: | ||
< | < | ||
labconfig frr_vm[VM-NUMBER] | labconfig frr_vm[VM-NUMBER] | ||
+ | </ | ||
+ | |||
+ | === Jail mode: 1 VM running 7 jails === | ||
+ | |||
+ | |||
+ | Or just using one router: | ||
+ | < | ||
+ | |||
+ | |||
+ | Then you can use the jail/vnet version with command: | ||
+ | < | ||
+ | labconfig frr_jails | ||
</ | </ | ||
==== Router 1 ==== | ==== Router 1 ==== | ||
Line 115: | Line 132: | ||
key 1 | key 1 | ||
key-string rippassword | key-string rippassword | ||
- | ! | ||
- | interface em0 | ||
- | ip address 192.168.12.2/ | ||
- | ipv6 address 2001: | ||
- | ! | ||
- | interface em1 | ||
- | ip address 192.168.23.2/ | ||
- | ip rip authentication key-chain rippass | ||
- | ip rip authentication mode md5 | ||
- | ipv6 address 2001: | ||
! | ! | ||
interface vtnet0 | interface vtnet0 | ||
Line 137: | Line 144: | ||
! | ! | ||
router rip | router rip | ||
- | | ||
| | ||
| | ||
Line 144: | Line 150: | ||
! | ! | ||
router ripng | router ripng | ||
- | | ||
| | ||
| | ||
Line 175: | Line 180: | ||
bfd | bfd | ||
peer 192.168.12.1 | peer 192.168.12.1 | ||
- | label router1-4 | ||
no shutdown | no shutdown | ||
! | ! | ||
peer 2001: | peer 2001: | ||
- | label router1-6 | ||
no shutdown | no shutdown | ||
! | ! | ||
Line 203: | Line 206: | ||
key 1 | key 1 | ||
key-string rippassword | key-string rippassword | ||
- | ! | ||
- | interface em1 | ||
- | ip address 192.168.23.3/ | ||
- | ip rip authentication key-chain rippass | ||
- | ip rip authentication mode md5 | ||
- | ipv6 address 2001: | ||
- | ! | ||
- | interface em2 | ||
- | ip address 192.168.34.3/ | ||
- | ip ospf bfd | ||
- | ip ospf message-digest-key 1 md5 superpass | ||
- | ipv6 address 2001: | ||
- | ipv6 ospf6 bfd | ||
! | ! | ||
interface vtnet1 | interface vtnet1 | ||
Line 231: | Line 221: | ||
! | ! | ||
router rip | router rip | ||
- | | ||
| | ||
| | ||
Line 238: | Line 227: | ||
! | ! | ||
router ripng | router ripng | ||
- | | ||
| | ||
| | ||
Line 254: | Line 242: | ||
| | ||
| | ||
- | | ||
! | ! | ||
bfd | bfd | ||
peer 2001: | peer 2001: | ||
- | label router4-6 | ||
no shutdown | no shutdown | ||
! | ! | ||
peer 192.168.34.4 | peer 192.168.34.4 | ||
- | label router4-4 | ||
no shutdown | no shutdown | ||
! | ! | ||
! | ! | ||
EOF | EOF | ||
+ | |||
hostname router3 | hostname router3 | ||
service frr start | service frr start | ||
Line 278: | Line 264: | ||
cat > / | cat > / | ||
log syslog | log syslog | ||
- | ! | ||
- | interface em2 | ||
- | ip address 192.168.34.4/ | ||
- | ip ospf bfd | ||
- | ip ospf message-digest-key 1 md5 superpass | ||
- | ipv6 address 2001: | ||
- | ipv6 ospf6 bfd | ||
- | ! | ||
- | interface em3 | ||
- | ip address 192.168.45.4/ | ||
- | ip router isis BSDRP | ||
- | ipv6 address 2001: | ||
- | ipv6 router isis BSDRP | ||
- | isis circuit-type level-2-only | ||
! | ! | ||
interface vtnet2 | interface vtnet2 | ||
Line 317: | Line 289: | ||
| | ||
| | ||
- | | ||
| | ||
! | ! | ||
Line 330: | Line 301: | ||
bfd | bfd | ||
peer 2001: | peer 2001: | ||
- | label router3-6 | ||
no shutdown | no shutdown | ||
! | ! | ||
peer 192.168.34.3 | peer 192.168.34.3 | ||
- | label router3-4 | ||
no shutdown | no shutdown | ||
! | ! | ||
Line 352: | Line 321: | ||
cat > / | cat > / | ||
log syslog | log syslog | ||
- | ! | ||
- | interface em3 | ||
- | ip address 192.168.45.5/ | ||
- | ip router isis BSDRP | ||
- | ipv6 address 2001: | ||
- | ipv6 router isis BSDRP | ||
- | isis circuit-type level-2-only | ||
- | ! | ||
- | interface em4 | ||
- | ip address 192.168.56.5/ | ||
- | ip router isis BSDRP | ||
- | ipv6 address 2001: | ||
- | ipv6 router isis BSDRP | ||
- | isis circuit-type level-2-only | ||
- | isis passive | ||
! | ! | ||
interface vtnet3 | interface vtnet3 | ||
Line 384: | Line 338: | ||
! | ! | ||
router babel | router babel | ||
- | | ||
| | ||
- | | ||
| | ||
| | ||
Line 414: | Line 366: | ||
ip route 192.168.70.0/ | ip route 192.168.70.0/ | ||
ipv6 route 2001: | ipv6 route 2001: | ||
- | ! | ||
- | interface em4 | ||
- | ip address 192.168.56.6/ | ||
- | ipv6 address 2001: | ||
- | ! | ||
- | interface em5 | ||
- | ip address 192.168.67.6/ | ||
- | ipv6 address 2001: | ||
! | ! | ||
interface vtnet4 | interface vtnet4 | ||
Line 432: | Line 376: | ||
! | ! | ||
router babel | router babel | ||
- | | ||
| | ||
| | ||
Line 457: | Line 400: | ||
ip route 0.0.0.0/0 192.168.67.6 | ip route 0.0.0.0/0 192.168.67.6 | ||
ipv6 route ::/0 2001: | ipv6 route ::/0 2001: | ||
- | ! | ||
- | interface em5 | ||
- | ip address 192.168.67.7/ | ||
- | ipv6 address 2001: | ||
! | ! | ||
interface lo1 | interface lo1 |
documentation/examples/simple_bgp-rip-ospf_lab.txt · Last modified: 2023/05/01 07:03 by olivier