简体   繁体   中英

How to access MicroStack VM instance from external network

I have installed MicroStack and started a Cirros instance as it is described in MicroStack docs . Everything works as expected. The Cirros instance at 10.20.20.202:22 is available from the host where MicroStack is installed. The host IP/LAN is 192.168.56.103/24 .

However, MicroStack install created a virtual.network interface br-ex with IP 10.20.20.1 and the.network 10.20.20.0/24 is used as external.network in MicroStack/OpenStack, which is available only from the host. I thought that external.network and floating IPs should be on a physical interface of the host so that the floating IPs are accessible from 'outside', that is, floating IPs should be from 192.168.56.103/24 .

How could I access instances with floating IP from other computers than the host MicroStack is installed on?

I ran in to the same problem today and found I had to add a static route via my Hyper-V virtual switch address.

So for me route add 10.20.20.0/24 172.20.192.1 allowed me to access OpenStack from my Windows machine while Ubuntu/Microstack was running inside a VM.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM