VLAN and moving primary IP address

bruceg

Member
Aug 29, 2018
13
0
6
69
Hello-

I have an new installation of Proxmox and the server has both 1-gig and 10-gig interfaces. I initially installed it with the IP address on the 1-gig interface.

I want to configure the 10-gig interface to support 802.1q trunking and want the original IP address to be on a VLAN on that interface. How do I go about configuring this? I have tried several combinations in /etc/network/interface but can't seem to get the correct one.

Any help would be appreciated.
 
The original configuration is below. I connect to the proxmox management on the 1-gig interface (enp3s0f1) using IP address 100.64.110.1/24. VMs use vmbr10 (10-gig interface - ens2f1) with the appropriate VLAN number. All this works as expected.


auto lo
iface lo inet loopback

iface enp3s0f1 inet manual

iface enp3s0f0 inet manual

iface enp4s0f0 inet manual

iface enp4s0f1 inet manual

iface ens2f0 inet manual

iface ens2f1 inet manual

auto vmbr0
iface vmbr0 inet static
address 100.64.110.121
netmask 255.255.255.0
gateway 100.64.110.1
bridge_ports enp3s0f1
bridge_stp off
bridge_fd 0

auto vmbr10
iface vmbr10 inet manual
bridge_ports ens2f1
bridge_stp off
bridge_fd 0
bridge_vlan_aware yes

This configuration allows me to connect to the management IP address through the 10-gig interface, ens2f1. Please note that I had to use ens2f1.110 to make it work. However, the guests no longer have connectivity out. I know that fact that I'm using ens2f1.110 in the parameters of iface vmbr10 is preventing that so my question, what is the correct way to make this work, namely, all communication through the 10-gig interface?


auto lo
iface lo inet loopback

iface enp3s0f1 inet manual

iface enp3s0f0 inet manual

iface enp4s0f0 inet manual

iface enp4s0f1 inet manual

iface ens2f0 inet manual

iface ens2f1 inet manual

auto vmbr10
iface vmbr10 inet static
address 100.64.110.121
netmask 255.255.255.0
gateway 100.64.110.1
bridge_ports ens2f1.110
bridge_stp off
bridge_fd 0
bridge_vlan_aware yes
 

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!