Proxmox vSwitch public network

punksunited

Member
Apr 6, 2020
3
0
6
35
I have 3 servers with Proxmox installed and a virtual switch with a public subnet.

How can I properly configure this public network for our VDS?

Bellow my network config

Thanks.



source /etc/network/interfaces.d/*



auto lo

iface lo inet loopback



iface lo inet6 loopback



auto eno1

iface eno1 inet static

address XX.217.84.169/26

gateway XX.217.84.129

up route add -net XX.217.84.128 netmask 255.255.255.192 gw XX.217.84.129 dev eno1

# route XX.217.84.128/26 via XX.217.84.129



iface eno1 inet6 static

address 2a01:4f9:4a:2096::2/64

gateway fe80::1



auto eno1.4000

iface eno1.4000 inet static

address 10.0.0.3/24



auto vmbr0

iface vmbr0 inet static

address XX.217.84.169/26

bridge-ports none

bridge-stp off

bridge-fd 0

bridge-vlan-aware yes

bridge-vids 2-4094



up ip addr add YYY.233.4.226/27 dev eno1.4000

up ip rule add from YYY.233.4.226 lookup vswitch

up ip rule add to YYY.233.4.226 lookup vswitch

up ip route add default via YYY.233.4.225 dev eno1.4000 table vswitch

down ip addr del YYY.233.4.226/29 dev eno1.4000

down ip route del default via YYY.233.4.225 dev eno1.4000 table vswitch

down ip rule del to YYY.233.4.226 lookup vswitch

down ip rule del from YYY.233.4.226 lookup vswitch

up ip addr add YYY.233.4.228/27 dev eno1.4000

up ip rule add from YYY.233.4.228 lookup vswitch

up ip rule add to YYY.233.4.228 lookup vswitch

up ip route add default via YYY.233.4.225 dev eno1.4000 table vswitch

down ip addr del YYY.233.4.228/29 dev eno1.4000

down ip route del default via YYY.233.4.225 dev eno1.4000 table vswitch

down ip rule del to YYY.233.4.228 lookup vswitch

down ip rule del from YYY.233.4.228 lookup vswitch
 
I have 3 servers with Proxmox installed and a virtual switch with a public subnet.

How can I properly configure this public network for our VDS?
Do you mean with VDS VMWare Virtual Distributed Switch?
 
Do you mean with VDS VMWare Virtual Distributed Switch?
no, it proxmox hypervisor + vswitch hetzner.


I managed to achieve a certain result. CIDR of the first server began to respond. But when creating a container behind it, ping does not pass to it.

auto eno1.4000
iface eno1.4000 inet static
address 10.0.0.3/24
mtu 1400
up ip addr add xxx.233.4.226/27 dev eno1.4000
up ip rule add from xxx.233.4.226 lookup vswitch
up ip rule add to xxx.233.4.226 lookup vswitch
up ip route add default via xxx.233.4.225 dev eno1.4000 table vswitch
down ip addr del xxx.233.4.226/27 dev eno1.4000
down ip route del default via xxx.233.4.225 dev eno1.4000 table vswitch
down ip rule del to xxx.233.4.226 lookup vswitch
down ip rule del from xxx.233.4.226 lookup vswitch


auto vmbr0
iface vmbr0 inet static
address xxx.233.4.226/27
bridge-ports none <---if I change the value to eno1.4000 then the ping disappears
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
mtu 1400
 
Sorry, but Hetzner Network is very special and has nothing to do with Proxmox VE.
Please ask the Hetzner Support.
 
support hetzner did not want to help me.

I solved it.


my config for cluster network and pool IP/27


Code:
###########NODE3

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback


iface eno1 inet manual
iface eno1.4000 inet manual


auto vmbr0
iface vmbr0 inet static
  address XXX.XXX.84.169/26
  gateway XXX.XXX.84.129
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0


auto vmbr1
iface vmbr1 inet static
        address 10.0.0.3
        netmask 255.255.255.0
        bridge_ports eno1.4000
        bridge_stp off
        bridge_fd 0
      
      
###########NODE2
enp0s31f6


source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback


iface enp0s31f6 inet manual
iface enp0s31f6.4000 inet manual

#inet config
auto vmbr0
iface vmbr0 inet static
        address XXX.XXX.118.225/26
        gateway XXX.XXX.118.193
        bridge-ports enp0s31f6
        bridge-stp off
        bridge-fd 0



#vswitch config
auto vmbr1
iface vmbr1 inet static
        address 10.0.0.2
        netmask 255.255.255.0
        bridge_ports enp0s31f6.4000
        bridge_stp off
        bridge_fd 0

Container network must used vmbr1 and gateway vswitch ip pool.
 
Last edited:

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!