SSH to VM IP goes to Node ???

Dally

New Member
May 12, 2019
3
0
1
53
VE 5.4

Very strange. I lost connectivity to one of my VM's (Debian) and could not figure out why so I switched the interface in VE to a available unused NIC. (I have four). I went through the standard process of creating a Linux bridge and assigning an IP. I then went into the VM via /et/network/interfaces and changed that IP as well to match. Rebooted everything and was excited to ping. From a networked computer I SSH'd into the VM via IP address and SSH open the node. Very strange. I have never added manual routes or manually configured hosts on the node.
 
Hi,
VE 5.4

Very strange. I lost connectivity to one of my VM's (Debian) and could not figure out why so I switched the interface in VE to a available unused NIC. (I have four). I went through the standard process of creating a Linux bridge and assigning an IP. I then went into the VM via /et/network/interfaces and changed that IP as well to match. Rebooted everything and was excited to ping. From a networked computer I SSH'd into the VM via IP address and SSH open the node. Very strange. I have never added manual routes or manually configured hosts on the node.

If you assign an IP to the bridge on the host, it means that the host gets that IP. The bridge doesn't need its own IP, it should be enough to set an IP inside the VM.
 
Thank You for the reply- My common method is to add the VM IP to the virtual IP and always worked. I tried removing all IP address from the Node settings assuring the VM had an assigned IP and was correct with status of UP. In this situation I can not ping or ssh to the VM. It is like the routing or something in ProxMox blocks it. Everything on the network appears to be ok.
 
Where do you try to ping the VM from? If it's not on the same subnet you'll need to setup network address translation, see here. Is the firewall active?

For me, the following works:
Host with VM
Code:
iface ens1 inet manual

auto vmbr1
iface vmbr1 inet manual
        bridge-ports ens1
        bridge-stp off
        bridge-fd 0

Inside VM where the virtual NIC is set up to use vmbr1
Code:
iface ens18 inet static
        address 10.10.23.4
        netmask 255.255.255.0

Second host
Code:
auto ens1
iface ens1 inet static
        address 10.10.23.3
        netmask 255.255.255.0

Of course you can set an IP for the bridge as well, but it has to be different from the one inside the VM.
 

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!