[SOLVED] Internal Network will only response after PING external

Astreon

Active Member
Sep 10, 2017
3
1
43
Good evening,

i've created an internal Network on host, and give each VM an additional internal IP.
The Setup is like follow:
node1 (enp0s31f6 + vmbr0 + vmbr1[internal])
|+ vms1 (vmbr0 + vmbr1)
|+ vms2 (vmbr0 + vmbr1)
|+ vms3 (vmbr0 + vmbr1)

I have on vms1 an active LDAP Server. On vms3 i have some Software theyre using LDAP Authentifcation and connect over the internal IP-Address. But this does not work.

If i ping from vms3 this is the result:
root@vms3 ~ # ping 10.10.10.11
PING 10.10.10.11 (10.10.10.11) 56(84) bytes of data.
^C
--- 10.10.10.11 ping statistics ---
10 packets transmitted, 0 received, 100% packet loss, time 9197ms

if i run the same command from PVEmaster (node1), it work:
root@node1 ~ # ping 10.10.10.11
PING 10.10.10.11 (10.10.10.11) 56(84) bytes of data.
64 bytes from 10.10.10.11: icmp_seq=1 ttl=64 time=0.200 ms

BUT, if i ping over the public IP from vms1, and run after the same ping command to internal network, it work for about 5 minutes.
root@vms3 / # ping 10.10.10.11
PING 10.10.10.11 (10.10.10.11) 56(84) bytes of data.
64 bytes from 10.10.10.11: icmp_seq=1 ttl=64 time=0.185 ms
64 bytes from 10.10.10.11: icmp_seq=2 ttl=64 time=0.377 ms


Where is my mistake?
i've enclosed my network configuration and hosts configuration:
host1 (proxmox Node):
Code:
auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp0s31f6
iface enp0s31f6 inet static
  address xx.xx.xx.xx
  netmask 255.255.255.192
  gateway xx.xx.xx.xx
  up route add -net xx.xx.xx.xx netmask 255.255.255.192 gw xx.xx.xx.xx dev enp0s31f6

auto vmbr0
iface vmbr0 inet static
  address xx.xx.xx.xx
  netmask 255.255.255.255
  bridge_ports none
  bridge stp off
  bridge_fd 0
  up ip route add xx/32 dev vmbr0
  up ip route add xx/32 dev vmbr0
  up ip route add xx/32 dev vmbr0
  up ip route add xx/32 dev vmbr0
  up ip route add xx/32 dev vmbr0
  up ip route add xx/32 dev vmbr0

auto vmbr1
iface vmbr1 inet static
  address 10.10.10.10
  netmask 255.255.255.0
  bridge_ports none
  bridge_stp off
  bridge_fd 0
  post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o enp0s31f6 -j MASQUERADE
  post-down iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o enp0s31f6 -j MASQUERADE

Example VMS Network: vmbr1 on each host the same, except changed IP
Code:
auto lo
iface lo inet loopback

auto ens18
iface ens18 inet static
  address xx.xx.xx.xx
  netmask 255.255.255.255
  pointopoint xx.xx.xx.xx
  gateway xx.xx.xx.xx

auto ens19
iface ens19 inet static
  address 10.10.10.11
  netmask 255.255.255.0
  pointopoint 10.10.10.10
  gateway 10.10.10.10

/etc/hosts from vms3
Code:
127.0.0.1    localhost
127.0.1.1    vms1 vs1.xx.xx
xx.xx.xx.xx    vms1 vs1.xx.xx
10.10.10.10    node1.xx.xx node1
10.10.10.11    vms1.xx.xx vms1
10.10.10.12    vms2.xx.xx vms2
 
Weoll i've found the fault.
using network instead pointopoint to 10.10.10.0
and set broadcast. let gateway away. now works perfect for me

Code:
auto ens19
iface ens19 inet static
  address 10.10.10.13
  netmask 255.255.255.0
  network 10.10.10.0
  broadcast 10.10.10.255
 

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!