Ask Your Question
0

communication between VM's present in different tenant netwoks

asked 2014-05-13 04:00:58 -0500

surya gravatar image

Hi,

Could 2 VM's present in different tenants be connected?

I have done the following

1) created a shared network in demo tenant and booted a VM with a NIC on this network( IP 192.168.0.2)

2)created another network(not shared) in admin tenant and booted a Vm with a NIC on this network(IP 172.16.74.2)

I had created a router in admin tenant and attached these networks as interfaces to the this router.Then I tried to ping the other VM .But packets are dropped somewhere.

This is the configuration present in the router namespace

sudo ip netns exec qrouter-82eb8bb2-ea7e-45a2-9edc-b512d37b5de9 ifconfig -a lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

qr-481a2de2-b3 Link encap:Ethernet HWaddr fa:16:3e:1d:8f:5c
inet addr:172.16.74.1 Bcast:172.16.74.255 Mask:255.255.255.0 inet6 addr: fe80::f816:3eff:fe1d:8f5c/64 Scope:Link UP BROADCAST RUNNING MTU:1500 Metric:1 RX packets:1910 errors:0 dropped:0 overruns:0 frame:0 TX packets:37 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:404742 (404.7 KB) TX bytes:3026 (3.0 KB)

qr-baaa1e22-58 Link encap:Ethernet HWaddr fa:16:3e:fc:83:8f
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::f816:3eff:fefc:838f/64 Scope:Link UP BROADCAST RUNNING MTU:1500 Metric:1 RX packets:1857 errors:0 dropped:0 overruns:0 frame:0 TX packets:67 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:398637 (398.6 KB) TX bytes:5582 (5.5 KB)

I can see the ICMP packets in the router namespace.But there is no ICMP reply .Please let me know if I'm doing wromg anywhere

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2014-05-13 04:36:39 -0500

SGPJ gravatar image

updated 2014-05-13 04:37:37 -0500

In my view both the private networks needs to be connected with Router (which has external gateway). assign floating IPs to both VMs, add ICMP rule in security group and then try ping. Also check IP & EB table rules.

edit flag offensive delete link more

Comments

Thanks for the reply shankar.But can't we connect 2 VM's in different tenants directly with a router without assigning floating IP's and external gateway?

surya gravatar imagesurya ( 2014-05-13 06:04:41 -0500 )edit

You can attach VMs to networks, networks are connected with router and you can add interfaces to router. There is no logic of connecting two VMs with router. You need to be logical.

SGPJ gravatar imageSGPJ ( 2014-05-13 11:43:01 -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: 2014-05-13 04:00:58 -0500

Seen: 725 times

Last updated: May 13 '14