User Tools

Site Tools


documentation:examples:simple_bgp-rip-ospf_lab

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
documentation:examples:simple_bgp-rip-ospf_lab [2020/09/22 22:16] – [Router 6] olivierdocumentation: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:examples:How to build a BSDRP router lab]]. More information on these BSDRP lab scripts available on [[documentation:examples:How to build a BSDRP router lab]].
  
-Start the lab with 5 routers, here is an example with VirtualBox: 
  
-<code>./BSDRP-lab-vbox.sh -i BSDRP-1.91-full-amd64-serial.img.xz -n 7</code> 
  
 ===== 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:
 +
 +<code>./BSDRP-lab-vbox.sh -i BSDRP-1.97-full-amd64-serial.img.xz -n 7</code>
 +
 +Then on each:
 <code> <code>
 labconfig frr_vm[VM-NUMBER] labconfig frr_vm[VM-NUMBER]
 +</code>
 +
 +=== Jail mode: 1 VM running 7 jails ===
 +
 +
 +Or just using one router:
 +<code>./BSDRP-lab-vbox.sh -i BSDRP-1.97-full-amd64-serial.img.xz -n 1</code>
 +
 +
 +Then you can use the jail/vnet version with command:
 +<code>
 +labconfig frr_jails
 </code> </code>
 ==== Router 1 ==== ==== Router 1 ====
  
 <code> <code>
-sysrc hostname=router1 +sysrc hostname=router1 \ 
-sysrc cloned_interfaces=lo1 +  cloned_interfaces=lo1 \ 
-sysrc ipsec_enable=YES +  ipsec_enable=YES \ 
-sysrc ipsec_file="/etc/ipsec.conf" +  ipsec_file="/etc/ipsec.conf" \ 
-sysrc frr_enable=yes+  frr_vtysh_boot=YES \ 
 +  frr_enable=yes
 cat <<EOF > /etc/ipsec.conf cat <<EOF > /etc/ipsec.conf
 flush ; flush ;
Line 383: Line 401:
 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:db8:67::6 ipv6 route ::/0 2001:db8:67::6
-! 
-interface em5 
- ip address 192.168.67.7/24 
- ipv6 address 2001:db8:57::7/64 
 ! !
 interface lo1 interface lo1
Line 418: Line 432:
 round-trip min/avg/max/stddev = 0.541/0.555/0.580/0.016 ms round-trip min/avg/max/stddev = 0.541/0.555/0.580/0.016 ms
  
-[root@router1]~# ping6 -c 4 -S 2001:db8:10::1 2001:db8:70::7+[root@router1]~# ping -c 4 -S 2001:db8:10::1 2001:db8:70::7
 PING6(56=40+8+8 bytes) 2001:db8:10::1 --> 2001:db8:70::7 PING6(56=40+8+8 bytes) 2001:db8:10::1 --> 2001:db8:70::7
 16 bytes from 2001:db8:70::7, icmp_seq=0 hlim=59 time=0.607 ms 16 bytes from 2001:db8:70::7, icmp_seq=0 hlim=59 time=0.607 ms
documentation/examples/simple_bgp-rip-ospf_lab.1600805804.txt.gz · Last modified: 2020/09/22 22:16 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