Common Issues – No Networking on new OpenVZ VPS

Hello all,

Today I ran into an interesting issue where a VPS had no networking either inbound or outbound after setup. This is the error that would present when restarting network via init.d:

Bringing up interface venet0:
SIOCADDRT: Network is unreachable
SIOCADDRT: Network is unreachable

This issue also presented in that cPanel licenses could not activate not could any ping or host commands work properly. I eventually narrowed down the issue to the fact that the IPs that had been added to the VPS were not properly set to ARP by checking with the following command (run on the node):

arp | grep [INSERT IP HERE]

In order to resolve this, all I needed to do was add the arp entries for the IPs on the actual virtual environment by running the following commands on the node:

arp -s [INSERT IP HERE] `ifconfig eth0 | grep eth0 | awk '{print $5}'` pub

Make sure you run the command above for every IP on the VPS. This resolved the issue and all networking started working again properly.

Duplicate FTP Hosts in Show IP Usage

Ran into an issue today where a domain was showing in the cPanel “Show IP Address Usage” twice in the “FTP Usage” column. This was distressing the client so I looked into it and it appears this list is pulled from the /etc/pure-ftpd/ directory, which has the following directory structure:

[email protected](/etc/pure-ftpd)$ ll
total 16
drwxr-xr-x  2 root root   4096 Dec  8 13:42 ./
drwxr-xr-x 90 root root  12288 Dec  8 13:42 ../
lrwxrwxrwx  1 root wheel    25 Dec  8 13:40 1.2.3.4 -> /home/user1/public_ftp/
lrwxrwxrwx  1 root wheel    24 Dec  8 13:40 2.3.4.5 -> /home/user2/public_ftp/
lrwxrwxrwx  1 root wheel    25 Dec  8 13:40 3.4.5.6 -> /home/user3/public_ftp/
lrwxrwxrwx  1 root wheel    25 Dec  8 13:40 4.5.6.7 -> /home/user4/public_ftp/
lrwxrwxrwx  1 root wheel    25 Dec  8 13:40 5.6.7.8 -> /home/user5/public_ftp/
lrwxrwxrwx  1 root wheel    23 Dec  8 13:40 6.7.8.9 -> /home/user3/public_ftp/

In my case, user3 had two IPs pointing to his public_ftp directory which caused the issue. I removed the symlink and then the IP Usage showed properly.

Just a quick fix for anyone else who experiences this issue!