rhtyd commented on issue #2791: router: Fixes #2789 fix proper mark based 
packet routing across interfaces
URL: https://github.com/apache/cloudstack/pull/2791#issuecomment-410660543
 
 
   This is after the fix on a VPC VR:
   
   Interface listing:
   ```
   root@r-20-VM:~# ip a
   1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group 
default qlen 1
       link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
       inet 127.0.0.1/8 scope host lo
          valid_lft forever preferred_lft forever
   2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state 
UP group default qlen 1000
       link/ether 0e:00:a9:fe:03:e2 brd ff:ff:ff:ff:ff:ff
       inet 169.254.3.226/16 brd 169.254.255.255 scope global eth0
          valid_lft forever preferred_lft forever
   3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state 
UP group default qlen 1000
       link/ether 1e:00:15:00:00:04 brd ff:ff:ff:ff:ff:ff
       inet 10.1.35.24/19 brd 10.1.63.255 scope global eth1
          valid_lft forever preferred_lft forever
   ```
   
   `rt_tables` entry:
   ```
   root@r-20-VM:~# cat /etc/iproute2/rt_tables
   #
   # reserved values
   #
   255  local
   254  main
   253  default
   0    unspec
   #
   # local
   #
   #1   inr.ruhep
   100 Table_eth0
   252 static_route
   251 static_route_back
   101 Table_eth1
   ```
   ip rules:
   ```
   root@r-20-VM:~# ip rule
   0:   from all lookup local 
   32762:       from all fwmark 0x65 lookup Table_eth1 
   32763:       from 10.20.0.0/16 lookup static_route_back 
   32764:       from 10.20.0.0/16 lookup static_route 
   32765:       from all fwmark 0x64 lookup Table_eth0 
   32766:       from all lookup main 
   32767:       from all lookup default 
   root@r-20-VM:~# ip rule show table Table_eth0
   32765:       from all fwmark 0x64 lookup Table_eth0 
   root@r-20-VM:~# ip rule show table Table_eth1
   32762:       from all fwmark 0x65 lookup Table_eth1 
   ```
   
   Routing rules:
   ```
   root@r-20-VM:~# ip route
   default via 10.1.63.254 dev eth1 
   10.1.32.0/19 dev eth1 proto kernel scope link src 10.1.35.24 
   169.254.0.0/16 dev eth0 proto kernel scope link src 169.254.3.226 
   root@r-20-VM:~# ip route show table Table_eth0
   root@r-20-VM:~# ip route show table Table_eth1
   default via 10.1.63.254 dev eth1 proto static 
   throw 10.1.32.0/19 proto static 
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to