documentation:examples:pf_and_carp_lab
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
documentation:examples:pf_and_carp_lab [2017/07/07 00:52] – external edit 127.0.0.1 | documentation:examples:pf_and_carp_lab [2021/11/25 13:54] – [Backup Firewall (VM3)] olivier | ||
---|---|---|---|
Line 15: | Line 15: | ||
BSD Router Project (http:// | BSD Router Project (http:// | ||
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 1 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' | + | To connect |
- | - 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 |
</ | </ | ||
Line 131: | Line 133: | ||
sysrc ifconfig_vtnet4=" | sysrc ifconfig_vtnet4=" | ||
sysrc ifconfig_vtnet4_ipv6=" | sysrc ifconfig_vtnet4_ipv6=" | ||
- | sysrc ifconfig_vtnet4_alias0=" | + | sysrc ifconfig_vtnet4_alias0=" |
sysrc ifconfig_vtnet4_alias1=" | sysrc ifconfig_vtnet4_alias1=" | ||
sysrc pf_enable=YES | sysrc pf_enable=YES |
documentation/examples/pf_and_carp_lab.txt · Last modified: 2021/11/25 14:04 by olivier