Answer the question
In order to leave comments, you need to log in
ProxMox bridge How to use two network interfaces on a server for a virtual machine?
Hello!
Not how it fails to shove how it's done.
Host ProxMox 4
eth0 192.168.1.1
eth1 192.168.2.2
c Web muzzle ProxMox ( Network Create Linux Bridge ) create "vmbr1" and bind eth1
ip 192.168.2.2
mask 255.255.255.0 to it By
default vmbr0 is created with binding eth0
ip 192.168.1.1
maska 255.255.255.0
gw 192.168.1.100
Virtual machine.
I created an additional network interface,
both in bridge mode
, one interface to vmbr0, the
other vmbr1
, and so the one that works on the first vmbr0!!!
and the one that is not on vmbr1.
If you switch the second interface to vmbr0, then both interfaces work in virtual machines. But they all work with vmbr0 and this is on host eth0. How to enable eth1???
Answer the question
In order to leave comments, you need to log in
And WHY did you get the idea that it doesn’t work, it’s obvious that it works, because if you configured it correctly and switched it to vmbr0, then it just shouldn’t have worked.
My cat /etc/network/interfaces file looks something like this:
And everything works just like you write.
auto lo
iface lo inet loopback
auto vmbr0
iface vmbr0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.100
bridge_ports eth0
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet manual
bridge_ports eth1
bridge_stp off
bridge_fd 0
auto vmbr2
iface vmbr2 inet manual
bridge_ports eth2
bridge_stp off
bridge_fd 0
auto vmbr3
iface vmbr3 inet manual
bridge_ports eth5
bridge_stp off
bridge_fd 0
In order for 2 interfaces to work, the config should be like this:
Pay attention to where manual is written, and where static is written. Otherwise, it
does not work.
-------------------------------
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
allow- hotplug enp2s0f0
auto enp2s0f0
iface bridge enp2s0f0 inet manual
allow-hotplug enp2s0f1
auto enp2s0f1
iface enp2s0f1 inet manual
auto vmbr0
iface vmbr0 inet static
address 172.17.1.140
netmask 255.255.255.0
gateway bridge
172.17.1.1 bridge_ports
enp2sd0
off_stp
auto vmbr1
iface vmbr1 inet static
address 172.17.1.141
netmask 255.255.255.0
bridge_ports enp2s0f1
bridge_stp off
bridge_fd 0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question