Ask Your Question
0

Two routers on the same network

asked 2013-07-10 04:32:58 -0500

anonymous user

Anonymous

updated 2014-02-14 04:31:03 -0500

darragh-oreilly gravatar image

Hi

I want to add 2 routers on the same network . But it still impossible I have this message:

Error: Failed to add_interface Unable to complete operation for network [...]. The IP address 10.0.0.1 is in use.

The 10.0.0.1 is the gateway of my network

What's wrong ?

edit retag flag offensive close merge delete

Comments

can you please tell me what is the subnetmask you have used??

ramprasvm gravatar imageramprasvm ( 2014-02-14 03:53:59 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-01-22 20:52:21 -0500

Zero cool gravatar image

You can specify a IP to the second router in the same network, then it works.....for example, the subnet is 10.1.1.0/24, assign 10.1.1.10....

edit flag offensive delete link more
1

answered 2014-02-14 04:29:12 -0500

darragh-oreilly gravatar image

updated 2014-02-14 04:32:14 -0500

The router-interface-add call tries to create a port with the subnet's gateway IP, so it will only work when adding the first router to the subnet. You can create a port for the second router's interface directly:

neutron port-create NETWORK

An IP address will be allocated for the port, and it will not be 10.0.0.1 - you will probably want to make a note of it. Then add this port as an interface to the second router with:

neutron router-interface-add ROUTER2_ID port=PORT_ID
edit flag offensive delete link more

Comments

Is this regarded a bug?

Mathias Ewald gravatar imageMathias Ewald ( 2014-02-14 05:28:44 -0500 )edit

I don't regard it as bug. The command makes the common case easy - attaching just one router to subnet - with `neutron router-interface-add ROUTER SUBNET`. For anything else it is not too difficult to use the above. See `neutron router-interface-add --help`

darragh-oreilly gravatar imagedarragh-oreilly ( 2014-02-14 05:46:16 -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

Stats

Asked: 2013-07-10 04:32:58 -0500

Seen: 1,424 times

Last updated: Jan 22 '15