Ping Problem Strange

didraro

Active Member
Jan 25, 2014
62
0
26
I have an hetzner server i did configure my server to run both , KVM and OpenVZ so i can create and use both in same time .


The problem it is that when i try to ping from an machine KVM to other machine OPENVZ it will not work ping , and same if i ping from openvz to Kvm will not work.

It work only from KVM - ping KVm
OpenVZ ping Openvz


So why i can not ping Kvm - Openvz and Openvz - KVM

Please someone help me .
 
It's probably a routing issue in your dedicated server,
Please checkout the `route -n` and try to separate KVM IPs from OpenVZ via different subnets
 
Can someone help me , tincboy can you help me becouse i have no ideea how to fix ... Really . Please.
 
Hi didraro,

Please execute "ip a" on the physical server and on 2 of the different VM's
Please replace the first 3 bits of your public IP addresses with something like 10.1.2.x for security reasons.

Sounds like a subnet mask miss-configuration.
 
Main server Proxmox :

root@Proxmox-VE ~ # ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether c8:60:00:be:3b:13 brd ff:ff:ff:ff:ff:ff
3: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether c8:60:00:be:3b:13 brd ff:ff:ff:ff:ff:ff
inet 5.9.61.70/27 brd 5.9.61.95 scope global vmbr0
inet6 fe80::ca60:ff:febe:3b13/64 scope link
valid_lft forever preferred_lft forever
4: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/void
inet6 fe80::1/128 scope link
valid_lft forever preferred_lft forever


1st OPENVZ MACHINE :

[root@Extra-Cheap ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/void
inet 127.0.0.1/32 scope host venet0
inet 5.9.76.21/32 brd 5.9.76.21 scope global venet0:0


2st OPENVZ MACHINE :

root@ZPanel [~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/void
inet 127.0.0.1/32 scope host venet0
inet 5.9.76.22/32 brd 5.9.76.22 scope global venet0:0



My Network Interfaces Configuration it is :

### Hetzner Online AG - installimage
# Loopback device:
auto lo
iface lo inet loopback


# device: eth0
auto eth0
iface eth0 inet manual


auto vmbr0
iface vmbr0 inet static
address 5.9.61.70
broadcast 5.9.61.95
netmask 255.255.255.224
gateway 5.9.61.65
# default route to access subnet
up route add -net 5.9.61.64 netmask 255.255.255.224 gw 5.9.61.65 eth0
bridge_ports eth0
bridge_stp off

iface eth0 inet6 static
address 2a01:4f8:161:6242::2
netmask 64
gateway fe80::1


I have 1 main ip : 5.9.61.70 and 4 aditionals ip's : 5.9.76.18 , 5.9.76.19 , 5.9.76.21 , 5.9.76.22
 
Hello,

I'm not familiar with Hetzner, but it looks like you have 5.9.76.16/29 either directly connected or routed to 5.9.61.70.
On the VM's try configuring the IP with netmask
255.255.255.248 and gateway 5.9.76.17.

Most definately the subnet is routed and gateway won't work, so you need to bring up the gateway on the physical machine.

On the Proxmox machine edit /etc/network/interfaces and replace the vmbr0 entry with this:

Code:
[COLOR=#333333]auto vmbr0[/COLOR]
[COLOR=#333333]iface vmbr0 inet static[/COLOR]
[COLOR=#333333]address 5.9.61.70[/COLOR]
[COLOR=#333333]broadcast 5.9.61.95[/COLOR]
[COLOR=#333333]netmask 255.255.255.224[/COLOR]
[COLOR=#333333]gateway 5.9.61.65[/COLOR]
[COLOR=#333333]# default route to access subnet[/COLOR]
[COLOR=#333333]up ip a a [/COLOR]5.9.76.17/29 dev [COLOR=#333333]vmbr0
[/COLOR][COLOR=#333333]down ip a d [/COLOR]5.9.76.17/29 dev [COLOR=#333333]vmbr0[/COLOR]
[COLOR=#333333]bridge_ports eth0[/COLOR]
[COLOR=#333333]bridge_stp off[/COLOR]

The route entry has no use in your config.

Everything should work fine after this.
 
up ip a a 5.9.76.17/29 dev vmbr0
down ip a d 5.9.76.17/29 dev vmbr0


are you shure are down ip a d ? ...

i add same as you add up? so means :




### Hetzner Online AG - installimage
# Loopback device:
auto lo
iface lo inet loopback


# device: eth0
auto eth0
iface eth0 inet manual


auto vmbr0




iface vmbr0 inet static
address 5.9.61.70
broadcast 5.9.61.95
netmask 255.255.255.224
gateway 5.9.61.65
# default route to access subnet
up ip a a 5.9.76.17/29 dev vmbr0
down ip a d 5.9.76.17/29 dev vmbr0
bridge_ports eth0
bridge_stp off


iface eth0 inet6 static
address 2a01:4f8:161:6242::2
netmask 64
gateway fe80::1






 

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!