Instructions to add IP for DirectAdmin

First you need to know the basic steps to create user hosting: Create a Reseller package > Create a Reseller > Create a hosting package in Reseller > Create a User (hosting)

See more instructions at: https://www.bkns.vn/huong-dan-tao-reseller-hosting-tren-directadmin-vps-linux.html

Let’s start!

Step 1:

You click on IP Management

Step 2:

Before going to this step, you need to create a Reseller first

After Click Assign to we get:

Step 3:

You go to User Reseller and create User hosting as shown below

Next, you SSH into the VPS to create a virtual IP

Use the following commands:

vi /etc/sysconfig/network-scripts/ifcfg-eth0:0

Fill in the information to assign IP to the virtual network card:

BOOTPROTO=none DEFROUTE=yes DEVICE=eth0:0 GATEWAY=11.11.11.1               #3 Octet đầu giống IP, Octet 4 để 1 IPADDR=11.11.11.11               #IP khoi tao trong DirectAdmin NETMASK=255.255.255.0 ONBOOT=yes TYPE=Ethernet USERCTL=no

Finally, restart the network card via the command:

service network restart

Good luck!

Minh BKNS

By Nguyen Manh Cuong

Nguyen Manh Cuong is the author and founder of the nguyendiep blog. With over 14 years of experience in Online Marketing, he now runs a number of successful websites, and occasionally shares his experience & knowledge on this blog.

Leave a comment

Your email address will not be published. Required fields are marked *