Kennisbank

Understanding IPv4 and IPv6 addresses Afdrukken

  • ipv4, ipv6, networking, ip-addresses
  • 0

Overview

Every Pod on the ALYPOD network is reachable through one or more IP addresses. This article explains the difference between IPv4 and IPv6, how addresses are assigned in the ALYPOD Console, and how to check the addresses of your server.

IPv4 versus IPv6

  • IPv4 addresses are 32-bit and look like 203.0.113.10. There are roughly 4.3 billion of them, so public IPv4 is a limited resource.
  • IPv6 addresses are 128-bit and look like 2001:db8::1. They are far more plentiful, so ALYPOD can assign a whole /64 block to a single Pod.

Most Pods receive one primary IPv4 address and an IPv6 address (or a routed /64 prefix). Both can be active at the same time; this is called dual-stack.

Before you begin

  • Access to the ALYPOD Console and your server over SSH or RDP.
  • Your server's login credentials.

Steps

  1. In the ALYPOD Console, open your Pod and look at the Networking tab. The assigned IPv4 and IPv6 addresses are listed there.
  2. On Linux, confirm the addresses configured inside the guest:

bash ip -brief addr ip -6 addr show scope global

  1. Check your default routes:

bash ip route ip -6 route

  1. Test connectivity to each protocol family:

bash ping -4 -c 3 1.1.1.1 ping -6 -c 3 2606:4700:4700::1111

If the IPv6 ping fails, the guest may not have accepted the router advertisement or the address was not configured. Re-check the addresses shown in the Console.

Notes on private addresses

Addresses in 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 (IPv4) and fd00::/8 (IPv6) are private and not routable on the public internet. Use them for private networking between Pods in the same network.

Troubleshooting

  • Problem: IPv4 works but IPv6 does not. Solution: Verify the address and gateway from the Console, then restart networking: sudo systemctl restart networking (Debian/Ubuntu) or sudo nmcli connection up <name> (NetworkManager).
  • Problem: No connectivity at all. Solution: Check that the interface is up with ip link and that the cloud firewall in the Console allows your traffic.

Related articles

  • [Setting the reverse DNS (PTR) record]
  • [Configuring a static IP on Ubuntu]

Was dit antwoord nuttig?

« Terug