Knowledge base
Adding more IP addresses than four
Posted by Piotr Malendo on 25.04.2013 20:15

There can be automatically added only first four IP addresses in Oktawave. Next one is allocated for instance, but it is not automatically configured. To set them up, you can use the following two ways (the example concerns Debian OS). 

1. Sign in to problematic instance (eg. via SSH), then edit the file /etc/network/interfaces and add further addresses to network auto configuration.

By default the file should have entries of four network interfaces (0, 1, 2, 3) and should look like this:

# The loopback network interface
auto lo eth0 eth1 eth2 eth3
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
allow-hotplug eth1
allow-hotplug eth2
allow-hotplug eth3

iface eth0 inet dhcp
iface eth1 inet dhcp
iface eth2 inet dhcp
iface eth3 inet dhcp

Next interfaces must be added manually. If you add another two, then the file should look like this:

# The loopback network interface
auto lo eth0 eth1 eth2 eth3 eth4 eth5
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
allow-hotplug eth1
allow-hotplug eth2
allow-hotplug eth3
allow-hotplug eth4
allow-hotplug eth5

iface eth0 inet dhcp
iface eth1 inet dhcp
iface eth2 inet dhcp
iface eth3 inet dhcp
iface eth4 inet dhcp
iface eth5 inet dhcp

After saving the file you should restart the instance. After reboot, all addresses should be visible in the system. 

 

2. Sign in to proper OCI instance and manually run the command ifconfig eth4 up ifconfig eth5 up and so for each extra address. Then you must manually run software that downloads the correct address for the following interfaces. For example, dhclient eth4 (note, after reboot the setting will be removed for permanent overwrite).

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.