I have 2 VLAN,VLAN 100 and 101 but only one subnet
i am trying to make this work with virtual machine so that VM will have two IP address in same subnet but will actually be in two VLAN.
steps followed:
created subinterface eth0.100 and eth0.101
Connected these subinterface to bridges br100 and br101
connected VNIC of VMs to these bridges
Since inside VM there is only one subnet how can i configure VM to use both VLANs.
I think the default routing table can be a problem as its not VLAN aware and the
10.0.0.0 dev eth0
above rule in ip route show can be a problem,as for all traffic in 10.0.0.0 it uses eth0 interface only,but some hosts that are in VLAN 101 may not work through eth0 with a tag of 100.
How can i make VM VLAN aware and use proper VLAN in same subnet?.
I dont have different subnets,(if i had i wouldnt have used VLAN instead use single bridge to solve this)
OR
Do i need two bridges here??
the reason i created two bridges is if i add eth0.100 and eth0.101 to same bridge,how can the VNIC of VM be connnected to proper VLAN port,since Linux bridge doesnt support tag on bridge i thought it will not work.
Can someone please correct me.
Thanks