Hello!
I've a setup a config using multiple gateway as in this web page. All is working fine on the PVE node.
http://generationip.com/documentati...howto-setup-multiple-default-gateway-on-linux
On top of this, I mounted a CT with 2 IPs (with venet). One on the left network, one on the right network.
The left one (vmbr0) is working fine. I can ping it. The second at the right (vmbr1) is not working.
I'll looking for a solution to have the CT answering on both network. I tried to define route for the CT but wthout success.
Bellow is the config on the PVE node.
# network interface settings
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
iface eth2 inet manual
iface eth3 inet manual
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode active-backup
auto bond1
iface bond1 inet manual
slaves eth2 eth3
bond_miimon 100
bond_mode active-backup
auto vmbr0
iface vmbr0 inet static
address 62.xxx.212.17
netmask 255.255.255.0
gateway 62.xxx.212.254
bridge_ports bond0
bridge_stp off
bridge_fd 0
# Edit /etc/iproute2/rt_tables and add table t17
post-up ip route add 62.xxx.212.0/24 dev vmbr0 src 62.xxx.212.17 table t17
post-up ip route add default via 62.xxx.212.254 dev vmbr0 src 62.xxx.212.17 table t17
post-up ip rule add from 62.xxx.212.17 table t17
post-up ip route add 127.0.0.0/8 dev lo table t17
post-up ip route add 195.yyy.139.96/27 dev vmbr1 table t17
auto vmbr1
iface vmbr1 inet static
address 195.yyy.139.123
netmask 255.255.255.224
bridge_ports bond1
bridge_stp off
bridge_fd 0
# Edit /etc/iproute2/rt_tables and add table t123
post-up ip route add 195.yyy.139.96/27 dev vmbr1 src 195.yyy.139.123 table t123
post-up ip route add default via 195.yyy.139.126 dev vmbr1 src 195.yyy.139.123 table t123
post-up ip rule add from 195.yyy.139.123 table t123
post-up ip route add 127.0.0.0/8 dev lo table t123
post-up ip route add 62.xxx.212.0/24 dev vmbr0 table t123
I've a setup a config using multiple gateway as in this web page. All is working fine on the PVE node.
http://generationip.com/documentati...howto-setup-multiple-default-gateway-on-linux
On top of this, I mounted a CT with 2 IPs (with venet). One on the left network, one on the right network.
The left one (vmbr0) is working fine. I can ping it. The second at the right (vmbr1) is not working.
I'll looking for a solution to have the CT answering on both network. I tried to define route for the CT but wthout success.
Bellow is the config on the PVE node.
# network interface settings
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
iface eth2 inet manual
iface eth3 inet manual
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode active-backup
auto bond1
iface bond1 inet manual
slaves eth2 eth3
bond_miimon 100
bond_mode active-backup
auto vmbr0
iface vmbr0 inet static
address 62.xxx.212.17
netmask 255.255.255.0
gateway 62.xxx.212.254
bridge_ports bond0
bridge_stp off
bridge_fd 0
# Edit /etc/iproute2/rt_tables and add table t17
post-up ip route add 62.xxx.212.0/24 dev vmbr0 src 62.xxx.212.17 table t17
post-up ip route add default via 62.xxx.212.254 dev vmbr0 src 62.xxx.212.17 table t17
post-up ip rule add from 62.xxx.212.17 table t17
post-up ip route add 127.0.0.0/8 dev lo table t17
post-up ip route add 195.yyy.139.96/27 dev vmbr1 table t17
auto vmbr1
iface vmbr1 inet static
address 195.yyy.139.123
netmask 255.255.255.224
bridge_ports bond1
bridge_stp off
bridge_fd 0
# Edit /etc/iproute2/rt_tables and add table t123
post-up ip route add 195.yyy.139.96/27 dev vmbr1 src 195.yyy.139.123 table t123
post-up ip route add default via 195.yyy.139.126 dev vmbr1 src 195.yyy.139.123 table t123
post-up ip rule add from 195.yyy.139.123 table t123
post-up ip route add 127.0.0.0/8 dev lo table t123
post-up ip route add 62.xxx.212.0/24 dev vmbr0 table t123