PVE answers to VM ssh connection [EDITED]

peerocat

New Member
Aug 31, 2023
1
0
1
EDIT: I think it's probably because pve uses all IPs for the webUI. How can I force it to use only wmbr0?

I've got an ethernet card on my server with two ports and one on the mobo
Two VMs and one interface for Proxmox webUI
172.18.50.136 -> webUI
172.18.50.140 -> VM
172.18.50.141 -> VM

When I try to login into the VMs through ssh password method, at first everything is normal,
but after a while I don't know why it is the pve who answers

The authenticity of host '172.18.50.141 (172.18.50.141)' can't be established. ED25519 key fingerprint is SHA256:<sha-code>. This host key is known by the following other names/addresses: ~/.ssh/known_hosts:4: 172.18.50.136
And then gives me Permission denied obviously

I've already made linux bridges
This is the content of /etc/network/interfaces on pve
auto lo iface lo inet loopback iface enp4s0 inet manual iface enp5s0f0 inet manual iface enp5s0f1 inet manual auto vmbr0 iface vmbr0 inet static address 172.18.50.136/24 gateway 172.18.50.1 bridge-ports enp4s0 bridge-stp off bridge-fd 0 iface wlo1 inet manual auto vmbr1 iface vmbr1 inet static address 172.18.50.140/24 bridge-ports enp5s0f0 bridge-stp off bridge-fd 0 #server-if auto vmbr2 iface vmbr2 inet static address 172.18.50.141/24 bridge-ports enp5s0f1 bridge-stp off bridge-fd 0 #storage-if
 

Attachments

  • vmbro.jpg
    vmbro.jpg
    18.9 KB · Views: 9
Last edited:
You only need one bridge (vmbr0) in the network 172.18.50.0/24. Do not add a bridge for each VM and configure the VM's IP address on the bridge. Just attach the VMs to the bridge vmbr0. Then the VM has a layer 2 connection to the network and is able to use an IP from the network.

If you want to utilize all three Ethernet NICs for your traffic you have to create a bonding interface. For that to work best in LACP mode (802.3ad) you need to also configure the switch where the cables go. The bonding interface bond0 is then the bridge-port of vmbr0.
 
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!