neutron router set ipaddress
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)
Please, run:
It should return qrouter namespce name
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.
You can also create new router && attach interface to new private subnet && set gateway to external network.