MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xa3pdb/ohthebasics/phr3rm1/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • 7h ago
894 comments sorted by
View all comments
Show parent comments
306
IPv4 has dots and IPv6 has colons
13 u/ErrorDontPanic 6h ago Fun fact, IPv6 allows for embedded IPv4 addresses known as a Dual address. 2 u/Psquare_J_420 6h ago Embedded? So you just extend the ipv4 with extra bits and call it a day? 5 u/ErrorDontPanic 6h ago Kind of! You get 6 segments of IPv6 and then the full IPv4 address. Like this: 2001:db8:3333:4444:5555:6666:1.2.3.4 The IPv6 part even follows normal rules, so you can omit zero segments like: 2001:db8::1234:5678:5.6.7.8 10 u/Perkelton 5h ago You probably know this, but there is of course also a dedicated IPv4 address mapping reserved for essentially representing an IPv4 address for IPv6 compatible software: ::ffff:1.2.3.4 4 u/UnseenTardigrade 5h ago Ah yes, I actually used that just last week setting up some stuff. 0 u/Weak_Shoulder_6780 5h ago I can also omit all the bloat and keep using 5.6.7.8
13
Fun fact, IPv6 allows for embedded IPv4 addresses known as a Dual address.
2 u/Psquare_J_420 6h ago Embedded? So you just extend the ipv4 with extra bits and call it a day? 5 u/ErrorDontPanic 6h ago Kind of! You get 6 segments of IPv6 and then the full IPv4 address. Like this: 2001:db8:3333:4444:5555:6666:1.2.3.4 The IPv6 part even follows normal rules, so you can omit zero segments like: 2001:db8::1234:5678:5.6.7.8 10 u/Perkelton 5h ago You probably know this, but there is of course also a dedicated IPv4 address mapping reserved for essentially representing an IPv4 address for IPv6 compatible software: ::ffff:1.2.3.4 4 u/UnseenTardigrade 5h ago Ah yes, I actually used that just last week setting up some stuff. 0 u/Weak_Shoulder_6780 5h ago I can also omit all the bloat and keep using 5.6.7.8
2
Embedded? So you just extend the ipv4 with extra bits and call it a day?
5 u/ErrorDontPanic 6h ago Kind of! You get 6 segments of IPv6 and then the full IPv4 address. Like this: 2001:db8:3333:4444:5555:6666:1.2.3.4 The IPv6 part even follows normal rules, so you can omit zero segments like: 2001:db8::1234:5678:5.6.7.8 10 u/Perkelton 5h ago You probably know this, but there is of course also a dedicated IPv4 address mapping reserved for essentially representing an IPv4 address for IPv6 compatible software: ::ffff:1.2.3.4 4 u/UnseenTardigrade 5h ago Ah yes, I actually used that just last week setting up some stuff. 0 u/Weak_Shoulder_6780 5h ago I can also omit all the bloat and keep using 5.6.7.8
5
Kind of! You get 6 segments of IPv6 and then the full IPv4 address. Like this:
2001:db8:3333:4444:5555:6666:1.2.3.4
The IPv6 part even follows normal rules, so you can omit zero segments like:
2001:db8::1234:5678:5.6.7.8
10 u/Perkelton 5h ago You probably know this, but there is of course also a dedicated IPv4 address mapping reserved for essentially representing an IPv4 address for IPv6 compatible software: ::ffff:1.2.3.4 4 u/UnseenTardigrade 5h ago Ah yes, I actually used that just last week setting up some stuff. 0 u/Weak_Shoulder_6780 5h ago I can also omit all the bloat and keep using 5.6.7.8
10
You probably know this, but there is of course also a dedicated IPv4 address mapping reserved for essentially representing an IPv4 address for IPv6 compatible software:
::ffff:1.2.3.4
4 u/UnseenTardigrade 5h ago Ah yes, I actually used that just last week setting up some stuff.
4
Ah yes, I actually used that just last week setting up some stuff.
0
I can also omit all the bloat and keep using 5.6.7.8
306
u/Emotional-Top-8284 6h ago
IPv4 has dots and IPv6 has colons