A
A
Alex2022-03-17 06:33:38
linux
Alex, 2022-03-17 06:33:38

How to configure ProxMox VE on two subnets?

Hello.
Mastering ProxMox Virtual Environment 7.1-10.
There is a server on which virtual machines with white and gray addresses will spin. There are no problems with gray ones, everything works out of the box. And how to fasten one more subnet with whites I can not understand. Gateways are different.
And is it even possible to do so.
I'll bring the diagram. I poked something, but cat /etc/network/interfaces
6232abeca1931185295439.jpeg
does not work so naturally

spoiler

auto lo
iface lo inet loopback

iface enp1s0 inet manual
#local ip

auto enp2s0
iface enp2s0 inet manual
#vlan500

auto enp3s0
iface enp3s0 inet manual

iface enp0s31f6 inet manual

auto vmbr0
iface vmbr0 inet static
        address 10.10.0.6/16
        gateway 10.10.0.1
        bridge-ports enp1s0
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address 85.14.14.15/26
        bridge-ports enp2s0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
#br_vlan500



ip route
spoiler

[email protected]:~# ip route 
default via 10.10.0.1 dev vmbr0 proto kernel onlink 
10.10.0.0/16 dev vmbr0 proto kernel scope link src 10.10.0.6 
85.14.14.0/26 dev vmbr1 proto kernel scope link src 85.14.14.14

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2022-03-17
@DazmaLab

What doesn't work? Why do you need vlans if you have two network networks?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question