VLAN in bridge interface

egrueda

Renowned Member
Nov 9, 2010
47
0
71
Madrid, Spain
Hi all.
I have a single dedicated server with a single network interface.
I'm using proxmox 4.2 on it, fresh install.
This server is using a bridge, vmbr0, which uses the only available physical interface, eth0

I need to configure a second network in the same interface, plus using a specific vlan ID, so I can have my public IP and also a privated IP within VLAN.

At first, I tried to "apt-get install vlan" to get vconfig, but instead got:
Code:
The following packages will be REMOVED:
  proxmox-ve pve-manager

So I'm trying every configuration I can imagine within /etc/network/interfaces with no success.

Can somebody help me getting vlan woring here?
Thanks!
 
vconfig is depraced since years and shouldn't be used anymore

you need to use something like "ip link add link eth0 name eth0.100 type vlan id 100"

for example.

But the simply way, is to add in /etc/network/interfaces

auto eth0.100
iface eth0.100 inet static
....
 

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!