VLAN setup

mlanner

Renowned Member
Apr 1, 2009
190
1
83
Berkeley, CA
Hi,

I need to set up a VLAN on one of my Proxmox hosts. I've looked at the "Network Model" on the wiki. However, I'm still a bit confused. It says to 'Simply add the VLAN number to the ethernet device name, seperated by a period. For example "eth0.50."'

Below is my current /etc/network/interfaces config. Can someone tell me how I need to change it to make 192.168.1.0/24 my VLAN?

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

iface eth0 inet manual

iface eth1 inet static
        address  192.168.1.2
        netmask  255.255.255.0

auto vmbr0
iface vmbr0 inet static
        address  192.168.0.2
        netmask  255.255.255.0
        gateway  192.168.0.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
Thanks in advance!
 
Hey following config work for me:
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address  0.0.0.0
    netmask  0.0.0.0

auto eth0.189
iface eth0.189 inet static
    address  0.0.0.0
    netmask  0.0.0.0

auto eth0.20
iface eth0.20 inet static
    address  0.0.0.0
    netmask  0.0.0.0

auto eth0.21
iface eth0.21 inet static
    address  0.0.0.0
    netmask  0.0.0.0

auto eth0.80
iface eth0.80 inet static
    address  0.0.0.0
    netmask  0.0.0.0

auto eth0.89
iface eth0.89 inet static
    address  0.0.0.0
    netmask  0.0.0.0

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
    address  172.20.1.61
    netmask  255.255.255.0
    gateway  172.20.1.254
    bridge_ports eth0.21
    bridge_stp off
    bridge_fd 0

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

auto vmbr2
iface vmbr2 inet manual
    bridge_ports eth0.80
    bridge_stp off
    bridge_fd 0

auto vmbr3
iface vmbr3 inet manual
    bridge_ports eth0.89
    bridge_stp off
    bridge_fd 0

auto vmbr4
iface vmbr4 inet manual
    bridge_ports eth0.189
    bridge_stp off
    bridge_fd 0
The proxmos-server has the 172.20.1.61
 

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!