Enable IPv6 on Oracle Cloud

Alexander Gavrilov · August 24, 2021

It is assumed that you have already created an instance.

1) Networking → Virtual Cloud Networks → <network_name> → CIDR Blocks → Add IPv6 CIDR Block → Confirm

2) Networking → Virtual Cloud Networks → <network_name> → Subnets → “…” right of the <subnet_name> → Edit → Enable IPv6 CIDR Block → enter any hexadecimal number between 00—FF (e.g. 7E) → Save Changes

3) Networking → Virtual Cloud Networks → <network_name> → Route Tables → Default Route Table for <network_name> → Add Route Rules
Protocol Version: IPv6
Target Type: Internet Gateway
Destination CIDR Block: ::/0
Target Internet Gateway: Internet Gateway <network_name>

4) Networking → Virtual Cloud Networks → <network_name> → Security Lists → Default Security List for <network_name> → Egress Rules → Add Egress Rules
Destination CIDR: ::/0
IP Protocol: All Protocols

5) Compute → Instances → <instance_name> → Attached VNICs → → IPv6 Addresses → Assign IPv6 Addresses → Assign

Testing

Just ping google.com. It will be done over IPv6.

Port opening

As for IPv4, but using ::/0 instead of 0.0.0.0/0 and ip6tables instead of iptables.

Twitter, Facebook