Ask Your Question
0

specify subnet with router set gateway on external net with multiple subnets

asked 2015-02-18 01:16:38 -0500

groen692 gravatar image

updated 2015-02-18 04:31:01 -0500

Moe gravatar image

Hi, I have successfully added two external subnets on an external network. However it is unclear to me when I set the gateway on a router to specify in which of the two subnets this should be done.

neutron net-show ext-net

+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 32d03887-626e-4468-82da-1327ffa862bd |
| name                      | ext-net                              |
| provider:network_type     | flat                                 |
| provider:physical_network | external                             |
| provider:segmentation_id  |                                      |
| router:external           | True                                 |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   | 47da62bb-c102-47f7-94a9-5d07a3bdfbb8 |
|                           | 795b83f7-cec4-4d80-a8c6-474ebebd34a2 |
| tenant_id                 | 03110aa32a35426bbc7d861dcb61ad94     |
+---------------------------+--------------------------------------+

with router-gateway-set I can specify the external net but not the subnet

neutron router-gateway-set [-h] [--request-format {json,xml}] [--disable-snat] router-id external-network-id

Any comment?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-18 04:30:39 -0500

Moe gravatar image

You should try neutron router-interface-add to add any network other than ext-net we add other interfaces using this command instead.

try:

neutron router-list
neutron net-list
neutron interface-list 'ROUTER_ID'
neutron router-interface-add 'NET_ID'
edit flag offensive delete link more

Comments

router-interface-add Add an internal network interface to a router. I think is not what I am trying to do. I want to set the external gateway on the second external subnet

groen692 gravatar imagegroen692 ( 2015-02-18 05:08:00 -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: 2015-02-18 01:16:38 -0500

Seen: 1,090 times

Last updated: Feb 18 '15