Ask Your Question
0

Create a router between 2 private subnets in a tenant

asked 2014-09-03 04:18:39 -0500

spradeepv gravatar image

I need to create 2 VM instances in different private subnets in the same tenant. Consider one network to be 192.168.10.0/24 and the other to be 10.10.10.0/24. Consider the IP addresses on the VM instances to be 192.168.10.2 and 10.10.10.2. Now I want to create a Router between these two VM instances so that the instances can communicate to each other.

Can this be achieved?

Creating 2 routers one for each subnet with gateway set to public network 172.24.4.1, will solve the problem, but I want to know whether a router can be created between 2 VM instances in 2 private subnets?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-09-03 05:00:27 -0500

sushma-korati gravatar image

Yes, We can create a router and attach the multiple subnets to the same router using "neutron router-interface-add" command.

edit flag offensive delete link more
0

answered 2014-09-03 05:18:22 -0500

updated 2014-09-03 05:20:05 -0500

Yes, it is possible.

Basically you have to create the two internal networks (with the provided subnets), the router, and add one interface on the router for each subnet. Then the VMs on the two internal networks are reachable from each other. Test it and let us know if it works.

edit flag offensive delete link more

Comments

This did not work out. I got things to work only if the router's gateway is set to public network' gateway.

spradeepv gravatar imagespradeepv ( 2014-09-08 06:24:24 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-03 04:18:39 -0500

Seen: 1,313 times

Last updated: Sep 03 '14