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. 32 bits is IPv4.
Incorrect. 48 bits is the common MAC-address length.
Incorrect. 48 bits is the common MAC-address length.
Incorrect. 64 bits can describe an interface identifier, not the whole IPv6 address.
Incorrect. 64 bits can describe an interface identifier, not the whole IPv6 address.
Correct. The complete IPv6 address is 128 bits.
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
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.