[virt-tools-list] Connect VLAN Interface to Virtual Network

Justin Brown justin.brown at fandingo.org
Wed Mar 26 02:57:01 UTC 2014


Hello,

I'm trying to create a new bridge network in virt-manager, but I'm
having some difficultly. The basic problem is that I'm working on a
tagged VLAN network, so I want to connect the bridge to one of the
VLAN network interfaces, not a physical device.

I have a single physical device, p118p1, and three VLAN interfaces,
vlan2, vlan3, and vlan4. I want to create a network called vmbr0, and
connect vlan4 to it.

I go through the "create a new virtual network" setup, and I encounter
a problem on step 4 when I try to connect it to an external network. I
want to choose "forwarding to physical network." Unfortuantely, the
only entries for "destination" are "any physical device," "physical
device lo," and "physical device p118p1." vlan4 doesn't show up in
this list.

How can I connect a virt-manager virtual network to a vlan destination
interface?

Thanks,
Justin


~$ ip a

2: p118p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
    link/ether bc:5f:f4:00:2a:0a brd ff:ff:ff:ff:ff:ff
    inet6 fe80::be5f:f4ff:fe00:2a0a/64 scope link
       valid_lft forever preferred_lft forever
4: vlan4 at p118p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
noqueue state UP group default
    link/ether bc:5f:f4:00:2a:0a brd ff:ff:ff:ff:ff:ff
    inet 10.1.1.2/24 brd 10.1.1.255 scope global dynamic vlan4
       valid_lft 63682sec preferred_lft 63682sec
    inet6 fe80::be5f:f4ff:fe00:2a0a/64 scope link
       valid_lft forever preferred_lft forever
9: vlan3 at p118p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
noqueue state UP group default
    link/ether bc:5f:f4:00:2a:0a brd ff:ff:ff:ff:ff:ff
    inet6 fe80::be5f:f4ff:fe00:2a0a/64 scope link
       valid_lft forever preferred_lft forever
10: vlan2 at p118p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
noqueue state UP group default
    link/ether bc:5f:f4:00:2a:0a brd ff:ff:ff:ff:ff:ff
    inet 10.2.1.1/24 brd 10.2.1.255 scope global vlan2
       valid_lft forever preferred_lft forever
...




More information about the virt-tools-list mailing list