[SOLVED] VLAN setup using 2 nic's

johncsuti

Member
Mar 26, 2021
8
0
6
25
Hello all,

I am trying to setup VLANS on my Proxmox setup either by command line or using the web interface. Unfortunately i can't seem to get it functioning. All help would be greatly appreciated.

Both Nic's are bridged to vmbr0. I plan on accessing the web interface on VLAN 1 and not 10,20,or 30. Please let me know if you need more information.

My setup:
Nic1: enp2s0
Nic2: enp3s0
Switch port status Nic1/Nic2: Trunk(tag all)

Vlans:
1-management 192.168.10.x/24
10-my servers 192.168.20.x/32
20-client servers 192.168.30.x/32
30-home internet 10.0.0.x/24
 
Hi,

Please post your network configuration cat /etc/network/interfaces
This is currently the extent of my config i have tried a few things but nothing works.

Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto enp2s0
iface enp2s0 inet manual

auto enp3s0
iface enp3s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.10.4/24
        gateway 192.168.10.1
        bridge-ports enp2s0 enp3s0
        bridge-stp off
        bridge-fd 0

iface vmbr0 inet6 static
        address 2001:0470:8d3e:1::4/64
        gateway 2001:0470:8d3e:1::1
 
It was just something i set up. Im changing it now
Code:
auto enp2s0
iface enp2s0 inet manual

auto enp3s0
iface enp3s0 inet manual

auto bond0
iface bond0 inet static
        address 192.168.10.4/24
        gateway 192.168.10.1
        bond-slaves enp2s0 enp3s0
        bond-miimon 100
        bond-mode active-backup
        bond-primary enp2s0

iface bond0 inet6 static
        address 2001:0470:8d3e:1::4/64
        gateway 2001:0470:8d3e:1::1
 
please post the output of ip a
Code:
root@pve3:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP group default qlen 1000
    link/ether 00:25:90:7b:14:4e brd ff:ff:ff:ff:ff:ff
3: enp3s0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP group default qlen 1000
    link/ether 00:25:90:7b:14:4e brd ff:ff:ff:ff:ff:ff
4: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
    link/ether 00:25:90:7b:14:4e brd ff:ff:ff:ff:ff:ff
6: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:25:90:7b:14:4e brd ff:ff:ff:ff:ff:ff
    inet 192.168.10.4/24 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 2001:470:8d3e:1::4/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::225:90ff:fe7b:144e/64 scope link
       valid_lft forever preferred_lft forever
26: veth112i0@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master fwbr112i0 state UP group default qlen 1000
    link/ether fe:3f:ae:46:cb:1f brd ff:ff:ff:ff:ff:ff link-netnsid 0
27: fwbr112i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether ae:ef:66:d6:08:d3 brd ff:ff:ff:ff:ff:ff
28: fwpr112p0@fwln112i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
    link/ether 8e:27:17:9e:e7:ca brd ff:ff:ff:ff:ff:ff
29: fwln112i0@fwpr112p0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master fwbr112i0 state UP group default qlen 1000
    link/ether ae:ef:66:d6:08:d3 brd ff:ff:ff:ff:ff:ff
 

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!