User Tools

Site Tools


documentation:examples:pf_and_carp_lab

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
documentation:examples:pf_and_carp_lab [2017/07/07 00:52] – external edit 127.0.0.1documentation:examples:pf_and_carp_lab [2021/11/25 13:54] – [Backup Firewall (VM3)] olivier
Line 15: Line 15:
 BSD Router Project (http://bsdrp.net) - bhyve full-meshed lab script BSD Router Project (http://bsdrp.net) - bhyve full-meshed lab script
 Setting-up a virtual lab with 4 VM(s): Setting-up a virtual lab with 4 VM(s):
-- Working directory: /tmp/BSDRP +- Working directory: /root/BSDRP-VMs 
-- Each VM have core(s) and 256M RAM+- Each VM has a total of 1 (1 cores and 1 threads) and 512M RAM 
 +- Emulated NIC: virtio-net 
 +- Switch mode: bridge + tap
 - 2 LAN(s) between all VM - 2 LAN(s) between all VM
 - Full mesh Ethernet links between each VM - Full mesh Ethernet links between each VM
-VM 1 have the following NIC: +VM 1 has the following NIC: 
-- vtnet0 connected to VM 2. +- vtnet0 connected to VM 2 
-- vtnet1 connected to VM 3. +- vtnet1 connected to VM 3 
-- vtnet2 connected to VM 4.+- vtnet2 connected to VM 4
 - vtnet3 connected to LAN number 1 - vtnet3 connected to LAN number 1
 - vtnet4 connected to LAN number 2 - vtnet4 connected to LAN number 2
-VM 2 have the following NIC: +VM 2 has the following NIC: 
-- vtnet0 connected to VM 1. +- vtnet0 connected to VM 1 
-- vtnet1 connected to VM 3. +- vtnet1 connected to VM 3 
-- vtnet2 connected to VM 4.+- vtnet2 connected to VM 4
 - vtnet3 connected to LAN number 1 - vtnet3 connected to LAN number 1
 - vtnet4 connected to LAN number 2 - vtnet4 connected to LAN number 2
-VM 3 have the following NIC: +VM 3 has the following NIC: 
-- vtnet0 connected to VM 1. +- vtnet0 connected to VM 1 
-- vtnet1 connected to VM 2. +- vtnet1 connected to VM 2 
-- vtnet2 connected to VM 4.+- vtnet2 connected to VM 4
 - vtnet3 connected to LAN number 1 - vtnet3 connected to LAN number 1
 - vtnet4 connected to LAN number 2 - vtnet4 connected to LAN number 2
-VM 4 have the following NIC: +VM 4 has the following NIC: 
-- vtnet0 connected to VM 1. +- vtnet0 connected to VM 1 
-- vtnet1 connected to VM 2. +- vtnet1 connected to VM 2 
-- vtnet2 connected to VM 3.+- vtnet2 connected to VM 3
 - vtnet3 connected to LAN number 1 - vtnet3 connected to LAN number 1
 - vtnet4 connected to LAN number 2 - vtnet4 connected to LAN number 2
-For connecting to VM'serial console, you can use: +To connect VM'serial console, you can use: 
-- VM 1 : cu -l /dev/nmdm1B +- VM 1 : cu -l /dev/nmdm-BSDRP.1B 
-- VM 2 : cu -l /dev/nmdm2B +- VM 2 : cu -l /dev/nmdm-BSDRP.2B 
-- VM 3 : cu -l /dev/nmdm3B +- VM 3 : cu -l /dev/nmdm-BSDRP.3B 
-- VM 4 : cu -l /dev/nmdm4B+- VM 4 : cu -l /dev/nmdm-BSDRP.4B
 </code> </code>
  
Line 131: Line 133:
 sysrc ifconfig_vtnet4="inet 2.2.2.3/24" sysrc ifconfig_vtnet4="inet 2.2.2.3/24"
 sysrc ifconfig_vtnet4_ipv6="inet6 2001:db8:2:2:2::3 prefixlen 64" sysrc ifconfig_vtnet4_ipv6="inet6 2001:db8:2:2:2::3 prefixlen 64"
-sysrc ifconfig_vtnet4_alias0="inet 10.0.0.254/32 vhid 3 advskew 200 pass testpass42"+sysrc ifconfig_vtnet4_alias0="inet 2.2.2.254/32 vhid 3 advskew 200 pass testpass42"
 sysrc ifconfig_vtnet4_alias1="inet6 2001:db8:2:2:2::fe prefixlen 128 vhid 4 advskew 200 pass testpass62" sysrc ifconfig_vtnet4_alias1="inet6 2001:db8:2:2:2::fe prefixlen 128 vhid 4 advskew 200 pass testpass62"
 sysrc pf_enable=YES sysrc pf_enable=YES
documentation/examples/pf_and_carp_lab.txt · Last modified: 2021/11/25 14:04 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