Compare the address spaces of IPv4 and IPv6.
How many bits are in an IPv6 address?
An IPv6 address is 128 bits, normally written as eight groups of 16-bit hexadecimal values. IPv4 is 32 bits.
Detailed explanation
Incorrect. 32 bits is IPv4.
Incorrect. 48 bits is the common MAC-address length.
Incorrect. 64 bits can describe an interface identifier, not the whole IPv6 address.
Correct. The complete IPv6 address is 128 bits.
Try it yourself
An example you can run in a temporary verification environment.
python3 -c "import ipaddress; print(ipaddress.IPv6Network.max_prefixlen)"Expected result
128Key points
- IPv6 is 128 bits
- IPv4 is 32 bits
- Eight hexadecimal groups
Notes
- Environment: Python 3 ipaddress / ローカル計算のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Network prefix
The part of an IP address that identifies the network rather than a host.
Transport protocol
TCP and UDP provide different delivery, reliability, and connection semantics.
Service port
A numbered endpoint used to deliver traffic to a network service.