Ask Your Question
0

neutron router set ipaddress

asked 2015-03-17 22:11:11 -0500

minimike gravatar image

updated 2015-03-18 00:51:26 -0500

dbaxps gravatar image

Hi there

How I could configure in netron the IP of an router? I must change it to another out of an DHCP-Range

(neutron) router-list
+--------------------------------------+--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| id                                   | name   | external_gateway_info                                                                                                                                                                | distributed | ha    |
+--------------------------------------+--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| c01034a5-ba70-4cdb-bafb-df1ec12c9b9b | router | {"network_id": "e33af8bc-9332-43a4-ba7d-18db9419d5c2", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "166eb91b-b791-4033-a227-b71dc24b9e6a", "ip_address": "10.0.1.2"}]} | False       | False |
+--------------------------------------+--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
(neutron) router-show c01034a5-ba70-4cdb-bafb-df1ec12c9b9b
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                 | Value                                                                                                                                                                                |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                                                                                                                 |
| distributed           | False                                                                                                                                                                                |
| external_gateway_info | {"network_id": "e33af8bc-9332-43a4-ba7d-18db9419d5c2", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "166eb91b-b791-4033-a227-b71dc24b9e6a", "ip_address": "10.0.1.2"}]} |
| ha                    | False                                                                                                                                                                                |
| id                    | c01034a5-ba70-4cdb-bafb-df1ec12c9b9b                                                                                                                                                 |
| name                  | router                                                                                                                                                                               |
| routes                |                                                                                                                                                                                      |
| status                | ACTIVE                                                                                                                                                                               |
| tenant_id             | ffd38b4759214b329328582b7cd09cb3                                                                                                                                                     |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
(neutron)
edit retag flag offensive close merge delete

Comments

Please, run:

ip netns | grep c01034a5-ba70-4cdb-bafb-df1ec12c9b9b

It should return qrouter namespce name

ip netns exec qrouter-c01034a5-ba70-4cdb-bafb-df1ec12c9b9b ifconfig
dbaxps gravatar imagedbaxps ( 2015-03-18 00:55:21 -0500 )edit

Neutron router usually picks up first available floating IP from external network. If your concern is private ip. Create new private sub-net. Detach interface of previous private network && attach interface to new one. Then rerun report above.

dbaxps gravatar imagedbaxps ( 2015-03-18 01:03:10 -0500 )edit

You can also create new router && attach interface to new private subnet && set gateway to external network.

dbaxps gravatar imagedbaxps ( 2015-03-18 01:06:05 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-19 18:26:35 -0500

minimike gravatar image

Thank you but this does not help me. I wanna set the IP in the public network of this router. From 10.0.0.1 to 10.0.1.202 I can not believe that is there no solution to handle this. Should I write an feature-request?

edit flag offensive delete link more

Comments

dbaxps gravatar imagedbaxps ( 2015-03-20 02:44:40 -0500 )edit
0

answered 2015-03-18 01:30:10 -0500

dbaxps gravatar image

updated 2015-03-20 03:06:01 -0500

Regarding Floating IP interval update view :-
https://ask.openstack.org/en/question...
https://ask.openstack.org/en/question...

Detach interface of previous private network && attach interface to new one. Then rerun report above. Neutron router will be switched to gateway IP of new private network from DHCP range you defined for new private network.
You can also create new router && attach interface to new private subnet && set gateway to external network

edit flag offensive delete link more

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: 2015-03-17 22:11:11 -0500

Seen: 132 times

Last updated: Mar 20 '15