Multiple IP Addresses in Ubuntu

If you have a dedicated or colocated Ubuntu server with CeraNet and you've been assigned additional IP addresses then you will need to add them to your server.  If you have a dedicated server with CeraNet then the entire range of IP addresses would be configured for you when the server is deployed.  However, this article will apply if you have ordered more IP's after the initial deployment.

1) Add IP addresses to interfaces file

  • $ sudo vi /etc/network/interfaces
  • NOTE: type i in the vi editor to enter insert mode
  • NOTE: modify the file by adding the highlighted items as shown below. Replace the IP/Subnet with the information that has been assigned by CeraNet.  If you have added IP's in the past then the labels (eth0:0, eth0:1, etc.) should start with the next consecutive number.  The following example adds a /29 subnet to the NIC eth0.
auto eth0
iface eth0 inet static

address 192.168.1.2
netmask 255.255.255.248
gateway 192.168.1.1
up ip addr add 192.168.1.3/29 dev eth0 label eth0:0
down ip addr del 192.168.1.3/29 dev eth0 label eth0:0
up ip addr add 192.168.1.4/29 dev eth0 label eth0:1
down ip addr del 192.168.1.4/29 dev eth0 label eth0:1
up ip addr add 192.168.1.5/29 dev eth0 label eth0:2
down ip addr del 192.168.1.5/29 dev eth0 label eth0:2
up ip addr add 192.168.1.6/29 dev eth0 label eth0:3
down ip addr del 192.168.1.6/29 dev eth0 label eth0:3

2) Reboot server and verify that the IP's have been added.

  • $ sudo ifconfig eth0

If you need assistance please contact CeraNet Technical Support (existing clients only).

  • 39 Users Found This Useful
Was this answer helpful?

Related Articles

Configure Speed and Duplex in Ubuntu

If you have a colocated Ubuntu server with CeraNet then you may need to modify the speed and...

Configure Speed and Duplex in CentOS

If you have a colocated CentOS server with CeraNet then you may need to modify the speed and...

Multiple IP Addresses in Debian

If you have multiple IP addresses assigned to a server and you want to listen to all of them then...

Exit Gnome

Gnome is a GUI interface often used with Debian.  If you need to exit the GUI and go into the...

Change Time Zone in CentOS

Changing the time zone on a CentOS server is fairly easy.   First, you'll need to know your...