Re: [ovirt-users] 3.6 : VLAN / non VLAN

2016-08-21 Thread Edward Haas
On Thu, Aug 18, 2016 at 6:57 PM, Alexis HAUSER <
alexis.hau...@telecom-bretagne.eu> wrote:

> hi,
>
> I'd like to know what happens when you create a new network, tagged with
> VLAN for example 25 and using em2 :
>

Assuming that by 'tag' you mean the 4 byte added to the ethernet header,
then see answers below.
Note that you can verify this by simply running tcpdump or any other
sniffer.


> - the packets outgoing from em2.25 are tagged, right ?
>

Frames seen by this virtual interface are stripped of the vlan tag.
The purpose of this interface is to abstract the vlan from upper levels.

- the packets outgoing from em2 are tagged or not ?
>

If it originated from em2.25 (from the network you defined), then they will
be tagged with vlan ID 25.
If they originated from em2 (itself), then no tag will exist. (Usually this
occurs when you create a non-vlan network attached to em2)

- the result is packets inside ovirt are tagged, but when you go out of it
> and reach something from em2, are the packets still tagged ?
>

If you created a VLAN network, then the following flow will exist: (assumed
a VM network)
[external network]---[em2][em2.25]---[bridge]---[vm vnic]
[tag25]---[tag25]--[no tag]-[no tag]--[no tag]

This is true for both ingress and egress traffic.

For a non-vlan network, the linux bridge is connected directly to em2, and
if a tag exists or not depends on the ingress and egress traffic,
there is no stripping or adding of tags on the way.

Thanks,
Edy.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] 3.6 : VLAN / non VLAN

2016-08-18 Thread Fernando Fuentes
 the packets outgoing from em2.25 are tagged, right ?
Yes.

the packets outgoing from em2 are tagged or not?

Not.

 the result is packets inside ovirt are tagged, but when you go out of
 it and reach something from em2, are the packets still tagged ?

When a packet crosses one vlan to another the switch does it magic with
vlan forwarding and routes.
Simple answer is that em2 does not see the tag but packets can reach em2
if you have your switch configure to allow this. If not than only
traffic with tag 35 can talk to each other.

Regards,

-- 
Fernando Fuentes
ffuen...@txweather.org
http://www.txweather.org

On Thu, Aug 18, 2016, at 10:57 AM, Alexis HAUSER wrote:
> hi,
> 
> I'd like to know what happens when you create a new network, tagged with
> VLAN for example 25 and using em2 :
> - the packets outgoing from em2.25 are tagged, right ?
> - the packets outgoing from em2 are tagged or not ?
> - the result is packets inside ovirt are tagged, but when you go out of
> it and reach something from em2, are the packets still tagged ?
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] 3.6 : VLAN / non VLAN

2016-08-18 Thread Alexis HAUSER
hi,

I'd like to know what happens when you create a new network, tagged with VLAN 
for example 25 and using em2 :
- the packets outgoing from em2.25 are tagged, right ?
- the packets outgoing from em2 are tagged or not ?
- the result is packets inside ovirt are tagged, but when you go out of it and 
reach something from em2, are the packets still tagged ?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users