If I understand you correctly, you would like to add an additional IP address 
to you current running instances? Firstly, It is not possible to add a nic  to 
a current running instance. One way of doing this would be to add a new network 
offering and then add a new network for the account, template the current 
running instance and redeploy a new instance from the template, selecting the 2 
networks you have set up (the original one and the new one you have set up). 
This would in effect give you 2 network interfaces with a dhcp address for each 
interface (providing you have dhcp as part of your network offering).

If you want to assign another IP to you current interface, you should be able 
to create an alias for your adapter. For centos, go to you network-script 
folder and run cp ifcfg-eth0 ifcfg-eth0:0. Then edit ifcfg-eth0:0 so it looks 
something like this:

# Xen Virtual Ethernet
DEVICE=eth0:0
BOOTPROTO=static
ONBOOT=yes
IPADDR="10.1.1.100"
NETMASK="255.255.255.0

Make sure you use an IP address and netmask in your ip schema assigned by the 
domain router to eth0 and change the BOOTPROTO to static. You may hit issues if 
your DHCP server assigns 10.1.1.100 someday. This setting is persistent across 
reboots & stop / starts too. That should help you get on your way hopefully. 
There are some other things which you might need to take in to account but see 
how you go first.

-Oli


From: Maurice Lawler [mailto:maurice.law...@me.com]
Sent: Thursday, April 04, 2013 5:37 AM
To: Cloud Dev
Cc: us...@cloudstack.apache.org; us...@cloudstack.apache.org
Subject: Reaching for the Stars: Secondary IP assignment!

Hello Cloud Stack Family,


I have attempted to the best of my ability to set this up. I have an instance 
(actually two) I would like to toss one additional IP address to two different 
instances. Cloud Stack 4.0.1 is proving to be rather difficult to accomplish 
this in.

Here is my set-up:

Single Server | CentOS 6.3 | KVM | CS 4.0.1

Yesterday, I was provided a helpful link: 
http://markmail.org/message/bt7pqnen26v2o63k

However, I am not making much sense out of that.

If ANYONE has ANY experience adding a secondary IP address -- please feel free 
to rescue me from the quick sand I am slowly sinking in!

I would greatly appreciate any and ALL help!

Thanks again!

- Maurice (aka: daoenix)

Reply via email to