Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config): draft spec for network config #58

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions deploy/dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ zones:
type: CNAME
values:
- delta.nicklasfrahm.dev

searchDomains:
- srv.nicklasfrahm.dev
23 changes: 23 additions & 0 deletions deploy/net.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
routers:
- name: alfa
gateway4: 172.17.0.0/27
gateway6: fdff:ffff:ffff:ffff::0:0/128
subnets:
- vlan: 10
address4: 10.0.10.254/24
- vlan: 11
address4: 10.0.11.254/24
- vlan: 12
address4: 10.0.12.254/24
- name: bravo
gateway:
ipv4:
subnet: 172.17.0.32/27
- name: charlie
gateway:
ipv4:
subnet: 172.17.0.64/27
- name: delta
gateway:
ipv4:
subnet: 172.17.0.96/27
15 changes: 15 additions & 0 deletions docs/ipam.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ This section covers the autonomous system (AS) numbers and IP addresses of the r
| `charlie` | `172.31.255.2/32` | `65002` | Edge router for site `deflf02`. |
| `delta` | `172.31.255.3/32` | `65003` | Edge router for site `dksjb01`. |

## Gateway subnets

This section contains the IP addresses of gateway subnets. In the gateway subnets, only the **last 4 IPs** before the broadcast IP are dynamically allocated via DHCP for disaster recovery purposes. All other IPs are reserved for **tunnel link IPs**, e.g. `wireguard` or similar.

> **STATUS: Pending implementation. Create PoC and then roll out to entire network.**

| Hostname | Network | `br0` | `lo` | Description |
| --------- | ---------------- | ------------- | ------------- | --------------------------------- |
| `alfa` | `172.17.0.0/27` | `172.17.0.1` | `172.17.0.2` | Gateway subnet for site `dkaar1`. |
| `bravo` | `172.17.0.32/27` | `172.17.0.33` | `172.17.0.34` | Gateway subnet for site `deflf1`. |
| `charlie` | `172.17.0.64/27` | `172.17.0.65` | `172.17.0.66` | Gateway subnet for site `deflf2`. |
| `delta` | `172.17.0.96/27` | `172.17.0.97` | `172.17.0.98` | Gateway subnet for site `dkaar2`. |

Within the gateway subnets, there are some reserved IPs. following IP addresses are reserved:

## Transit networks

This section contains the IP addresses of transit networks.
Expand Down