Using ipv6 in cloud: Difference between revisions
m (fix typo) |
No edit summary |
||
Line 7: | Line 7: | ||
Addresses are being setup using ''Stateless Address Auto Configuration'' (SLAAC), which automatically sets up the IP on the VM interface. By default, the security group rules will allow all outbound traffic from the VM via the IPv6 GUA, but no traffic that originates from outside the VM will be allowed until specific security group rules have been defined. This is the same behaviour as IPv4. | Addresses are being setup using ''Stateless Address Auto Configuration'' (SLAAC), which automatically sets up the IP on the VM interface. By default, the security group rules will allow all outbound traffic from the VM via the IPv6 GUA, but no traffic that originates from outside the VM will be allowed until specific security group rules have been defined. This is the same behaviour as IPv4. | ||
===== Example configuration ===== | ===== Example configuration openstack cli ===== | ||
Get the ID of the VM to attach the Network interface. | |||
<pre> | |||
openstack server list | |||
+--------------------------------------+-----------------+---------+-----------------------------------------------+----------------------------------+----------+ | |||
| ID | Name | Status | Networks | Image | Flavor | | |||
+--------------------------------------+-----------------+---------+-----------------------------------------------+----------------------------------+----------+ | |||
| 74be352d-19ca-46cc-9661-7088d2652e34 | test | ACTIVE | def-bott-network=192.168.27.140, 206.12.93.29 | Debian-10.9.2-Buster-x64-2021-05 | p1-1.5gb | | |||
+--------------------------------------+-----------------+---------+-----------------------------------------------+----------------------------------+----------+ | |||
</pre> | |||
Assign a new network interface to the VM, using IPv6 as network. | |||
<pre> | |||
openstack server add network 74be352d-19ca-46cc-9661-7088d2652e34 IPv6-GUA | |||
</pre> | |||
Check the status of the assignment. | |||
<pre> | |||
openstack server list | |||
+--------------------------------------+-----------------+---------+------------------------------------------------------------------------------------------------+----------------------------------+----------+ | |||
| ID | Name | Status | Networks | Image | Flavor | | |||
+--------------------------------------+-----------------+---------+------------------------------------------------------------------------------------------------+----------------------------------+----------+ | |||
| 74be352d-19ca-46cc-9661-7088d2652e34 | test | ACTIVE | IPv6-GUA=2607:f8f0:c11:7004:f816:3eff:fef1:8cee; def-bott-network=192.168.27.140, 206.12.93.29 | Debian-10.9.2-Buster-x64-2021-05 | p1-1.5gb | | |||
+--------------------------------------+-----------------+---------+------------------------------------------------------------------------------------------------+----------------------------------+----------+ | |||
</pre> | |||
===== Example configuration Webinterface ===== | |||
Login into the dashboard and go to the Instances menu, click on ''Attach Interface'', which will open a dialog. | Login into the dashboard and go to the Instances menu, click on ''Attach Interface'', which will open a dialog. | ||
Use IPv6-GUA (2607:f8f0:c11:7004::/64) from the network menu and click on attach. | Use IPv6-GUA (2607:f8f0:c11:7004::/64) from the network menu and click on attach. |
Revision as of 17:35, 29 October 2021
IPv6 in Arbutus Cloud
IPv6 Link-Local (LLA) and Global Unicast (GUA) addresses are generally available within the Arbutus Cloud environment. GUA can be set up via a separate interface, which in turn also handles only the IPv6 traffic. Addresses are being setup using Stateless Address Auto Configuration (SLAAC), which automatically sets up the IP on the VM interface. By default, the security group rules will allow all outbound traffic from the VM via the IPv6 GUA, but no traffic that originates from outside the VM will be allowed until specific security group rules have been defined. This is the same behaviour as IPv4.
Example configuration openstack cli
Get the ID of the VM to attach the Network interface.
openstack server list +--------------------------------------+-----------------+---------+-----------------------------------------------+----------------------------------+----------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------+---------+-----------------------------------------------+----------------------------------+----------+ | 74be352d-19ca-46cc-9661-7088d2652e34 | test | ACTIVE | def-bott-network=192.168.27.140, 206.12.93.29 | Debian-10.9.2-Buster-x64-2021-05 | p1-1.5gb | +--------------------------------------+-----------------+---------+-----------------------------------------------+----------------------------------+----------+
Assign a new network interface to the VM, using IPv6 as network.
openstack server add network 74be352d-19ca-46cc-9661-7088d2652e34 IPv6-GUA
Check the status of the assignment.
openstack server list +--------------------------------------+-----------------+---------+------------------------------------------------------------------------------------------------+----------------------------------+----------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------+---------+------------------------------------------------------------------------------------------------+----------------------------------+----------+ | 74be352d-19ca-46cc-9661-7088d2652e34 | test | ACTIVE | IPv6-GUA=2607:f8f0:c11:7004:f816:3eff:fef1:8cee; def-bott-network=192.168.27.140, 206.12.93.29 | Debian-10.9.2-Buster-x64-2021-05 | p1-1.5gb | +--------------------------------------+-----------------+---------+------------------------------------------------------------------------------------------------+----------------------------------+----------+
Example configuration Webinterface
Login into the dashboard and go to the Instances menu, click on Attach Interface, which will open a dialog. Use IPv6-GUA (2607:f8f0:c11:7004::/64) from the network menu and click on attach.
The shown IPv6 address is now available and can be used until the interface is detached. Every time the interface is detached, the GUA is released and put back into the pool and thus, can be used by anyone else. Rebuilding or restarting the VM however, will not release the GUA.
Access from any IPv6 GUA can be granted via the Security Groups in Openstack; the only difference is the CIDR which automatically detects the address type.