User Tools

Site Tools


documentation:examples:ecmp

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
Next revisionBoth sides next revision
documentation:examples:ecmp [2019/11/01 08:49] – [VM 2 (ECMP router)] olivierdocumentation:examples:ecmp [2020/01/14 01:22] – [VM 2 (ECMP router)] olivier
Line 84: Line 84:
  
 <code> <code>
-sysrc hostname=VM1 +sysrc hostname=VM1 \ 
-sysrc gateway_enable=NO + gateway_enable=NO \ 
-sysrc ipv6_gateway_enable=NO + ipv6_gateway_enable=NO \ 
-sysrc ifconfig_vtnet0="inet 10.0.12.1/24" + ifconfig_vtnet0="inet 10.0.12.1/24" \ 
-sysrc ifconfig_vtnet0_alias1="inet 10.0.12.11/32" + ifconfig_vtnet0_alias1="inet 10.0.12.11/32" \ 
-sysrc ifconfig_vtnet0_alias2="inet 10.0.12.21/32" + ifconfig_vtnet0_alias2="inet 10.0.12.21/32" \ 
-sysrc ifconfig_vtnet0_alias3="inet 10.0.12.31/32" + ifconfig_vtnet0_alias3="inet 10.0.12.31/32" \ 
-sysrc ifconfig_vtnet0_alias4="inet 10.0.12.41/32" + ifconfig_vtnet0_alias4="inet 10.0.12.41/32" \ 
-sysrc ifconfig_vtnet0_alias5="inet 10.0.12.51/32" + ifconfig_vtnet0_alias5="inet 10.0.12.51/32" \ 
-sysrc ifconfig_vtnet0_ipv6="inet6 2001:db8:12::1 prefixlen 64" + ifconfig_vtnet0_ipv6="inet6 2001:db8:12::1 prefixlen 64" \ 
-sysrc ifconfig_vtnet0_alias61="inet6 2001:db8:12::11 prefixlen 64" + ifconfig_vtnet0_alias61="inet6 2001:db8:12::11 prefixlen 64" \ 
-sysrc ifconfig_vtnet0_alias62="inet6 2001:db8:12::21 prefixlen 64" + ifconfig_vtnet0_alias62="inet6 2001:db8:12::21 prefixlen 64" \ 
-sysrc ifconfig_vtnet0_alias63="inet6 2001:db8:12::31 prefixlen 64" + ifconfig_vtnet0_alias63="inet6 2001:db8:12::31 prefixlen 64" \ 
-sysrc ifconfig_vtnet0_alias64="inet6 2001:db8:12::41 prefixlen 64" + ifconfig_vtnet0_alias64="inet6 2001:db8:12::41 prefixlen 64" \ 
-sysrc ifconfig_vtnet0_alias65="inet6 2001:db8:12::51 prefixlen 64" + ifconfig_vtnet0_alias65="inet6 2001:db8:12::51 prefixlen 64" \ 
-sysrc defaultrouter="10.0.12.2" + defaultrouter="10.0.12.2" \ 
-sysrc ipv6_defaultrouter="2001:db8:12::2"+ ipv6_defaultrouter="2001:db8:12::2"
 service hostname restart service hostname restart
 service netif restart service netif restart
Line 113: Line 113:
  
 <code> <code>
-sysrc hostname=VM2 +sysrc hostname=VM2 \ 
-sysrc ifconfig_vtnet0="inet 10.0.12.2/24" + ifconfig_vtnet0="inet 10.0.12.2/24" \ 
-sysrc ifconfig_vtnet1="inet 10.0.23.2/24" + ifconfig_vtnet1="inet 10.0.23.2/24" \ 
-sysrc ifconfig_vtnet2="inet 10.0.24.2/24" + ifconfig_vtnet2="inet 10.0.24.2/24" \ 
-sysrc ifconfig_vtnet0_ipv6="inet6 2001:db8:12::2 prefixlen 64" + ifconfig_vtnet0_ipv6="inet6 2001:db8:12::2 prefixlen 64" \ 
-sysrc ifconfig_vtnet1_ipv6="inet6 2001:db8:23::2 prefixlen 64" + ifconfig_vtnet1_ipv6="inet6 2001:db8:23::2 prefixlen 64" \ 
-sysrc ifconfig_vtnet2_ipv6="inet6 2001:db8:24::2 prefixlen 64" + ifconfig_vtnet2_ipv6="inet6 2001:db8:24::2 prefixlen 64" \ 
-sysrc static_routes="VM3VM6 VM3VM5 VM4VM6 VM4VM5" + static_routes="VM3VM6 VM3VM5 VM4VM6 VM4VM5" \ 
-sysrc route_VM3VM6="-net 10.0.56.0/24 10.0.23.3" + route_VM3VM6="-net 10.0.56.0/24 10.0.23.3" \ 
-sysrc route_VM3VM5="-net 10.0.35.0/24 10.0.23.3" + route_VM3VM5="-net 10.0.35.0/24 10.0.23.3" \ 
-sysrc route_VM4VM6="-net 10.0.56.0/24 10.0.24.4" + route_VM4VM6="-net 10.0.56.0/24 10.0.24.4" \ 
-sysrc route_VM4VM5="-net 10.0.45.0/24 10.0.24.4" + route_VM4VM5="-net 10.0.45.0/24 10.0.24.4" \ 
-sysrc ipv6_static_routes="VM3VM6 VM3VM5 VM4VM6 VM4VM5" + ipv6_static_routes="VM3VM6 VM3VM5 VM4VM6 VM4VM5" \ 
-sysrc ipv6_route_VM3VM6="2001:db8:56:: -prefixlen 64 2001:db8:23::3" + ipv6_route_VM3VM6="2001:db8:56:: -prefixlen 64 2001:db8:23::3" \ 
-sysrc ipv6_route_VM3VM5="2001:db8:35:: -prefixlen 64 2001:db8:23::3" + ipv6_route_VM3VM5="2001:db8:35:: -prefixlen 64 2001:db8:23::3" \ 
-sysrc ipv6_route_VM4VM6="2001:db8:56:: -prefixlen 64 2001:db8:24::4" + ipv6_route_VM4VM6="2001:db8:56:: -prefixlen 64 2001:db8:24::4" \ 
-sysrc ipv6_route_VM4VM5="2001:db8:45:: -prefixlen 64 2001:db8:24::4"+ ipv6_route_VM4VM5="2001:db8:45:: -prefixlen 64 2001:db8:24::4"
 sed -i '' -e '/net.inet.ip.redirect=0/d' /etc/sysctl.conf sed -i '' -e '/net.inet.ip.redirect=0/d' /etc/sysctl.conf
 sed -i '' -e '/net.inet6.ip6.redirect=0/d' /etc/sysctl.conf sed -i '' -e '/net.inet6.ip6.redirect=0/d' /etc/sysctl.conf
documentation/examples/ecmp.txt · Last modified: 2024/03/28 23:19 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