0.0.0.0/0 0::0/0
You didn’t specify it couldn’t be in CIDR block notation…
Submitted 1 year ago by mac@programming.dev to programmer_humor@programming.dev
https://programming.dev/pictrs/image/dbce2250-ea79-4f27-8e53-fd06bfe9fbda.png
0.0.0.0/0 0::0/0
You didn’t specify it couldn’t be in CIDR block notation…
::/0
Remember, when we abbreviate an ipv6 address all leading zeros are reduced to a single 0.
E.g
0003 would just become 03
When there are geoups of 4 zeros these can be represented as a single 0 or as a double colon ::
But we can only use the :: once so when summarizing an address containing multiple groups of 4 0s one after the other they can all be abbreviated to a single ::
Eg
fe80:0000:0000:0000:0210:5aff:feaa:20a2 would become fe80::210:5aff:feaa:20a2
Therefore it is perfectly valid to abbreviate an address of 0000:0000:0000:0000:0000:0000:0000:0000 /0 to just ::/0
Eh, I’ve seen some software internally prefer 0::0 instead of just ::0 or :: . Notation wise though you are correct, it is unnecessary.
0.0.0.0 /0 ::/0
SUCK MY DICK, GRU!
Haha spot on
This is the way.
Its CIDR notation. So /0 means the subnet mask has no on bits and would read as 0.0.0 0 if you had a /1 that turns 1 bit on in the subnet mask, so it would be 128.0.0.0.
If i had a /24 which is the subnet mask used for most small networks like your home router. There would be 255 minus 2 addresses available for clients (phones, pcs etc) so the subnet mask would have 24 on bits and read 255.255.255.0, which you may be familiar with.
(Assuming you dont know much, not to insult you, you might know plenty), but when writing any kind of instructions or guides, i was always told to assume the reader knows absolutely nothing and miss nothing out.
::00
- ::ff
This is gonna take a while…
1.1.1.1
1.1.1.2
1.1.1.3
…
0.0.0.0/0
Better hope the goon hasn’t heard of IPv6 either, or you’re toast
::/0
Undefined
0.0.0.0/0
0.0.0.0/0
ipv4 [1,255].[1,255].[1,255].[1,255]
ipv6 [0000,ffff].[0000,ffff].[0000,ffff].[0000,ffff]
This excludes all the ips that have a 0 in the 2nd, 3rd, and 4th octets. Sorry but we’re going to have to revoke your Network Engineering credentials.
thanks, fixed
Not to nitpick, but an IPv6 address is represented as eight groups of four hexadecimal digits separated by :. Like 2001:0db8:3333:4444:5555:6666:7777:8888.
Omg, that’s twice now I’ve messed it up. Fixed.
0.0.0.0/0
127.0.0.1, I’m an introvert
one of them has a 7 I’m pretty sure
wow don’t doxx me plz
0/0
This reminds me of something I saw online maybe 15-20 years ago now. Someone created a torrent with a name like “every IP address ever (hacking tool)” which ended up having thousands of people seeding it. It was just a text file with every IPv4 from 0.0.0.0 to 255.255.255.255 😂
Heard about that too! Is there an updated version for ipv6?
That file would be ungodly large.
IPv6 version is just a Python script that generates random 128-bit numbers. Eventually you’ll hit a valid IPv6 address!
I mean if I name them do I have to own the domain or…
0.0.0.0/0
::0
I’ll start.
0.0.0.1: Sophie
Your turn.
0.0.0.2 is Bob
0.0.0.3 is Clarence
My PC’s is now Bob, My router’s Billy…
That’s 1/256th of IPv4
0/0 and ::/0
Funny. I put 0/0 first then reconsidered, but I don’t know why.
127.0.0.1
Heh, you just doxxed yourself
ipv6
127.0.0.1
USA sure does have a lot of IPs!
People name IPs outside of DNS, I mean is there like a Susan or a Karen, perhaps a Clark IP?
s.w.x.y/z
plug it into a 5-dimensional graph and there you go.
Doug
FauxPseudo@lemmy.world 1 year ago
Ok. This covers every ipv6 and ipv4 address.
“^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}))|:)))(%.+)?\s*$”
YIj54yALOJxEsY20eU@lemm.ee 1 year ago
Lord have mercy
dannym@lemmy.escapebigtech.info 1 year ago
Please don’t. Use regex to find something that looks like an IP then build a real parser. This is madness
Just parse [0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3} using regex (for v4) and then have some code check that all the octets are valid (and store the IP as a u32)
Emma_Gold_Man@lemmy.dbzer0.com 1 year ago
And dupe check. 0.0.0.0 and 000.000.000.000 may both be valid, but they resolve the same
MsPenguinette@lemmy.world 1 year ago
IPv6 was a mistake. We should have just added an addition octet
Centillionaire@kbin.social 1 year ago
That would allow for like, 2 trillion devices? Feels like a bandaid, my dude. Next you’re gonna suggest a giant ice cube in the ocean once a year to stop global warming.
Nalivai@discuss.tchncs.de 1 year ago
Oh yeah, great, let’s change the fundamental protocol on which all the networks in the world are based. Now two third of the devices in the world crashed because you tried to ping 192.168.0.0.1
snor10@lemm.ee 1 year ago
They played us for absolute fools!
lnee@lemm.ee 1 year ago
heared of ipv5?
FauxPseudo@lemmy.world 1 year ago
Plus the MAC address
rob64@startrek.website 1 year ago
imgs.xkcd.com/comics/perl_problems.png
Patches@sh.itjust.works 1 year ago
Made that joke in an interview once.
They didn’t think it was funny. Truly thought Regex was the solution to, but never the cause of, all problems.
Dodged a bullet
BeigeAgenda@lemmy.ca 1 year ago
It’s always a treat to debug a regex of that size.
SchizoDenji@lemm.ee 1 year ago
I knew there would be someone with the regex.
takeda@lemmy.world 1 year ago
You’re more of a pearl programmer than network engineer :P
hemko@lemmy.dbzer0.com 1 year ago
.*
0x0@lemmy.dbzer0.com 11 months ago
Technically, this one also matches everything:
shootwhatsmyname@lemm.ee 1 year ago
*leaves*