All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] Vlan tagging through a bridge to a VM
@ 2015-02-17 10:41 José A. Lausuch Sales
  0 siblings, 0 replies; only message in thread
From: José A. Lausuch Sales @ 2015-02-17 10:41 UTC (permalink / raw)
  To: bridge

[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]

Hi,

I want to create a guest VM with a single bridge (br0) and I want it to
talk untagged traffic and tagged traffic using vlans 11 and 22.

From the Host where I create the VM, I use the following commands to create
the bridge.
--------------------------------------------------
ip link add name eth1.11 link eth1 type vlan id 11
ip link set eth1.11 up
ip link add name eth1.22 link eth1 type vlan id 22
ip link set eth1.22 up

brctl addbr br0
brctl addif br0 eth1
brctl addif br0 eth1.11
brctl addif br0 eth1.22

ip addr add 192.168.0.100/24 broadcast 192.168.0.255 dev br0
ip addr add 192.168.11.100/24 broadcast 192.168.0.255 dev br0 label br0:11
ip addr add 192.168.22.100/24 broadcast 192.168.0.255 dev br0 label br0:22

--------------------------------------------------

So far, everything ok. I can ping the IPs in vlans 11 and 22 from that
bridge (e.g. ping -I br0 192.168.11.3) and also untagged network (e.g. ping
-I br0 192.168.0.5).

Now when I use that br0 to create a VM, it can ping the untagged network
but not the tagged ones (creating also vlan interfaces in the VM).

What am I missing?

[-- Attachment #2: Type: text/html, Size: 2603 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-17 10:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-17 10:41 [Bridge] Vlan tagging through a bridge to a VM José A. Lausuch Sales

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.