Hello,
i'm new at your forum.
i got a issue with the network configuration.
i have two network cards with the following configuration:
...
allow-vmbr1 eth1
iface eth1 inet manual
ovs_type OVSPort
ovs_bridge vmbr1
allow-vmbr0 eth2
iface eth2 inet manual
ovs_type OVSPort
ovs_bridge vmbr0
auto vmbr0
iface vmbr0 inet static
address 192.168.6.250
netmask 255.255.255.0
network 192.168.6.0
broadcast 192.168.6.255
gateway 192.168.6.1
ovs_type OVSBridge
ovs_ports eth2
post-up ip route add table vlan50 default via 192.168.6.1 dev vmbr0
port-up ip rule add from 192.168.6.0/24 table vlan50
post-down ip route del table vlan50 default via 192.168.6.1 dev vmbr0
post-down ip rule add from 192.168.6.0/24 table vlan50
auto vmbr1
iface vmbr1 inet static
address 192.168.7.250
netmask 255.255.255.0
network 192.168.7.0
broadcast 192.168.7.255
ovs_type OVSBridge
ovs_ports eth1
post-up ip route add table vlan70 default via 192.168.7.1 dev vmbr1
port-up ip rule add from 192.168.7.0/24 table vlan70
post-down ip route del table vlan70 default via 192.168.7.1 dev vmbr1
post-down ip rule add from 192.168.7.0/24 table vlan70
...
those are two seperated networks.
my problem is, that the veth of the lxc container routes the network through the wrong interface.
in my case i've created a test machine and changed to vmbr1 to get the right network but i saw, that the most traffic goes out through the primary network interface (vmbr0).
i don't know how to fix this.
any suggestions?
btw. the lxc container implementation works great!
regards
fine
i'm new at your forum.
i got a issue with the network configuration.
i have two network cards with the following configuration:
...
allow-vmbr1 eth1
iface eth1 inet manual
ovs_type OVSPort
ovs_bridge vmbr1
allow-vmbr0 eth2
iface eth2 inet manual
ovs_type OVSPort
ovs_bridge vmbr0
auto vmbr0
iface vmbr0 inet static
address 192.168.6.250
netmask 255.255.255.0
network 192.168.6.0
broadcast 192.168.6.255
gateway 192.168.6.1
ovs_type OVSBridge
ovs_ports eth2
post-up ip route add table vlan50 default via 192.168.6.1 dev vmbr0
port-up ip rule add from 192.168.6.0/24 table vlan50
post-down ip route del table vlan50 default via 192.168.6.1 dev vmbr0
post-down ip rule add from 192.168.6.0/24 table vlan50
auto vmbr1
iface vmbr1 inet static
address 192.168.7.250
netmask 255.255.255.0
network 192.168.7.0
broadcast 192.168.7.255
ovs_type OVSBridge
ovs_ports eth1
post-up ip route add table vlan70 default via 192.168.7.1 dev vmbr1
port-up ip rule add from 192.168.7.0/24 table vlan70
post-down ip route del table vlan70 default via 192.168.7.1 dev vmbr1
post-down ip rule add from 192.168.7.0/24 table vlan70
...
those are two seperated networks.
my problem is, that the veth of the lxc container routes the network through the wrong interface.
in my case i've created a test machine and changed to vmbr1 to get the right network but i saw, that the most traffic goes out through the primary network interface (vmbr0).
i don't know how to fix this.
any suggestions?
btw. the lxc container implementation works great!
regards
fine