logoalt Hacker News

krupanlast Friday at 9:18 PM2 repliesview on HN

Yes, they are easier to type, and to remember, and it turns out, that's actually a big deal! When you are troubleshooting network problems, it's really nice to take everything but simple raw addresses out of the picture. It's really nice to be able to look at an address and instantly recognize if it's on the same (V)LAN as you are expecting, if it's unique, if it changed from what it was last time you checked, if it's an address for a VPN interface, if the packet you are sniffing is for this host or that host, if DNS is resolving correctly, etc., etc.


Replies

sedatklast Friday at 10:27 PM

I agree that it's a big deal. IPv6 has some "well-known short addresses" to alleviate this issue like accesing well-known broadcast addresses etc with `fe80::` prefix, but it's sad that they don't have one for the gateway (something like `fe80::1`). I know that there's a reason for that like supporting multiple network connections, but just have a shortcut for the "first gateway" at least which is the most common.

reincarnate0x14last Saturday at 3:11 AM

You can do the exact same thing in V6 if you want, there are so many extra bits you can have DHCPv6 or assigned addresses pack all kinds of things in there. With ULAs there are 16-bits for network ID, which is so sparse you can type the VLAN ID in decimal and ignore that you're losing the overhead. People will often put in joke address like deadbeef that can be fit into hex (the 40-bit global ID should be random but for hobbyist purposes most people are willing to suffer re-numbering it in the unlikely event their homelab is bought out by IBM). If you'd rather eat into the interface id portion, you can technically do whatever you want in there although packing too much in may locally cause problems in some routers if you try to treat it like additional network id bits. It's the equivalent to have both middle bytes of 10.x.y.z available for whatever while still having a few hundred billion available subnets.

Just as an example google's public DNS is 2001:4860:4860::8888 because their v4 dns is 8.8.8.8.