For some applications, like running DNS on a single server, a second IP address is needed. To enable this on your VPS, some configuration adjustments have to be done.
=> DirectAdmin server: Admin Tools --> IP Management --> Add IP
=> cPanel server: Home --> IP Functions --> Add a New IP Address
=> CentOS/Fedora/Scientific Linux:
Disable cloud init and make sure that your primary ip is set to static instead of DHCP.
Edit /etc/sysconfig/network-scripts/ifcfg-eth0 and add the following at the bottom of the file:
IPADDR0=192.168.1.2
NETMASK0=255.255.255.0
Reload the network config: /etc/init.d/network restart
Initiate a restart of your server from your Tilaa dashboard.
=> Ubuntu/Debian without netplan:
Disable cloud init and make sure that your primary ip is set to static instead of DHCP.
Modify /etc/network/interfaces and modify it to look like this:
allow-hotplug eth0
iface eth0 inet dhcp
up /sbin/ip addr add 192.168.1.2/24 dev eth0
Reload the network configuration: service networking restart
Initiate a restart of your server from your Tilaa dashboard.
Of course, you'll have to replace 192.168.1.2 with the IP address we supplied to you.
=> Ubuntu/Debian with netplan:
Create a file called '/etc/netplan/60-static.yaml' with the following content:
network:
version: 2
renderer: networkd
ethernets:
ens3:
addresses:
- 192.x.x.x/32
And issue the following commands to test your configuration and make it permanent:
netplan try
netplan apply
=> Windows server 2012/2008
Please make sure that you’ve your primary IP address manually configured via the video display option from your Tilaa dashboard otherwise you can’t configure your additional IP address. All related network information can be found on your Tilaa dashboard -> server overview -> network tab.
Navigate to:
start -> control panel -> network and internet -> view network status and tasks -> "ethernet" or "Local Area Connection" -> properties and open the properties of “internet Protocol Version 4 (TCP/IPv4)” and manually configure your primary IP address.
When you have your primary IP manually configured return back to the properties of “internet Protocol Version 4 (TCP/IPv4)” and click the advanced button and click the add button to add an additional IP.
Comments
Article is closed for comments.