Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2014-12-09 22:35:31 -0500

teju gravatar image

How to create a router to connect 2 subnets?

I have created 2 networks,2 subnets and 2 ports as below:

neutron net-create test1 neutron subnet-create --name subnet1_test1 test1 192.168.0.0/24 neutron port-create test1 --binding:profile type=dict vnic_type=hostdev

neutron net-create test2 neutron subnet-create --name subnet1_test2 test2 192.168.1.0/24 neutron port-create test2 --binding:profile type=dict vnic_type=hostdev

I've booted 2 instances,one in network test1 and other in network test2

The 2 instances cannot ping each other since they are in a different subnet.

How to create a router to make the instances ping each other?

Please specify the commands if possible, else provide links.

Please specify if we have to add any security group rules.

How to create a router to connect 2 subnets?

I have created 2 networks,2 subnets and 2 ports as below:

neutron net-create test1 test1;

neutron subnet-create --name subnet1_test1 test1 192.168.0.0/24 192.168.0.0/24;

neutron port-create test1 --binding:profile type=dict vnic_type=hostdevvnic_type=hostdev;

neutron net-create test2 test2;

neutron subnet-create --name subnet1_test2 test2 192.168.1.0/24 192.168.1.0/24;

neutron port-create test2 --binding:profile type=dict vnic_type=hostdevvnic_type=hostdev;

I've booted 2 instances,one in network test1 and other in network test2

The 2 instances cannot ping each other since they are in a different subnet.

How to create a router to make the instances ping each other?

Please specify the commands if possible, else provide links.

Please specify if we have to add any security group rules.

click to hide/show revision 3
No.3 Revision

How to create a router to connect 2 subnets?

I have created 2 networks,2 subnets and 2 ports as below:

neutron net-create test1;

test1; neutron subnet-create --name subnet1_test1 test1 192.168.0.0/24;

192.168.0.0/24; neutron port-create test1 --binding:profile type=dict vnic_type=hostdev;

vnic_type=hostdev; neutron net-create test2;

test2; neutron subnet-create --name subnet1_test2 test2 192.168.1.0/24;

192.168.1.0/24; neutron port-create test2 --binding:profile type=dict vnic_type=hostdev;

vnic_type=hostdev;

I've booted 2 instances,one in network test1 and other in network test2

The 2 instances cannot ping each other since they are in a different subnet.

How to create a router to make the instances ping each other?

Please specify the commands if possible, else provide links.

Please specify if we have to add any security group rules.