What is the difference between IPv4 and IPv6, and why does IPv6 exist?
What they are really testing: Whether you understand the address-exhaustion driver and the practical consequences (no NAT needed, dual-stack), not just "IPv6 is the newer one with more addresses".
A real interview question
What is the difference between IPv4 and IPv6, and why does IPv6 exist?
What most people say
drag me
“IPv6 is the newer version of IP with more addresses than IPv4.”
Technically true but stops at the headline. It misses the exhaustion driver, why NAT existed, and that IPv6 removes the need for NAT, which is the part that affects real network design.
The follow-ups they ask next
If IPv6 has enough addresses for everything, where does network isolation come from?
Explicit firewall/security-group rules. With IPv4+NAT, hosts were unreachable inbound as a side effect; with public IPv6 addresses you must deny inbound on purpose.
What does "dual-stack" mean?
A host or network runs both IPv4 and IPv6 simultaneously, so it can talk to clients and services on either protocol during the long migration.
What the interviewer is listening for
- Knows 32-bit vs 128-bit and the exhaustion driver
- Connects IPv4 scarcity to NAT
- Knows IPv6 removes the need for NAT
What sinks the answer
- Only "newer with more addresses"
- Unaware NAT was an exhaustion workaround
- Thinks the two interoperate directly
If you genuinely do not know
Say this instead of freezing. Reasoning out loud from what you do know beats silence every single time, and a good interviewer is listening for exactly that.
“IPv4 is [32-bit, ~4.3 billion addresses, and we ran out]; IPv6 is [128-bit, effectively unlimited]. [NAT was the IPv4 stopgap to share public addresses]. With IPv6 [every device can be globally addressable, so NAT is not needed and isolation comes from firewalls]. They do not interoperate, so we run [dual-stack during the transition].”
Keep going with networking
Foundation
What is a VPC, and what is a subnet within it? Why split a network into subnets at all?
Foundation
What is the difference between TCP and UDP, and when would you choose each?
Foundation
What happens, step by step, when you type a URL into a browser and press enter?
Foundation
How does DNS resolution actually work, and what is the difference between an A record and a CNAME?
Junior
An EC2 instance in a private subnet needs to download OS updates from the internet. Walk me through how you make that work, and why.
Junior
In AWS, what is the difference between a security group and a network ACL, and when would you reach for each?
Knowing the answer is not the same as recalling it under pressure
Sign in to send the questions you fumble to spaced recall, so they come back right before you would forget them, and learn the concepts behind them with hands-on labs.
Start free