[SOLVED] Set IP for Container same VLAN Management

ptquan1993

New Member
Apr 8, 2022
2
0
1
Hi everyone, I had just installed Proxmox 7.1 on my server.
I use 2 interface eno0 and eno1 to bond0 as LACP and I had configured 2 VLAN (10 and 20), trunk LACP 2 port on my router.
My IP Managegent is 10.0.10.10/24 (belonged VLAN 10).
I installed Container, and I needed to set IP of VLAN 10 for it (10.0.10.11/24)
I needed to use bridge, bond Linux for configure.
Can you have me ?
Thanks a lot!
 
My config here:

auto lo iface lo inet loopback auto eno4 iface eno4 inet manual auto eno1 iface eno1 inet manual auto eno2 iface eno2 inet manual iface eno3 inet manual auto bond0 iface bond0 inet manual bond-slaves eno1 eno4 bond-miimon 100 bond-mode 802.3ad auto vmbr0 iface vmbr0 inet manual bridge-ports bond0 bridge-stp off bridge-fd 0 bridge-vlan-aware yes bridge-vids 2-4094 auto vlan10 iface vlan10 inet static address 10.0.10.10/24 vlan-raw-device bond0

I config IP on container: BRIDGE: vmbr0 and VLAN Tag 10 with IP : 10.0.10.11/24
I can't ping IP of container.
I need IP of Management and container same VLAN.
Can you help me ?
 
Last edited:
See the section Example: Use VLAN 5 for the Proxmox VE management IP with VLAN aware Linux bridge at https://pve.proxmox.com/wiki/Network_Configuration#_vlan_802_1q

Example using data from your post:
Code:
auto vmbr0
iface vmbr0 inet manual
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

auto vmbr0.10
iface vmbr0.10 inet static
        address 10.0.10.10/24
If this is your entire /etc/network/interfaces then you need to add a gateway after the address 10.0.10.10/24 line too as shown in the example.

after those changes and reloading your network interfaces file (ifreload -a), you should be able to config IP on container: BRIDGE: vmbr0 and VLAN Tag 10 with IP : 10.0.10.11/24 as you have it now or config IP on container: BRIDGE: vmbr0.10 and no VLAN Tag with IP : 10.0.10.11/24.
 
Last edited:
  • Like
Reactions: ptquan1993

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!