VM access from external network [closed]

asked 2014-09-01 23:37:41 -0500

ashu gravatar image

updated 2015-06-04 10:53:28 -0500

rbowen gravatar image

Hi

I'm trying to access VM from external network and I'm able to do the same i.e able to ping VM from external network through floating IP.

However the problem what I'm facing is that I'm not able to ping external network from VM. Please help regarding this.

Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by rbowen
close date 2015-11-16 15:46:35.785662

Comments

What shows ifconfig for Cirros VM ?
$ curl http://169.254.169.254/latest/meta-data

dbaxps gravatar imagedbaxps ( 2014-09-01 23:43:19 -0500 )edit

From VM I'm able to ping the router Ip 192.168.4.33 but not abe to ping ext GW

Below are the details ...

Vm Ip-- 192.168.2.4 floating Ip - 192.168.4.34 VM gateway -- 192.168.2.1

Router Ip -- 192.168.2.1 192.168.4.33

Ext gateway Ip - 192.168.4.1 Ext Machine Ip - 192.168.4.22

ashu gravatar imageashu ( 2014-09-01 23:52:16 -0500 )edit

Does curl work from within your VM ?

dbaxps gravatar imagedbaxps ( 2014-09-02 00:03:42 -0500 )edit

NO - the curl is not working.

ashu gravatar imageashu ( 2014-09-02 00:09:58 -0500 )edit

It's critical. You don't have access to metadata. Please,run
$ netstat -lntp | grep 8775

dbaxps gravatar imagedbaxps ( 2014-09-02 01:21:59 -0500 )edit

The command netstat -lntp | grep 8775 displays ..

netstat -lntp | grep 8775
tcp        0      0 0.0.0.0:8775            0.0.0.0:*               LISTEN      7854/python
ashu gravatar imageashu ( 2014-09-02 01:27:58 -0500 )edit

Now
$ ps -ef | grep 7854

dbaxps gravatar imagedbaxps ( 2014-09-02 01:34:16 -0500 )edit

ps -ef | grep 7854 root 7854 1 1 12:36 ? 00:01:34 python /usr/bin/nova-api root 7940 7854 0 12:36 ? 00:00:00 python /usr/bin/nova-api root 7999 7854 2 12:36 ? 00:02:27 python /usr/bin/nova-api

ashu gravatar imageashu ( 2014-09-02 01:38:59 -0500 )edit

neutron router-list
ip netns

dbaxps gravatar imagedbaxps ( 2014-09-02 01:53:37 -0500 )edit

neutron router-list

4dc37a08-2f09-4181-8866-9e00b8ba709b | router1 | {"network_id": "23ee94fb-7afc-4159-846a-fe8f029be2a1", "enable_snat": true} |

ip netns qrouter-4dc37a08-2f09-4181-8866-9e00b8ba709b qdhcp-47a046dc-dbda-4f10-9efe-a122b0a1b778

ashu gravatar imageashu ( 2014-09-02 03:46:47 -0500 )edit