I love that people forget about 127.0.0.0/8 being the loopback network. Everyone just uses .1 when there are so many to choose from.
IPv6: Fuck you, you’re only allowed one, now. Yeah, yeah, I know there are about 340 undecillion addresses in the space, but I know better than you, no one in history has ever needed to bind different services to the same port on the loopback interface, and if they did they were doing it wrong. Oh you made an RFC draft? Well I let the one from 2015 expire, so good luck with your current proposal, pleb.
IP addresses are one thing, but wtf is a subnet mask??
Wtf is 255.255.255.255 and why does it keep showing up???
Subnet Masks are how you get networks. It’s simple binary ANDing math.
For example, if you have a 192.168.1.1 IP address and a subnet mask of 255.255.255.0, that means the first 3 octets (each block of numbers between the dots representing an 8 bit value) of 255 are the network part of the IP (192.168.1.0/24) and the fourth octet is the host addresses space of the address. It’s saying 192.168.1 is the network and the last number is the host on that network.
If you take 1 from 192.168.1.X and convert it to binary, you get 00000001. If you convert 255 to binary, you get 11111111.
If you line them up and “AND” them together sort of like you’re adding them together in a “both must be true” comparison, you get
00000001
11111111
00000001
A 1 and a 1 makes 1. Anything else makes a 0. Basically the 192 gets ANDed to 255 and comes out as itself. Same for 168 and 1.
For a 255.0.0.0 (or /8) 255.255.0.0 (or /16), and 255.255.255.0 (or /24) it’s easy, because it’s all 1s or 0s for each block of 8 bits of the 32 bits that make up an IPv4 address. Each block just plops out as itself because it’s all 1s or all 0s for each of the 4 blocks.
Now try that with 23 bits instead of 24.
00000001 for the third octet “1” part of 192.168.1.1
11111110 for “254” part of 255.255.254.0 (aka a /23)
00000000 or 0 for the third octet.
This means that the network ID is 192.168.0.0/23 and the usable IP addresses are 192.168.0.1 through 192.168.1.254.
With a /23 network, you get 512 addresses instead of 256 with a /24 (192.168.0.0-192.168.1.256 versus 1.0 through 1.256). The first IP is the network ID and the last is the broadcast address, both of which are unusable, so you have 510 IP addresses in a /23 to use for devices instead of 254 with a /24.
This is how basic IPv4 subnetting works and it’s how you size various networks for things like Enterprise that needs more than a small home network of less than 254 devices.
Congrats. If you understood that, you now have enough knowledge to probably pass some network exams.
It tells you how to read the IP address. It’s a really cool trick that’s an enormous pain in the ass.
Meanwhile my gateway is
fe80::17a9:3ba7:5¥4🐔:b8ä7%42Wait is there an existing unicode to ipv6 method. I assume it would just be the bit values of the emoji in utf8?
fe80::“hello 🐔” aka fe80::6865:6c6c:6f20:f09f:9094
I approve of the idea of cursed ipv6 notation.
That would be a funny way to avoid DNS, just make the address the name.
sup
There’s nothing preventing the gateway from being a DHCP client, just saying…
your home router is a DHCP client of your ISP’s DHCP server, so…yea.
Settle down, Satan.
oh my god
i love this idea so much. I’ve been doing networking for 13 years now and I’ve never considered a dynamically addressed gateway
Gateway is .69
Dhcp is .70 - .254
Static routes are .68 and below
I will not be taking any questions
About twenty years ago I was hired in to straighten up a network at a investment place. They were running all static IP addresses and the guy who set it up set the gateway to 69. I laughed and started converting them to dhcp and seriously considered leaving the gateway alone.
I have to ask a question now. My question is, is that you?
It wasn’t me. Why leave room for DHCP if you’re not going to use it?
The “gateway” is 69. Noted
No no no, the period comes first, .69
Gotta get your red wings.
Gateway has multiple IP addresses, from .1 through .10 . (I used to have multiple OpenWRT servers for different things, but consolidated them all into a single rackmount server.)
My home server is at 192.168.1.230 because that’s what IP was assigned to the machine at the moment I set it up.
Yep. Love that chaos, ya know?
Back before i knew anything about networking and set my desktops with statics, i had .1-9 as user devices, .10-19 as servers, .20-29 as printers, .50-59 as networking devices. So my current server is .14 and has been that since uni, DNS is .50, gateway is .51. Now my dhcp pool starts at 100.
DHCP gave me 170. I said “let’s make this static shall we?”
Lol mine is .116 for the same reason
Lol, same-ish, lazy gang ftw.
There are dozens of us
ITT: What are you people even arguing about?
10.0.0.0/8 address space with a gateway address that gets randomized every 24 hours. Tomorrow’s address is advertised on a HTTP server local to the network that cannot be externally accessed. For security reasons.
That’s the kind of overengineering I was hoping for!
Nothing advertises hostnames, and the DHCP table is dumped and every client gets new address at the same time, too.
Just make sure the MAC addresses randomize, too, and then you’ve got yourself a proper fucking mess for a hacker to sort out.
the honeypot house of mirrors
Throw in some random static DHCP leases that cycle every hour and update the firewall rule alias
I use 10.13.37.42 as my gateway.
Sigh why on earth did I not do 10.13.37.0/24?? Mine is lame as hell
Last address? Who the heck does that???
A typical ip address scheme is to assign lower blocks to dhcp pools and reserve high ip addresses to servers and network gear. Anything over 250 is typically a switch or a router in this case.
I’ve had modems from my ISP which assigned themselves 192.168.0.254 for some reason. I have no idea why
My new fibre modem is .254. It was a bitch to get into (whatever the mode’s called that makes it a simple gateway).
Bridge mode?
It’s called
multicastedit: broadcast and it’s for spamming every device on the network /sIt’s called multicast
Don’t confuse the broadcast address with multicast!
hey, don’t you blame multicast for the sins of others! Multicast and Anycast are under witness protection!
10.10.0.254 here, because I wanted my main rig to be .1
Use .0, it’s free real estate.
I work for a French company that does this, I don’t know if all French companies do this, but it threw me for a loop for sure.
10.10.10.70 here. There was a reason in the distant past that I did this and now it’s stuck that way forever.
Just set the Gateway to use DHCP.
Settle down Satan
So statically assign all IPs except for your gateway?
First address? As in, the network address? Last address? As in, the broadcast address? Suspicious.
*First Usable Address. Obviously u can drop the usable part.
This guy networks
192.168.0.2 😤
Literally seen this in the real world too.

RIP
Spread them out, you want to avoid signal interference!












