VLAN / bridge setup problem

V

valferon

Guest
I'm having troubles with my network configuration and so, few questions for you ^^

I would like this :

[external network] <----->[eth0(Proxmox Host)]=>eth0 bridge vmbr0 ||| this works
+
[external network] <----->[eth0.100(Proxmox Host)]=>eth0.100 bridge vmbr1 ||| doesn't work

What is want to do is to have a bridge on eth0.100 (vlan tagging 100) and have a VM connected to this bridge where I set the IP.

My VM (KVM) has this IP config :
Code:
auto eth0
iface eth0 inet static
          address 192.168.1.100
          netmask 255.255.255.0
          broadcast 192.168.1.255
          gateway 192.168.1.254

and my Proxmox host :

Code:
    # network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth0.100 inet manual

auto vmbr0
iface vmbr0 inet static
	address  192.168.1.187
	netmask  255.255.255.0
	gateway  192.168.1.254
	bridge_ports eth0
	bridge_stp off
	bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
	bridge_ports eth0.100
	bridge_stp off
	bridge_fd 0

I read almost every post about VLAN configuration and I still can't see where I fail!

For exemple, I can't ping my VM 192.168.1.100 from my machine on the same VLAN and same IP network.

Thanks everyone!
 
Last edited by a moderator:
I'm having troubles with my network configuration and so, few questions for you ^^

I would like this :

[external network] <----->[eth0(Proxmox Host)]=>eth0 bridge vmbr0 ||| this works
+
[external network] <----->[eth0.100(Proxmox Host)]=>eth0.100 bridge vmbr1 ||| doesn't work

What is want to do is to have a bridge on eth0.100 (vlan tagging 100) and have a VM connected to this bridge where I set the IP.

My VM (KVM) has this IP config :
Code:
auto eth0
iface eth0 inet static
          address 192.168.1.100
          netmask 255.255.255.0
          broadcast 192.168.1.255
          gateway 192.168.1.254
and my Proxmox host :

Code:
    # network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth0.100 inet manual

auto vmbr0
iface vmbr0 inet static
    address  192.168.1.187
    netmask  255.255.255.0
    gateway  192.168.1.254
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
    bridge_ports eth0.100
    bridge_stp off
    bridge_fd 0
I read almost every post about VLAN configuration and I still can't see where I fail!

For exemple, I can't ping my VM 192.168.1.100 from my machine on the same VLAN and same IP network.

Thanks everyone!
Hi,
you can't mix tagged and untagged networks on one interface (work with switches, but seems to dosn't work with debian).
So if you do something like this:
Code:
...
auto vmbr0
iface vmbr0 inet static
    address  192.168.1.187
    netmask  255.255.255.0
    gateway  192.168.1.254
    bridge_ports eth0.50
    bridge_stp off
    bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
    bridge_ports eth0.100
    bridge_stp off
    bridge_fd 0
and tag your default-vlan e.g. with vlan-id 50 it will work. btw. you can name the bridge for vlan-100 vmbr100 - it's easier to remember which network it is.

Udo
 
This procedure worked for me:

From shell:

1. vconfig add eth0 100 # create vlan 100 > eth0.100
2. ifconfig eth0.100 up # enable this interface
3. brctl addbr vmbr1 # create bridge vmbr1 (for future binding with eth0.100)
4. ifconfig vmbr1 up # enable bridge
5. brctl addif vmbr1 eth0.100 # bind bridge to vlan interface

you can check if everything worked by:

1. cat /proc/net/vlan/config
2. brctl show

No restart of HN or network stack required.

Now if You create new openvz or kvm VM and select vmbr1 bridge, it will create network interface in tagged vlan 100.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!