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.
iface eth0 inet static
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).