You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following example shows how to create a public VPC interface with a custom IPv6 configuration.
99
+
100
+
```hcl
101
+
resource "linode_interface" "vpc" {
102
+
linode_id = linode_instance.my-instance.id
103
+
104
+
vpc = {
105
+
subnet_id = 12345
106
+
107
+
ipv6 = {
108
+
is_public = true
109
+
110
+
slaac = [
111
+
{
112
+
range = "auto"
113
+
}
114
+
]
115
+
116
+
ranges = [
117
+
{
118
+
range = "auto"
119
+
}
120
+
]
121
+
}
122
+
}
123
+
}
124
+
```
125
+
96
126
### VLAN Interface Example
97
127
98
128
The following example shows how to create a VLAN interface.
@@ -174,25 +204,25 @@ The following arguments are supported:
174
204
175
205
*`firewall_id` - (Optional) The ID of an enabled firewall to secure a VPC or public interface. Not allowed for VLAN interfaces.
176
206
177
-
*`default_route` - (Optional) Indicates whether the interface serves as the default route when multiple interfaces are eligible for this role.
207
+
*`default_route` - (Optional) Indicates if the interface serves as the default route when multiple interfaces are eligible for this role.
178
208
179
-
*`ipv4` - (Optional) When set to true, the interface is used for the IPv4 default route.
209
+
*`ipv4` - (Optional) If set to true, the interface is used for the IPv4 default route.
180
210
181
-
*`ipv6` - (Optional) When set to true, the interface is used for the IPv6 default route.
211
+
*`ipv6` - (Optional) If set to true, the interface is used for the IPv6 default route.
182
212
183
-
*`public` - (Optional) Configuration for a Linode public interface. Exactly one of `public`, `vlan`, or `vpc` must be specified.
213
+
*`public` - (Optional) Nested attributes object for a Linode public interface. Exactly one of `public`, `vlan`, or `vpc` must be specified.
184
214
185
-
*`ipv4` - (Optional) IPv4 configuration for this interface.
215
+
*`ipv4` - (Optional) IPv4 addresses for this interface.
186
216
187
217
*`addresses` - (Optional) IPv4 addresses configured for this Linode interface. Each object in this list supports:
188
218
189
219
*`address` - (Optional) The IPv4 address. Defaults to "auto" for automatic assignment.
190
220
191
221
*`primary` - (Optional) Whether this address is the primary address for the interface.
192
222
193
-
*`ipv6` - (Optional) IPv6 configuration for this interface.
223
+
*`ipv6` - (Optional) IPv6 addresses for this interface.
194
224
195
-
*`ranges` - (Optional) IPv6 ranges in CIDR notation (2600:0db8::1/64) or prefix-only (/64). Each object in this list supports:
225
+
*`ranges` - (Optional) Configured IPv6 range in CIDR notation (2600:0db8::1/64) or prefix-only (/64). Each object in this list supports:
196
226
197
227
*`range` - (Required) The IPv6 range.
198
228
@@ -222,6 +252,18 @@ The following arguments are supported:
222
252
223
253
*`range` - (Required) The IPv4 range.
224
254
255
+
*`ipv6` - (Optional) IPv6 assigned through `slaac` and `ranges`. If you create a VPC interface in a subnet with IPv6 and don’t specify `slaac` or `ranges`, a SLAAC range is added automatically. **NOTE: IPv6 VPCs may not currently be available to all users.**
256
+
257
+
*`is_public` - (Optional) Indicates whether the IPv6 configuration profile interface is public. (Default `false`)
258
+
259
+
*`slaac` - (Optional) Defines IPv6 SLAAC address ranges. An address is automatically generated from the assigned /64 prefix using the Linode’s MAC address, just like on public IPv6 interfaces. Router advertisements (RA) are sent to the Linode, so standard SLAAC configuration works without any changes.
260
+
261
+
*`range` - (Optional) The IPv6 network range in CIDR notation.
0 commit comments