5 ms·
What are /22 and ASN?
by brianzelip 3y ago
What are /22 and ASN?
- marginalia_nu 3y agoIP Subnet with IIRC 1024 IPs, and Autonomous System Number respectively. ASN:s are related to BGP, the Border Gateway Protocol, which is part of how the IP network is organized.
- tgv 3y agoTo explain a bit more: the first 22 bits (of the 32 bit IPv4 address) are fixed, so there are 10 free bits = 1024 addresses.
- geocrasher 3y agoThis is a fantastic, simple explanation of subnetting and CIDR notation. Well done.
- deleted 3y ago[deleted]
- poxrud 3y agoIt’s a way to represent a range of IP addresses. Using CIDR notation. https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing OP is saying that they have control of 1022 public IP addresses.
- the_third_wave 3y ago.22s are light calibre weapons good for plinking and vermin... Oh, not that kind of .22. An IPv4 /22 is a network segment where the /22 stands for the number of bits used for the network address. Since an IPv4 address is 32 bits wide this leaves 10 bits which can be freely assigned by the address 'owner'. Those 10 bits (1024 addresses) can be used for individual hosts or the range can be further subdivided into smaller networks, e.g. 4 /24 networks. This type of network address is called a Classless Inter Domain Routing (CIDR [1]) address, this in opposition to 'class A/B/C' addresses which identify networks in 8-bit steps. A class A network is a /8, class B a /16 and class C a /24. [1] https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
- thedynamicduo 3y agoThanks, that was a really good explanation.
- thsksbd 3y agoI thought he meant .22 for a moment but asked myself: "of all the places to ask what to do with a case of ammo, why all HN?". Then I realized it was probably some neteorking stuff
- paxys 3y agoNormally when you buy a static IPv4 address you get a single "1.2.3.4". OP is basically saying they have access to something like "1.2.[0-3].[0-255]". /22 is a fancy way of describing that kind of slice in CIDR notation. So they have 256*4=1024 IP addresses in total.
- iFreilicht 3y agoI think it's 1022, as the first and last one in the block are the gateway and broadcast address, right?
- paxys 3y agoThat's the recommendation, yes, but even then all 1024 are in your control and you can do whatever you want with them.
- diggan 3y ago> Normally when you buy a static IPv4 address you get a single "1.2.3.4" Is it common to purchase (to own, not "rent" as what you get from cloud platforms) single IP addresses? I thought they were always bought/sold in blocks.
- paxys 3y agoI should have said lease instead of buy, yes.
- kdklol 3y agoNo, in general, the smallest block of IPv6 addresses you can "own" is /24. You have to pay yearly fees to your RIR (Regional Internet Registry) as an ANS (Autonomous system). Think of it as owning land and paying a land tax.
- icedchai 3y agoI have a /24 registered in the early 90's. I pay no registration fees for it since it's a legacy block.