You can use max 3 IP for one VPS in VULTR. After you buy more IP for your VPS in VULTR panel, i can not use it immediatly, you must config your VPS to use it. It will take some minutes to finish it. Be sure, you have backup your VPS first.
In this post, i will show you how to add more one IP to VULTR VPS.
Windows Server 2012
Using cmd.exe
:
1 2 |
netsh interface ipv4 add address "Ethernet" 1.2.3.5 255.255.255.0 |
Using a remote login:
- Open the windows control panel. You can access it from the start menu.
- Click “Network and Internet”.
- Click “Network and Sharing Center”.
- Click “Change adapter settings”.
- Right click on the primary ethernet adapter, and click “Properties”. The “Ethernet Properties” window will open.
- Select “Internet Protocol Version 4 (TCP/IPv4)”, then click the “Properties” button. The “Internet Protocol Version 4 (TCP/IPv4) Properties” window will open.
- Click “Advanced…”. The “Advanced TCP/IP Settings” window will open.
- In the “IP addresses” group, click “Add…”. The “TCP/IP Address” window will open.
- Fill in the “IP address” and “Subnet mask” boxes. Use “1.2.3.5” for the IP address and “255.255.255.0” as the subnet mask.
- Click “Add”. The “TCP/IP Address” window will close.
- Click “OK” on the “Advanced TCP/IP Settings” window. This window will close.
- Click “OK” on the “Internet Protocol Version 4 (TCP/IPv4) Properties” window. This window will close.
- Click “OK” on the “Ethernet Properties” window. This window will close, and your secondary IP address will be configured.
CentOS 6
- Change the boot protocol from “dhcp” to “static” on eth0. If you are already using a static binding, you can skip this step. Otherwise, follow these directions:
- Open
/etc/sysconfig/network-scripts/ifcfg-eth0
in a text editor. - Change
BOOTPROTO=dhcp
toBOOTPROTO=static
. - Add these lines at the end of the file. Substitute “
[mainip]
“, “[netmask]
“, and “[gateway]
” with the values from the “IPv4” tab on your Vultr control panel.
1234IPADDR=[mainip]NETMASK=[netmask]GATEWAY=[gateway] - Run
ifup eth0
.
- Open
- Create the file
/etc/sysconfig/network-scripts/ifcfg-eth0:1
. - Populate the file with the following contents:
12345DEVICE=eth0:1BOOTPROTO=staticIPADDR=1.2.3.5ONBOOT=yes - Activate the alias with the following command:
12ifup eth0:1
Ubuntu 12.04
- Add the following lines in
/etc/network/interfaces
:
12345auto eth0:0iface eth0:0 inet staticaddress 1.2.3.5netmask 255.255.255.0 - Activate the alias with the following command:
12ifup eth0:0
FreeBSD 10
- Add the following lines in
/etc/rc.conf
:
12ifconfig_vtnet0_alias0="1.2.3.5 netmask 255.255.255.0" - Run the following command to restart networking:
12/etc/rc.d/netif restart && /etc/rc.d/routing restart
Source: VULTR