Ask Your Question
0

Problem on using "neutron router-gateway-set"

asked 2014-01-08 00:16:58 -0500

RBK gravatar image

Hi

I faced a problem while executing "neutron router-gateway-set" command.

[root@network01 ~]# neutron router-gateway-set 100 101 Unable to find router with name '100'

I have checked the /etc/neutron/l3_agent.ini, and it should be defined. any idea?

router_id = 100 gateway_external_network_id = 101ni, and

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-01-08 03:59:19 -0500

RBK gravatar image

Hi

I would like to double check the concepts on configuring Neutron.

I created external network named "ext-net" with below id

[root@network01 ~]# neutron net-list +--------------------------------------+----------+--------------------------------------------------+ | id | name | subnets | +--------------------------------------+----------+--------------------------------------------------+ | b6d746f0-c029-4ae7-89ac-606b84f5162e | ext-net | 69d3e3ee-1b2e-4405-9ead-9527581eee2a 10.0.0.0/24 | +--------------------------------------+----------+--------------------------------------------------+

Also ,created router "ext_to_int" with below id [root@network01 ~]# neutron router-list +--------------------------------------+------------+-----------------------+ | id | name | external_gateway_info | +--------------------------------------+------------+-----------------------+ | 59477cf6-669f-402a-ae0e-a92ba9233b39 | ext-to-int | null | +--------------------------------------+------------+-----------------------+

Also, created internal network named "demo-net with below id +--------------------------------------+----------+--------------------------------------------------+ | id | name | subnets | +--------------------------------------+----------+--------------------------------------------------+ | 027d2aa9-35f2-41bd-87b3-b618b6287449 | demo-net | f53237f4-7897-47c0-a5dc-f74562870281 10.5.5.0/24 |

So, I should execute below commands, am I correct?

[root@network01 ~]# neutron router-gateway-set 59477cf6-669f-402a-ae0e-a92ba9233b39 b6d746f0-c029-4ae7-89ac-606b84f5162e Set gateway for router 59477cf6-669f-402a-ae0e-a92ba9233b39

[root@network01 ~]# neutron router-interface-add 59477cf6-669f-402a-ae0e-a92ba9233b39 f53237f4-7897-47c0-a5dc-f74562870281
Added interface bbb796ff-0a41-4fe6-8412-3df9325cfbb6 to router 59477cf6-669f-402a-ae0e-a92ba9233b39.

Is it correct? If yes, what next?

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: 2014-01-08 00:16:58 -0500

Seen: 365 times

Last updated: Jan 08 '14