Im configuring my KVM and in my network configuration I have 4 Network lancard 2 nic = using teaming0 for management with access port configured in the switch side 2 nic = using teaming1 for guest VM DATA ports. and in the switch is configured for LACP with trunk allowing vlan 10,20,30,40,50 and configured in the CentOS7 the vlan 10, vlan 20,30,40,50 im sure its already working because I tried to use one vlan and ping was successful. my question is can I assigned directly the 'team1_vlan10, team1_vlan20.. and so on to directly use in my guest VM instead of bridging the network config in the VM.xml file? I tried to google and found only about bridging it first and could not find the direct connection in the DATA port Teaming1 Thank you in advance
On 6 Apr 2016 2:35 p.m., "Francis Mendoza" <francis at mytechrepublic.com> wrote:> > Im configuring my KVM and in my network configuration I have 4 Network > lancard > > 2 nic = using teaming0 for management with access port configured in the > switch side > > 2 nic = using teaming1 for guest VM DATA ports. and in the switch is > configured for LACP with trunk allowing vlan 10,20,30,40,50 > > and configured in the CentOS7 the vlan 10, vlan 20,30,40,50 im sure its > already working because I tried to use one vlan and ping was successful. > > my question is can I assigned directly the 'team1_vlan10, team1_vlan20.. > and so on to directly use in my guest VM instead of bridging the network > config in the VM.xml file? I tried to google and found only about bridging > it first and could not find the direct connection in the DATA portTeaming1> > Thank you in advance >What you'll need to do is from your team interface create the tagged interfaces. Then create a bridge for each vlan and associate the tagged interface with the bridge. When the guest is connected to that bridge the traffic will then be tagged by the vmhost on the way out so you don't need any tagged configuration in the guest.
On Wed, Apr 6, 2016 at 9:47 PM, James Hogarth <james.hogarth at gmail.com> wrote:> On 6 Apr 2016 2:35 p.m., "Francis Mendoza" <francis at mytechrepublic.com> > wrote: > > > > Im configuring my KVM and in my network configuration I have 4 Network > > lancard > > > > 2 nic = using teaming0 for management with access port configured in the > > switch side > > > > 2 nic = using teaming1 for guest VM DATA ports. and in the switch is > > configured for LACP with trunk allowing vlan 10,20,30,40,50 > > > > and configured in the CentOS7 the vlan 10, vlan 20,30,40,50 im sure its > > already working because I tried to use one vlan and ping was successful. > > > > my question is can I assigned directly the 'team1_vlan10, team1_vlan20.. > > and so on to directly use in my guest VM instead of bridging the network > > config in the VM.xml file? I tried to google and found only about > bridging > > it first and could not find the direct connection in the DATA port > Teaming1 > > > > Thank you in advance > > > > What you'll need to do is from your team interface create the tagged > interfaces. Then create a bridge for each vlan and associate the tagged > interface with the bridge. > > When the guest is connected to that bridge the traffic will then be tagged > by the vmhost on the way out so you don't need any tagged configuration in > the guest. > >Thanks James I will try to configure the bridge in the vlan.
On 04/06/2016 06:35 AM, Francis Mendoza wrote:> my question is can I assigned directly the 'team1_vlan10, team1_vlan20.. > and so on to directly use in my guest VM instead of bridging the network > config in the VM.xml file? IYes, you can use macvtap. Note that in the default mode, the guest will not be able to communicate with the host. AFAIK, when using macvtap, you will not have the option of controlling guest network using iptables on the host, as you do when using a bridged network device.