← Back to team overview

openstack team mailing list archive

Re: How to ping/ssh instance outside openstack server?

 

The issue is your laptop doesn't have a route to that network.  Try running
this on your laptop to see if this makes it work:

sudo ip route add 192.168.4.0/24  dev wlan0 # replace wlan0 with the
correct interface

If that doesn't work perhaps give this one a shot:

route add -net 192.168.4.0 netmask 255.255.255.0 gw 192.168.1.10 dev wlan0
# replace wlan0 with correct interface

The correct solution though is to add a static route for 192.168.4.0/24 to
192.168.4.1 on your router.

Aaron

On Sun, Feb 17, 2013 at 9:25 PM, jeffty <wantwatering@xxxxxxxxx> wrote:

> Hello,
>
> I installed openstack in my PC. The IP of my router is 192.168.1.1 and
> the PC's nic IP is static - 192.168.1.2.
>
> Then I created images and instances, assigned private IP as manual
> states in website. e.g. 192.168.4.40.
>
> I can ping/ssh instance in PC 192.168.1.10. But fail to do that in my
> laptop(IP: 192.168.1.3).
>
> How to access instance then? Do I need to configure sth for that?
>
> And I found that if I run
>
> sudo kvm -m xxx file=linux.img ... -vnc :0
>
> The instance can access Internet. But if it's running automatically by
> Nova, I cannot connect to Internet when SSH/VNC onto it.
>
> Thanks a lot.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>

References