Ask Your Question
3

add network interface to instance

asked 2014-05-01 13:34:01 -0500

brussels gravatar image

Hi, Is it possible to add new network interface to running instance?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-05-01 15:51:56 -0500

larsks gravatar image

Yes. Let's look:

$ nova help | grep interface
    interface-attach    Attach a network interface to a server.
    interface-detach    Detach a network interface from a server.
    interface-list      List interfaces attached to a server.

And for details on the interface-attach command:

$ nova help interface-attach
usage: nova interface-attach [--port-id <port_id>] [--net-id <net_id>]
                             [--fixed-ip <fixed_ip>]
                             <server>

So, assuming that you have a network available with UUID 9c20f065-0e20-49f0-9a29-1dd531f32092 and a server named "myserver", you could run:

$ nova interface-attach --net-id 9c20f065-0e20-49f0-9a29-1dd531f32092 myserver

And inside your instance you would now find a interface named eth1 (assuming that you only had a single interface previously).

edit flag offensive delete link more

Comments

Unfortunately, when I tried this I got:

ERROR: Network driver does not support this function. (HTTP 501)

Is that because I need to detach an existing interface before I attach a new one?

finkga gravatar imagefinkga ( 2014-12-12 20:42:22 -0500 )edit

Were You able to attach new interface? I have the same requirement.. please let me know the procedure

vedanu gravatar imagevedanu ( 2015-02-03 00:03:27 -0500 )edit

Because maybe you were using nova-network. After I use Neutron,everything goes well

sdfgagabird gravatar imagesdfgagabird ( 2015-10-15 08:58:31 -0500 )edit

Your Answer

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

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-05-01 13:34:01 -0500

Seen: 16,811 times

Last updated: May 01 '14