Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Shift IP Ranges #12

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Shift IP Ranges #12

wants to merge 1 commit into from

Conversation

7hunderbird
Copy link

@7hunderbird 7hunderbird commented Sep 5, 2018

If we increment the IP ranges from .7, .8, .9 to .16, .17, .18, it will play nicer with other canonical bosh-deployment and cf-deployment repositories.

This is because the cf-deployment sets up a cloud-config range of 10.244.0.0/20. That only has a usable range to .15:

$ sipcalc 10.244.0.0/20
-[ipv4 : 10.244.0.0/20] - 0

[CIDR]
Host address		- 10.244.0.0
Host address (decimal)	- 183762944
Host address (hex)	- AF40000
Network address		- 10.244.0.0
Network mask		- 255.255.240.0
Network mask (bits)	- 20
Network mask (hex)	- FFFFF000
Broadcast address	- 10.244.15.255
Cisco wildcard		- 0.0.15.255
Addresses in network	- 4096
Network range		- 10.244.0.0 - 10.244.15.255
Usable range		- 10.244.0.1 - 10.244.15.254

And the convention in bosh-lite has been to add a route for internal containers to be on a 10.244.0.0/16 range. So we can get to more networks than just the cf-deployment's /20.

I've tested the .16, .17, .18, and all three deployments (bosh-deployment, cf-deployment, cf-mysql-deployment) work better "out of the box" with these changes.

If we increment the IP ranges from `.7`, `.8`, `.9` to `.16`, `.17`, `.18`, it will play nicer with other canonical bosh-deployment cf-deployment repositories.

This is because the cf-deployment sets up a cloud-config range of `10.244.0.0/20`.  That only has a usable range to `.15`:

```
$ sipcalc 10.244.0.0/20
-[ipv4 : 10.244.0.0/20] - 0

[CIDR]
Host address		- 10.244.0.0
Host address (decimal)	- 183762944
Host address (hex)	- AF40000
Network address		- 10.244.0.0
Network mask		- 255.255.240.0
Network mask (bits)	- 20
Network mask (hex)	- FFFFF000
Broadcast address	- 10.244.15.255
Cisco wildcard		- 0.0.15.255
Addresses in network	- 4096
Network range		- 10.244.0.0 - 10.244.15.255
Usable range		- 10.244.0.1 - 10.244.15.254
```

And the [convention in bosh-lite](https://bosh.io/docs/bosh-lite/) has been to add a route for internal containers to be on a `10.244.0.0/16` range.  So we can get to more networks than just the cf-deployment's `/20`.

I've test the `.16`, `.17`, `.18`, and all three deployments (bosh-deployment, cf-deployment, cf-mysql-deployment) work better "out of the box" with these changes.
@cfdreddbot
Copy link

Hey 7hunderbird!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.

@cf-gitbot
Copy link
Collaborator

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/160301525

The labels on this github issue will be updated when the story is started.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

Successfully merging this pull request may close these issues.

3 participants