To remove IP address from a OpenVz contain use:

vzctl set <CTID> --ipdel <IP1>

Example:
vzctl set 101 --ipdel 10.0.0.1  --save

If you get "Can't locate local/lib.pm" ,  you can install the missing perl library using cpan.
cpan local::lib

If cpan is missing you should first install it using:
yum install cpan

If you get Can’t locate Time/HiRes.pm Perl , you can install the missing module using:
yum install perl-Time-HiRes

To can install Bundle::LWP

Use:

perl -MCPAN -e 'install Bundle::LWP'

If you get "Can't locate CPAN.pm in @INC" <- click here

If you get this error you have to install CPAN.
Use:
yum install cpan

When you install CSF  firewall you my have this error.
*WARNING* URLGET set to use LWP but perl module is not installed
csf and lfd are not disabled!

To fix this install perl-libwww using:
yum install -y perl-libwww

Step 1
yum install psmisc net-tools systemd-devel libdb-devel perl-DBI xfsprogs

Step 2
wget http://www.directadmin.com/setup.sh

Set Chmod
chmod 755 setup.sh

Step3 
Execute
./setup.sh

To restart CentOS network use:
systemctl restart network

To change the CentOS host name you should edit:
/etc/sysconfig/network

You can use your favorite editor (like vi)
vi /etc/sysconfig/network

* i prefer mcedit

Change Hostname: (replace 01.direkthost.net with your own hostname)
HOSTNAME=01.direkthost.net

Also edit, and add your own hostname:
/etc/hosts

Restart your network  (CentOS 6 / CentOS 7)
/etc/init.d/network restart
systemctl restart network