Skip to content

Commit 33ba058

Browse files
docs: ip address example (#4049)
1 parent 8c43b67 commit 33ba058

File tree

1 file changed

+84
-1
lines changed

1 file changed

+84
-1
lines changed

docs/content/accelerator/starter-terraform/options/ip-addresses.md

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,87 @@ The example configuration files that include connectivity include an out of the
88

99
In order to update the IP ranges, you can update the `custom_replacements` > `names` block setting that includes the IP ranges. For example if you prefer to use `172.16` or `192.168`, they could update the ranges as follows:
1010

11-
{{< include file="/static/examples/tf/accelerator/config/custom_replacements.names.ip_ranges.tfvars" language="terraform" >}}
11+
{{< highlight terraform "linenos=table" >}}
12+
#####################################
13+
### Hub and Spoke Virtual Network ###
14+
#####################################
15+
16+
# Example of 172.16 IP ranges for a hub and spoke Virtual Network
17+
# NOTE: The 172.16 prefix is only suitable for medium sized deployments as it only supports 1,000,000 ip addresses
18+
custom_replacements = {
19+
names = {
20+
# IP Ranges Primary
21+
# Regional Address Space: 172.16.0.0/16
22+
primary_hub_address_space = "172.16.0.0/16"
23+
primary_hub_virtual_network_address_space = "172.16.0.0/22"
24+
primary_firewall_subnet_address_prefix = "172.16.0.0/26"
25+
primary_firewall_management_subnet_address_prefix = "172.16.0.192/26"
26+
primary_bastion_subnet_address_prefix = "172.16.0.64/26"
27+
primary_gateway_subnet_address_prefix = "172.16.0.128/27"
28+
primary_private_dns_resolver_subnet_address_prefix = "172.16.0.160/28"
29+
30+
# IP Ranges Secondary
31+
# Regional Address Space: 172.17.0.0/16
32+
secondary_hub_address_space = "172.17.0.0/16"
33+
secondary_hub_virtual_network_address_space = "172.17.0.0/22"
34+
secondary_firewall_subnet_address_prefix = "172.17.0.0/26"
35+
secondary_firewall_management_subnet_address_prefix = "172.17.0.192/26"
36+
secondary_bastion_subnet_address_prefix = "172.17.0.64/26"
37+
secondary_gateway_subnet_address_prefix = "172.17.0.128/27"
38+
secondary_private_dns_resolver_subnet_address_prefix = "172.17.0.160/28"
39+
}
40+
}
41+
42+
# Example of 192.168 IP ranges for a hub and spoke Virtual Network
43+
# NOTE that the 192.168 prefix is only suitable for a small, single region deployment as it only supports 65,000 ip addresses
44+
custom_replacements = {
45+
names = {
46+
# IP Ranges Primary
47+
# Regional Address Space: 192.168.0.0/16
48+
primary_hub_address_space = "192.168.0.0/16"
49+
primary_hub_virtual_network_address_space = "192.168.0.0/22"
50+
primary_firewall_subnet_address_prefix = "192.168.0.0/26"
51+
primary_firewall_management_subnet_address_prefix = "192.168.0.192/26"
52+
primary_bastion_subnet_address_prefix = "192.168.0.64/26"
53+
primary_gateway_subnet_address_prefix = "192.168.0.128/27"
54+
primary_private_dns_resolver_subnet_address_prefix = "192.168.0.160/28"
55+
}
56+
}
57+
58+
###################
59+
### Virtual WAN ###
60+
###################
61+
62+
# Example of 172.16 IP ranges for a Virtual WAN
63+
# NOTE: The 172.16 prefix is only suitable for medium sized deployments as it only supports 1,000,000 ip addresses
64+
custom_replacements = {
65+
names = {
66+
# IP Ranges Primary
67+
# Regional Address Space: 172.16.0.0/16
68+
primary_hub_address_space = "172.16.0.0/22"
69+
primary_side_car_virtual_network_address_space = "172.16.4.0/22"
70+
primary_bastion_subnet_address_prefix = "172.16.4.0/26"
71+
primary_private_dns_resolver_subnet_address_prefix = "172.16.4.64/28"
72+
73+
# IP Ranges Secondary
74+
# Regional Address Space: 172.17.0.0/16
75+
secondary_hub_address_space = "172.17.0.0/22"
76+
secondary_side_car_virtual_network_address_space = "172.17.4.0/22"
77+
secondary_bastion_subnet_address_prefix = "172.17.4.0/26"
78+
secondary_private_dns_resolver_subnet_address_prefix = "172.17.4.64/28"
79+
}
80+
}
81+
82+
# Example of 192.168 IP ranges for a Virtual WAN
83+
# NOTE that the 192.168 prefix is only suitable for a small, single region deployment as it only supports 65,000 ip addresses
84+
custom_replacements = {
85+
names = {
86+
# IP Ranges Primary
87+
# Regional Address Space: 192.168.0.0/16
88+
primary_hub_address_space = "192.168.0.0/22"
89+
primary_side_car_virtual_network_address_space = "192.168.4.0/22"
90+
primary_bastion_subnet_address_prefix = "192.168.4.0/26"
91+
primary_private_dns_resolver_subnet_address_prefix = "192.168.4.64/28"
92+
}
93+
}
94+
{{< / highlight >}}

0 commit comments

Comments
 (0)