Ask Your Question
0

Is there a way to enable active instance to auto detect a new virtual NIC ?

asked 2013-11-27 01:11:01 -0500

chen-li gravatar image

updated 2013-11-27 01:11:45 -0500

Hi list

I'm working under CentOS 6.4 + Havana.

I noticed there is a command can add a new virtual port to an active instance. nova interface-attach

But, after this command, I have to get into the instance, and edit the new virtual NIC's configuration file to let it get IP from dhcp.

After a new virtual port been added, is there a way to enable the instance to auto detected the new NIC and get IP from dhcp by itself ?

Thanks. -chen

edit retag flag offensive close delete

Comments

This is OS dependent. If you use some linux variant, you could try to add an udev rule to do this when the interface is attached. Maybe this can help you start: http://askubuntu.com/questions/121304/start-script-when-connecting-phone-through-usb

Cristi Falcas ( 2013-12-12 14:12:05 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-12-10 13:44:14 -0500

gmi gravatar image

You ccould change the base image and define network interface scripts for multiple interfaces, e.g ifcfg-eth0, ifcfg-eth1, ifcfg-eth2, etc.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
2 followers

Stats

Asked: 2013-11-27 01:11:01 -0500

Seen: 101 times

Last updated: Dec 10 '13