Tuesday, April 14, 2015

Establishing access to public devstack (stack) network from LAN

To access VMs running within  stack (devstack) AIO instance on Ubuntu 14.04 host 192.168.1.57 from another boxes located on the same office LAN having address 192.168.1.0/24 manage as follows :-

Run on Devstack Node
# Add route to LAN
$ sudo route add -net  192.168.1.0/24 gw 192.168.1.57

Run on LAN box
# Add route to devstack public network  via HOST_IP
$ sudo route add -net 192.168.10.0/24 gw 192.168.1.57

where 192.168.1.57 HOST_IP of  Devstack Node running stack instance
192.168.10.0/24  is  Devstack's public  network. 192.168.1.0/24 is  LAN address

*************************************************************************************
If stack instance is running on KVM (Ubuntu 14.04) on Libvirt Subnet to access stack VMs running inside KVM (Ubuntu 14.04) from F21 box hosting KVM Hypervisor  run from within  KVM (Ubuntu 14.04)
*************************************************************************************

# route add -net 192.168.1.0/24  gw 192.168.122.57 

where 192.168.122.57 is KVM's IP on standard libvirt subnet 192.168.122.0/24 , 192.168.1.0/24 is subnet hosting machine 192.168.1.47 running KVM Hypervisor


On machine 192.168.1.47,which is Fedora 21 box plus KVM/QEMU/LIBVIRT
run :-

# route add -net 192.168.12.0/24 gw 192.168.122.57

where 192.168.12.0/24 is devstack public subnet running on KVM (Ubuntu 14.04) hosting  stack (e.g. devstack) instance.