Proxmox - Configure two bridges in a single NIC

khalil31

New Member
Apr 13, 2021
7
0
1
32
I have Proxmox installed in two servers directly linked by a switch, I need to configure two different addresses in a specific NIC (that have a capacity of 10GB) for each server.

I tried many solutions found on the internet but the best result I got is being able to ping only one address.

here are some of the solutions I tried:

1.

iface eno1np0 inet manual
iface eno1np0.4 inet manual

auto vmbr1
iface vmbr1 inet static
address 10.20.2.5/24
bridge-ports eno1np0
bridge-stp off
bridge-fd 0

auto vmbr2
iface vmbr2 inet static
address 10.20.4.5/24
bridge-ports eno1np0.4
bridge-stp off
bridge-fd 0

2.

auto eno1np0
iface eno1np0 inet static
address 10.20.2.5/24
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/eno1np0/proxy_arp

auto vmbr1
iface vmbr1 inet static
address 10.20.4.5/24
bridge-ports eno1np0
bridge-stp off
bridge-fd 0

3.

auto eno1np0
iface eno1np0 inet manual
address 10.20.2.5/24

auto vmbr1
iface vmbr1 inet static
address 10.20.4.5/24
bridge-ports eno1np0
bridge-stp off
bridge-fd 0

No one of these solutions works for me
 
The usual order is interface -> (bond ->) bridge -> vlan

In your case:
eno1np0 inet manual
vmbr0 inet static (10.20.2.x/24) and bridge-ports eno1np0
vmbr0.4 inet static (10.20.4.x/24)
 
thanks for you replay M. ph0x

I tried reordering them but I am not able to ping the two networks (10.20.2.x and 10.20.4.x)

here is /etc/network/interfaces file
----

auto lo
iface lo inet loopback

iface eno3 inet manual

iface eno2np1 inet manual

auto eno4
iface eno4 inet static
address 10.10.3.x/24
gateway 10.10.3.254

auto eno1np0
iface eno1np0 inet static
address 10.10.2.x/24
mtu 9100

auto vmbr0
iface vmbr0 inet static
address 192.168.1.x/24
gateway 192.168.1.3
bridge-ports eno3
bridge-stp off
bridge-fd 0

auto vmbr10
iface vmbr10 inet static
address 10.20.4.x/24
bridge-ports eno1np0.4
bridge-stp off
bridge-fd 0

--

I can ping 192.168.1.x and 10.10.3.x but not 10.20.2.x and 10.20.4.x

Thanks
 
sorry, i'm not sure if I understand the order you mentioned above
is it like that?

auto lo
iface lo inet loopback

iface eno3 inet manual

iface eno2np1 inet manual

auto eno4
iface eno4 inet static
address 10.10.3.x/24
gateway 10.10.3.254

#auto eno1np0
iface eno1np0 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.1.x/24
gateway 192.168.1.3
bridge-ports eno3
bridge-stp off
bridge-fd 0



auto vmbr1
iface vmbr1 inet static
address 10.20.2.x/24
bridge-ports eno1np0
bridge-stp off
bridge-fd 0

auto vmbr1.4
iface vmbr1.4 inet static
address 10.20.4.x/24


with this config I'm not able to ping 10.20.4.x
 
How would you want VLANs to work then?? The way you defined it now there is the 10.20.2.x as untagged VLAN/PVID on the wire and 10.20.4.x as a tagged VLAN. Without configuring the switch this will never work. :D
 
  • Like
Reactions: khalil31

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!