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/10/30 15:40] – [Testing Load balancing] olivierdocumentation:examples:ecmp [2020/01/14 01:22] – [VM 1 (client)] 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 140: Line 140:
 </code> </code>
  
 +And first problem using static route:
 +
 +<code>
 +add net 10.0.56.0: gateway 10.0.23.3 fib 0
 +add net 10.0.35.0: gateway 10.0.23.3 fib 0
 +add net 10.0.56.0: gateway 10.0.24.4 fib 0: route already in table
 +add net 10.0.45.0: gateway 10.0.24.4 fib 0
 +add net 2001:db8:56::: gateway 2001:db8:23::3 fib 0
 +add net 2001:db8:35::: gateway 2001:db8:23::3 fib 0
 +add net 2001:db8:56::: gateway 2001:db8:24::4 fib 0: route already in table
 +add net 2001:db8:45::: gateway 2001:db8:24::4 fib 0
 +[root@VM2]~# route get 10.0.56.0/24
 +   route to: 10.0.56.0
 +destination: 10.0.56.0
 +       mask: 255.255.255.0
 +    gateway: 10.0.23.3
 +        fib: 0
 +  interface: vtnet1
 +      flags: <UP,GATEWAY,DONE,STATIC>
 + recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
 +                                    1500                 0
 +</code>
 ==== VM 3 (router) ==== ==== VM 3 (router) ====
  
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