Network Configuration Help

conan58

New Member
Jun 20, 2023
2
0
1
Hello Everyone,

I am looking for some help with networking on a proxmox host. Here is what I am trying to do:

I am trying to setup a proxmox host and get it ready to be put in a cluster with shared storage for HA. I am trying to setup a Mgmt Interface, Storage Interface, Cluster interface, and I would like to setup a Data bridge that is vlan aware and can have multiple sub interfaces below that. I have my storage,mgmt, and Data setup but now none of my vlans are working on my data bridge. For sure I am doing something wrong I just do not see it. Would someone take a look and tell me what I messed up?

Thank you, also my config file is below.

#################################################
# 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

iface ens5f0np0 inet manual

iface ens5f1np1 inet manual

auto ens5f2np2
iface ens5f2np2 inet manual
address 10.0.110.20
netmask 255.255.255.0
gateway 10.0.110.254
#Storage

iface ens5f3np3 inet manual

iface enx429902d02227 inet manual

auto vmbr0
iface vmbr0 inet static
address 10.1.1.26/24
gateway 10.1.1.1
bridge-ports ens5f0np0
bridge-stp off
bridge-fd 0
#Mgmt Bridge

auto vmbr1
iface vmbr1 inet manual
bridge-ports ens5f1np1
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
#Data-Bridge

auto vmbr1.100
iface vmbr1.100 inet manual

auto vmbr1.16
iface vmbr1.16 inet manual

##########################################
 
auto ens5f2np2
iface ens5f2np2 inet manual
address 10.0.110.20
netmask 255.255.255.0
gateway 10.0.110.254
#Storage
That should be iface ens5f2np2 inet static when using it with a static IP.

Code:
auto ens5f2np2
iface ens5f2np2 inet manual
address 10.0.110.20
netmask 255.255.255.0
gateway 10.0.110.254
#Storage
...
auto vmbr0
iface vmbr0 inet static
address 10.1.1.26/24
gateway 10.1.1.1
bridge-ports ens5f0np0
bridge-stp off
bridge-fd 0
#Mgmt Bridge
Your PVE host got multiple gateways...

auto vmbr1.100
iface vmbr1.100 inet manual

auto vmbr1.16
iface vmbr1.16 inet manual
I don't see the point here. Why creating two VLAN interfaces if neither any guest nor your host make use of it. You usually only use this if you want to assign the PVE host a IP to a VLAN.
 
Ok, So I made some changes I will show the config below: I did not notice the Gateway "I cannot believe I missed that, thank you". And I set "iface ens5f2np2 inet static". My Guests are going to use the vlans, I need to have different guests on different vlans. It was working before, It stopped working after I added the ens5f2np2 interface. Why would that be the case?

Updated Config Below:

# 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

iface ens5f0np0 inet manual

iface ens5f1np1 inet manual

auto ens5f2np2
iface ens5f2np2 inet static
address 10.0.110.20/24
#Storage

iface ens5f3np3 inet manual

iface enx429902d02227 inet manual

auto vmbr0
iface vmbr0 inet static
address 10.1.1.26/24
gateway 10.1.1.1
bridge-ports ens5f0np0
bridge-stp off
bridge-fd 0
#Mgmt Bridge

auto vmbr1
iface vmbr1 inet manual
bridge-ports ens5f1np1
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
#Data-Bridge

auto vmbr1.100
iface vmbr1.100 inet manual

auto vmbr1.16
iface vmbr1.16 inet manual


Again thank you I really do appreciate it.
 

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!