Ask Your Question
2

how can we add additional ip address to the same port-id?

asked 2014-09-27 02:58:19 -0500

senyapsudah gravatar image

i would like to know is it possible to add additional ip address to the existing port id?

for example:

+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                           |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| 5222f7d6-e5e6-41f0-8e55-794cdfae187b |      | fa:16:3e:93:6b:8c | {"subnet_id": "e6fea097-dea5-47ac-baa9-4e88854054e8", "ip_address": "10.10.10.6"} |
|                                      |      |                   | {"subnet_id": "e6fea097-dea5-47ac-baa9-4e88854054e8", "ip_address": "10.10.10.7"} |
|                                      |      |                   | {"subnet_id": "e6fea097-dea5-47ac-baa9-4e88854054e8", "ip_address": "10.10.10.8"} |
| 93c76066-19e3-4766-a077-087ee8b10864 |      | fa:16:3e:31:c1:88 | {"subnet_id": "e6fea097-dea5-47ac-baa9-4e88854054e8", "ip_address": "10.10.10.3"} |
| e3e93de7-827a-4402-a545-17f79538d3a6 |      | fa:16:3e:12:e9:57 | {"subnet_id": "e6fea097-dea5-47ac-baa9-4e88854054e8", "ip_address": "10.10.10.2"} |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+

say if i would like to add additional ip address to the existing port id: e3e93de7-827a-4402-a545-17f79538d3a6

do we have specific step to run? i try neutron port-update but didn't find it working.

i need to have this as if the owner of the instance which connected to this port would like to have multiple ips, i believe i need to add to the same port-id if they want to add to seperate network then it would be easy.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2014-09-27 09:54:44 -0500

fgorbat gravatar image

updated 2014-09-27 09:59:29 -0500

yes, it is possible by running neutron port-update.

See example:

neutron port-update e3e93de7-827a-4402-a545-17f79538d3a6 --allowed_address_pairs list=true type=dict ip_address=10.10.10.100

for validation

neutron port-show e3e93de7-827a-4402-a545-17f79538d3a6

in same manner, you can define more addresses by giving list i.e

ip_address=10.10.10.100 ip_address=10.10.10.101

I'm using it for defining IP aliases (VIPs)

edit flag offensive delete link more

Comments

thanks for your input. finally got it working solve part of my issue.

senyapsudah gravatar imagesenyapsudah ( 2014-09-28 06:37:09 -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-09-27 02:58:19 -0500

Seen: 2,377 times

Last updated: Sep 27 '14