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 revision | ||
| documentation:examples:simple_bgp-rip-ospf_lab [2019/08/10 14:15] – [Router 5] olivier | documentation:examples:simple_bgp-rip-ospf_lab [2023/05/01 07:03] (current) – [Final testing] 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 ==== | ||
| < | < | ||
| - | sysrc hostname=router1 | + | sysrc hostname=router1 |
| - | sysrc cloned_interfaces=lo1 | + | cloned_interfaces=lo1 |
| - | sysrc ipsec_enable=YES | + | ipsec_enable=YES |
| - | sysrc ipsec_file="/ | + | ipsec_file="/ |
| - | sysrc frr_enable=yes | + | |
| + | | ||
| cat <<EOF > / | cat <<EOF > / | ||
| flush ; | flush ; | ||
| Line 48: | Line 66: | ||
| cat > / | cat > / | ||
| log syslog | log syslog | ||
| - | ! | ||
| - | interface em0 | ||
| - | ip address 192.168.12.1/ | ||
| - | ipv6 address 2001: | ||
| ! | ! | ||
| interface lo1 | interface lo1 | ||
| Line 84: | Line 98: | ||
| bfd | bfd | ||
| peer 2001: | peer 2001: | ||
| - | label router2-6 | ||
| no shutdown | no shutdown | ||
| ! | ! | ||
| peer 192.168.12.2 | peer 192.168.12.2 | ||
| - | label router2-4 | ||
| no shutdown | no shutdown | ||
| ! | ! | ||
| Line 121: | Line 133: | ||
| 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 143: | Line 145: | ||
| ! | ! | ||
| router rip | router rip | ||
| - | | ||
| | | ||
| | | ||
| Line 150: | Line 151: | ||
| ! | ! | ||
| router ripng | router ripng | ||
| - | | ||
| | | ||
| | | ||
| Line 181: | Line 181: | ||
| 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 209: | Line 207: | ||
| 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 237: | Line 222: | ||
| ! | ! | ||
| router rip | router rip | ||
| - | | ||
| | | ||
| | | ||
| Line 244: | Line 228: | ||
| ! | ! | ||
| router ripng | router ripng | ||
| - | | ||
| | | ||
| | | ||
| Line 260: | Line 243: | ||
| | | ||
| | | ||
| - | | ||
| ! | ! | ||
| 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 284: | Line 265: | ||
| 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 323: | Line 290: | ||
| | | ||
| | | ||
| - | | ||
| | | ||
| ! | ! | ||
| Line 336: | Line 302: | ||
| 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 358: | Line 322: | ||
| 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 390: | Line 339: | ||
| ! | ! | ||
| router babel | router babel | ||
| - | | ||
| | | ||
| - | | ||
| | | ||
| | | ||
| Line 415: | Line 362: | ||
| sysrc hostname=router6 | sysrc hostname=router6 | ||
| sysrc frr_enable=YES | sysrc frr_enable=YES | ||
| - | cat > / | + | cat > / |
| log syslog | log syslog | ||
| - | interface em4 | + | ! |
| - | | + | ip route 192.168.70.0/24 192.168.67.7 |
| - | | + | ipv6 route 2001:db8:70::/64 2001: |
| + | ! | ||
| interface vtnet4 | interface vtnet4 | ||
| ip address 192.168.56.6/ | ip address 192.168.56.6/ | ||
| ipv6 address 2001: | ipv6 address 2001: | ||
| - | interface em5 | + | ! |
| - | ip address 192.168.67.6/ | + | |
| - | ipv6 address 2001: | + | |
| interface vtnet5 | interface vtnet5 | ||
| ip address 192.168.67.6/ | ip address 192.168.67.6/ | ||
| ipv6 address 2001: | ipv6 address 2001: | ||
| - | EOF | + | ! |
| - | cat > / | + | |
| router babel | router babel | ||
| - | | ||
| | | ||
| | | ||
| Line 438: | Line 382: | ||
| | | ||
| | | ||
| - | EOF | + | ! |
| - | cat > / | + | |
| - | ip route 192.168.70.0/ | + | |
| - | ipv6 route 2001: | + | |
| EOF | EOF | ||
| hostname router6 | hostname router6 | ||
| service netif restart | service netif restart | ||
| service frr start | service frr start | ||
| + | config save | ||
| </ | </ | ||
| Line 454: | Line 396: | ||
| sysrc cloned_interfaces=lo1 | sysrc cloned_interfaces=lo1 | ||
| sysrc frr_enable=YES | sysrc frr_enable=YES | ||
| - | cat > / | + | cat > / |
| log syslog | log syslog | ||
| - | interface em5 | + | ! |
| - | | + | ip route 0.0.0.0/0 192.168.67.6 |
| - | ipv6 address 2001: | + | ipv6 route ::/0 2001: |
| - | interface vtnet5 | + | ! |
| - | ip address | + | |
| - | | + | |
| interface lo1 | interface lo1 | ||
| ip address 192.168.70.7/ | ip address 192.168.70.7/ | ||
| ipv6 address 2001: | ipv6 address 2001: | ||
| - | EOF | + | ! |
| - | cat > / | + | interface vtnet5 |
| - | ip route 0.0.0.0/ | + | |
| - | ipv6 route ::/0 2001: | + | |
| + | ! | ||
| EOF | EOF | ||
| hostname router7 | hostname router7 | ||
| service netif restart | service netif restart | ||
| service frr start | service frr start | ||
| + | config save | ||
| </ | </ | ||
| ===== Final testing ===== | ===== Final testing ===== | ||
| Line 490: | Line 432: | ||
| round-trip min/ | round-trip min/ | ||
| - | [root@router1]~# | + | [root@router1]~# |
| PING6(56=40+8+8 bytes) 2001: | PING6(56=40+8+8 bytes) 2001: | ||
| 16 bytes from 2001: | 16 bytes from 2001: | ||
documentation/examples/simple_bgp-rip-ospf_lab.1565439310.txt.gz · Last modified: 2019/08/10 14:15 by olivier
