Hello everyone. Here is a little problem I am having that is driving me crazy. I have 4 NIC cards in a server. Here is the configuration. There is a routing problem in the system. When I assign two NIC cards to a VM (vmbr0 and vmbr1). When I tried to ping 192.168.1.0 inside the VM, the traffic actually goes through the vmbr0, when it should be going to vmbr1. Please advise.
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 1000
bond_mode active-backup
auto bond1
iface bond1 inet manual
slaves eth2 eth3
bond_miimon 1000
bond_mode active-backup
auto vmbr0
iface vmbr0 inet static
address 10.10.10.40
netmask 255.255.255.0
gateway 10.10.10.1
bridge_ports bond0
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 192.168.1.40
netmask 255.255.255.0
gateway 192.168.1.40
bridge_ports bond1
bridge_stp off
bridge_fd 0
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 1000
bond_mode active-backup
auto bond1
iface bond1 inet manual
slaves eth2 eth3
bond_miimon 1000
bond_mode active-backup
auto vmbr0
iface vmbr0 inet static
address 10.10.10.40
netmask 255.255.255.0
gateway 10.10.10.1
bridge_ports bond0
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 192.168.1.40
netmask 255.255.255.0
gateway 192.168.1.40
bridge_ports bond1
bridge_stp off
bridge_fd 0