Mitaka : selfservice network - ssh via private network

asked 2016-08-18 07:45:06 -0600

Michel gravatar image

updated 2016-08-18 15:06:38 -0600

rbowen gravatar image

Hi,

After installing cirros via self-service network :

+-------------------------+----------------------+--------+----------------------------------------+
| ID                      | Name                 | Status | Networks                               |
+-----------------------------------+----------------------+--------+------------------------------+
| 24cc35ca-4724-46a9-9... | selfservice-instance | ACTIVE | selfservice=172.16.1.4, xxx.xxx.xx.190 |
+-------------------------+----------------------+--------+----------------------------------------+

I am able to access the instance via my public ip : ssh cirros@xxx.xxx.xx.190

but to be able to access the instance via the private ip I have to do this (from the controller node):

ip netns exec qrouter-dd19a814-d681-4b0c-8bf7-0ffd79c2ac73 ssh cirros@172.16.1.4

$ ifconfig
eth0      Link encap:Ethernet  HWaddr FA:16:3E:DB:33:92  
          inet addr:172.16.1.4  Bcast:172.16.1.255  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fedb:3392/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1450  Metric:1
          RX packets:844 errors:0 dropped:0 overruns:0 frame:0
          TX packets:846 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:92004 (89.8 KiB)  TX bytes:87639 (85.5 KiB)

Is there a way to access the instance via the private ip without using ip netns exec qrouter-dd19a814-d681-4b0c-8bf7-0ffd79c2ac73(just ssh cirros@172.16.1.4) ?

Thanks & Regards,

Michel

edit retag flag offensive close merge delete