Jump to content

what are /30 /29....?

jumbo9i0

i) what are those things in red?

ii) how do he know it has 4 IP address, 8 IP address..... are those a standard which cant be modified? or can be calculated when ip changes?

image.png.e1e52a942d7d84c16f826e34ba6d5e26.png

Link to comment
Share on other sites

Link to post
Share on other sites

They are called CIDR, just a short handed form of identifying the Subnet Mask. 

Community Standards | Fan Control Software

Please make sure to Quote me or @ me to see your reply!

Just because I am a Moderator does not mean I am always right. Please fact check me and verify my answer. 

 

"Black Out"

Ryzen 9 5900x | Full Custom Water Loop | Asus Crosshair VIII Hero (Wi-Fi) | RTX 3090 Founders | Ballistix 32gb 16-18-18-36 3600mhz 

1tb Samsung 970 Evo | 2x 2tb Crucial MX500 SSD | Fractal Design Meshify S2 | Corsair HX1200 PSU

 

Dedicated Streaming Rig

 Ryzen 7 3700x | Asus B450-F Strix | 16gb Gskill Flare X 3200mhz | Corsair RM550x PSU | Asus Strix GTX1070 | 250gb 860 Evo m.2

Phanteks P300A |  Elgato HD60 Pro | Avermedia Live Gamer Duo | Avermedia 4k GC573 Capture Card

 

Link to comment
Share on other sites

Link to post
Share on other sites

As @Skiiwee29 said, they are a shorthand form of the subnet mask. It gets tiresome to write 255.255.255.0 all the time. So instead, you write /24 instead. Why 24?

 

Your subnet mask is basically a bit-mask. If you were to write 255.255.255.0 in binary, it would be 11111111.11111111.11111111.00000000, that is a total of 24 1s (so /24). While 255.255.255.252 would be 11111111.11111111.11111111.11111100 or 30 1s (so /30).

 

This is also a hint why /30 results in 4 possible IP addresses: Every bit of your IP address that matches with a "1" in the subnet mask is fixed. Every bit that matches a "0" can be modified. Which means with a subnet mask of /30 you have a total of two bits you can modify. Two bits have four possible values: 00, 01, 10, 11.

 

Another example:

 

Octet-form:

192.168.1.1

255.255.255.0

 

Binary-form:

11000000.10101000.00000001.00000001

11111111.11111111.11111111.00000000

 

The subnet mask tells you that the first three octets can't be modified, while the last octet is variable. Your last octet has 8 bits so 2^8 possible values (=255). So your network has a total of 255 possible IP addresses.

 

Any IP address that does not match the bits of the "fixed part" of your IP address belongs to a different network. So e.g. 192.168.1.25 would be part of your network while 192.168.2.1 would not.

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×