4 ms·
This is just a convention from BSD, and is not even POSIX compliant. However, 'ping 1.1' is a convenient shortcut (actually pings 1.0.0.1). iproute2 and systemd
by larschdk 4y ago
This is just a convention from BSD, and is not even POSIX compliant. However, 'ping 1.1' is a convenient shortcut (actually pings 1.0.0.1). iproute2 and systemd do not use inet_aton and don't follow this BSD4.2 convention and instead parse it as '1.1.0.0' or not at all.
- oleganza 4y ago(Not to pick on your particular comment, but to highlight a broader issue.) I feel like convenient shortcuts are becoming hugely inconvenient when a system has hundreds of them. The unlimited amount of unix non-orthogonal options made "for convenience" cannot scale mentally.
- _8j50 4y agoI saw someone ping 127.1 a while back and I was so surprised I didn't know about this even after a few years in networking in the past.
- 6c696e7578 4y agoSomeone once showed me telnet 0 80. Lots of things should resolve.
- xani_ 4y ago> However, 'ping 1.1' is a convenient shortcut (actually pings 1.0.0.1). Convenient for who!? that one guy that put his home network in 10.0.0 class ?
- codefined 4y ago1.0.0.1 is owned by Cloudflare and is used for their DNS offering. It's likely a reliable 'ping' candidate for checking that your machine has internet access [0] https://1.0.0.1/ https://1.0.0.1/
- WaitWaitWha 4y agoHey now, what is wrong with 10. class at home ;-)? I chose 10, for simpler segmentation in my head primarily as I have a lot of devices in my house (10.<grouping/VLAN>.<location>.n), less chance of conflict as devices come online (devices i connect often are coded to 192, VPNs, etc.), helps with my VPNs between my locations.
- xani_ 4y agoThere is a good chance if you work for company that they will use 10.x for their server stuff. For similar reason we also steered away from home router area of 192.168.X.X for our company network stuff.
- raffraffraff 4y agoThe last shitshow I worked at insisted on 192.168.x.x for their corporate VPN. I'm not sure what they were smoking, but there was no way in hell I was going to reconfigure my entire home network so I could use their shitty VPN, so I just found another way in. Dumbasses.
- checkyoursudo 4y agoI suppose you use 172.16/12? :P
- xani_ 4y agoWe use 10/8 for servers, 172.16/12 for management, 192.168.x (where x is in double/triple digits) for users.
- gunapologist99 4y agoIt is part of POSIX: https://github.com/golang/go/issues/36822#issuecomment-579381348 https://github.com/golang/go/issues/36822#issuecomment-57938... Also RFC 3986.