New CTs have no Internet but LAN works

webdev

New Member
Sep 19, 2014
2
0
1
Hi all,

The problem we have was on PVE 3.2 and after upgrade to 3.3 is still.

After creating new CT on a free/unsued IP CT cannot go outside to the Internet. I can ping other VM/CTs or PVE node and back also but not the Internet addresses. But if I stop the CT, lunch a VM with this IP everything works OK. And after that when stop this VM and start the CT again it also works! Magic! :) It's like the VM triggers the IP to work, but CT not.

Any ideas how to solve this so CT is running online from the start without this VM-stuff in the middle?

If you need more data, please ask.
 
Hello webdev,

If you need more data, please ask.

Can you post
- host´s /etc/network/interfaces
- host´s /etc/pve/openvz/pve/<ct-id>.conf
- failed and successful ping examples

I rough idea (even I cannot imagine details) is that your provider´s switch checks MAC addresses and only after learning that the VM has an accepted address the switch port allows connections.

Kind regards

Mr.Holmes
 
New thing... It's only about venet. Bridge mode for CT works fine. And also CT bridge mode trigers the IP to work. So creating CT with bridged interface and setting up IP works. After that we can remove bridged interface and set up this IP via venet, and it also works. Setting up the IP via venet in the first place doesn't work :(

We do have this problem also on a fresh new install of Proxmox 3.3. In both cases we use the same switches. We operate own DC so we can play a little with it. The switch is: HP V1910-48G Switch Software Version Release 1111P02

The last CT was created in the middle of August without a problem. Can be that previosly there was a VM on this IP. We barely use CTs as we use FreeBSD mainly. Proxmox was reinstalled 3-4 months ago (new server, diffrent rack/switch, but same model) and all VMs and CTs started without a problem after moving them to the new instalation (via backup transfer and restore on the new server).

After PVE server restart all VM/CT start up and those that had Internet works, other don't like before.

Below is the network config
- vmbr0 - WAN
- vmbr1 - LAN for backups etc.

Code:
root@vps:~# cat /etc/network/interfaces
# network interface settings
auto lo
iface lo inet loopback


iface eth0 inet manual


iface eth1 inet manual


iface eth2 inet manual


iface eth3 inet manual


auto vmbr0
iface vmbr0 inet static
        address  xxx.xxx.113.59
        netmask  255.255.255.224
        gateway  xxx.xxx.113.33
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0


auto vmbr1
iface vmbr1 inet static
        address  192.168.10.3
        netmask  255.255.255.0
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0

This CT is the one that is offline now.
Code:
root@vps:~# cat /etc/pve/openvz/108.conf
ONBOOT="no"


PHYSPAGES="0:512M"
SWAPPAGES="0:512M"
KMEMSIZE="232M:256M"
DCACHESIZE="116M:128M"
LOCKEDPAGES="256M"
PRIVVMPAGES="unlimited"
SHMPAGES="unlimited"
NUMPROC="unlimited"
VMGUARPAGES="0:unlimited"
OOMGUARPAGES="0:unlimited"
NUMTCPSOCK="unlimited"
NUMFLOCK="unlimited"
NUMPTY="unlimited"
NUMSIGINFO="unlimited"
TCPSNDBUF="unlimited"
TCPRCVBUF="unlimited"
OTHERSOCKBUF="unlimited"
DGRAMRCVBUF="unlimited"
NUMOTHERSOCK="unlimited"
NUMFILE="unlimited"
NUMIPTENT="unlimited"


# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="4G:4613734"
DISKINODES="800000:880000"
QUOTATIME="0"
QUOTAUGIDLIMIT="0"


# CPU fair scheduler parameter
CPUUNITS="1000"
CPUS="1"
HOSTNAME="test123.xxxxxx.pl"
SEARCHDOMAIN="xxxxxx.pl"
NAMESERVER="8.8.8.8"
IP_ADDRESS="xxx.xxx.113.46"
VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/var/lib/vz/private/108"
OSTEMPLATE="debian-7.0-standard_7.0-2_i386.tar.gz"
root@vps:~#
 
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!