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 [2020/09/19 17:39] – [VM 2 (ECMP router)] olivierdocumentation:examples:ecmp [2020/09/19 17:48] – [VM 2 (ECMP router)] olivier
Line 1: Line 1:
 ====== Equal-cost multi-path routing (ECMP) ====== ====== Equal-cost multi-path routing (ECMP) ======
  
-This lab is testing new ECMP routing code. +This lab is testing new ECMP routing code from [[https://reviews.freebsd.org/D26449|FreeBSD's review D26449]]
 ===== Presentation ===== ===== Presentation =====
  
Line 141: Line 140:
 10.0.56.0/24       10.0.24.4          UGS      vtnet2 10.0.56.0/24       10.0.24.4          UGS      vtnet2
 10.0.56.0/24       10.0.23.3          UGS      vtnet1 10.0.56.0/24       10.0.23.3          UGS      vtnet1
 +
 [root@VM2]~# route -n get 10.0.56.0/24 [root@VM2]~# route -n get 10.0.56.0/24
    route to: 10.0.56.0    route to: 10.0.56.0
Line 177: Line 177:
  recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire  recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
                                     1500                 0                                     1500                 0
 +
 +[root@VM2]~# netstat -6onW
 +Nexthop data
 +
 +Internet6:
 +Idx   Type         IFA                           Gateway                        Flags      Use Mtu       Netif   Addrif Refcnt Prepend
 +1       v6/resolve ::1                           lo0/resolve                                16384      lo0             1
 +2       v6/resolve fe80::1%lo0                   lo0/resolve                   HS            0  16384      lo0             1
 +3       v6/resolve fe80::1%lo0                   lo0/resolve                                  16384      lo0             1
 +4            v6/gw ::1                           ::                          GRS            16384      lo0             4
 +5       v6/resolve ::1                           lo0/resolve                   HS            0  16384      lo0  vtnet0     2
 +6       v6/resolve fe80::5a9c:fcff:fe01:202%vtnet0 vtnet0/resolve                            0   1500   vtnet0             1
 +7       v6/resolve 2001:db8:12::               vtnet0/resolve                              0   1500   vtnet0             1
 +8       v6/resolve ::1                           lo0/resolve                   HS            0  16384      lo0  vtnet1     2
 +9       v6/resolve fe80::5a9c:fcff:fe02:302%vtnet1 vtnet1/resolve                            0   1500   vtnet1             1
 +10      v6/resolve 2001:db8:23::               vtnet1/resolve                              0   1500   vtnet1             1
 +11      v6/resolve ::1                           lo0/resolve                   HS            0  16384      lo0  vtnet2     2
 +12      v6/resolve fe80::5a9c:fcff:fe02:402%vtnet2 vtnet2/resolve                            0   1500   vtnet2             1
 +13      v6/resolve 2001:db8:24::               vtnet2/resolve                              0   1500   vtnet2             1
 +14           v6/gw 2001:db8:23::               2001:db8:23::               GS            0   1500   vtnet1             2
 +15           v6/gw 2001:db8:24::               2001:db8:24::               GS            0   1500   vtnet2             2
 </code> </code>
 ==== VM 3 (router) ==== ==== VM 3 (router) ====
Line 309: Line 330:
 | 10.0.12.41 | 10.0.56.46 | VM4 | VM4 | | 10.0.12.41 | 10.0.56.46 | VM4 | VM4 |
 | 10.0.12.51 | 10.0.56.56 | VM4 | VM4 | | 10.0.12.51 | 10.0.56.56 | VM4 | VM4 |
-| 2001:db8:12::1 | 2001:db8:56::6 | error error +| 2001:db8:12::1 | 2001:db8:56::6 | VM4 VM4 
-| 2001:db8:12::11 | 2001:db8:56::16 | error error +| 2001:db8:12::11 | 2001:db8:56::16 | VM4 VM4 
-| 2001:db8:12::21 | 2001:db8:56::26 | error error +| 2001:db8:12::21 | 2001:db8:56::26 | VM4 VM4 
-| 2001:db8:12::31 | 2001:db8:56::36 | error error +| 2001:db8:12::31 | 2001:db8:56::36 | VM4 VM4 
-| 2001:db8:12::41 | 2001:db8:56::46 | error error +| 2001:db8:12::41 | 2001:db8:56::46 | VM4 VM4 
-| 2001:db8:12::51 | 2001:db8:56::56 | error error | +| 2001:db8:12::51 | 2001:db8:56::56 | VM4 VM4 |
- +
- +
-Notice inet6 bug: Cannot ping itself neither neighbor +
-<code> +
-[root@VM1]~# ifconfig vtnet0 inet6 +
-vtnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 +
-        options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE> +
-        inet6 fe80::5a9c:fcff:fe01:201%vtnet0 prefixlen 64 scopeid 0x1 +
-        inet6 2001:db8:12::1 prefixlen 64 +
-        inet6 2001:db8:12::11 prefixlen 64 +
-        inet6 2001:db8:12::21 prefixlen 64 +
-        inet6 2001:db8:12::31 prefixlen 64 +
-        inet6 2001:db8:12::41 prefixlen 64 +
-        inet6 2001:db8:12::51 prefixlen 64 +
-        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> +
-[root@VM1]~# ping6 -c 1 fe80::5a9c:fcff:fe01:201%vtnet0 +
-PING6(56=40+8+8 bytes) fe80::5a9c:fcff:fe01:201%vtnet0 --> fe80::5a9c:fcff:fe01:201%vtnet0 +
- +
---- fe80::5a9c:fcff:fe01:201%vtnet0 ping6 statistics --- +
-1 packets transmitted, 0 packets received, 100.0% packet loss +
-[root@VM1]~# ping6 -c 12001:db8:12::+
-ping6: illegal number of packets -- 12001:db8:12::+
-[root@VM1]~# ping6 -c 1 2001:db8:12::+
-PING6(56=40+8+8 bytes) 2001:db8:12::1 --> 2001:db8:12::+
- +
---- 2001:db8:12::2 ping6 statistics --- +
-1 packets transmitted, 0 packets received, 100.0% packet loss +
-</code> +
 ==== Testing Fail Over ==== ==== Testing Fail Over ====
  
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