How to use 192.168.1.* in cloudfoundry deploy [migrated from cf-release]
Original issue: https://github.com/cloudfoundry/cf-release/issues/839 Original poster: @yyl8815
Hi there, I am trying to deploy cloudfoundry in vsphere environment. My purpose is to use internal IP(192.168.1.*) for most of the VMs created for cloudfoundry. For those VMs which need to interact with external IP, i can give them an additional IP address.
It might be something like: > uaa_z1: 192.168.1.102 > ha_proxy: 192.168.1.103, 10.62.54.x
My original bosh director only has an external IP.
I want to understand:
Do I need to update the bosh director? Is it necessary that I need to give it an Internal IP? How to do that? Can I modify the VM settings(add another network) via vSphere and add another eth? Maybe i need to re-deploy the bosh director? How to configure the Network for the bosh manifest? I use bosh-init to deploy bosh.
For the CF VMs, how should i configure each of the jobs so that I can use 192.168.1.* for internal traffic and 10.62.54.* for external traffic?
Thank you very much for every help!
It really depends how you setup your routing.
To configure VMs to have additional nics you can specify multiple IPs in the manifest. See http://bosh.io/docs/networks.html for more details.
Regarding segregating traffic it kind of depends what you consider as internal traffic. There are components that communicate through public facing LB (e.g. api talking to uaa), which means that machines on private network must be able to route to public network.
HI @cppforlife
Thank you for sharing this. Appreciated.
What I am trying but not sure how to do is setting up a correct routing.
For example, I have only one IP address in 10.x.x.x which can access public network and a whole set of 192.168.1.x in a private vSwitch. I want to set most of CloudFoundry machines in 192.168.1.x. And the bridge( I don't know if it is uaa or haproxy) can have both 10.x.x.x and 192.x.x.x.
In this way, user can access the cloudfoundry via 10.x.x.x.xip.io and other VMs can also access public network through the bridge VM(such as download buildpack).
Closing this due to inactivity. We have improved documentation at bosh.io which hopefully explains a good amount of networking in BOSH. Feel free to create a new issue if you are still looking for more information.