Subnetting and IPv4 Address Classes

IPv4 TCP/IP Subnet Table

While subnetting might be easy enough to grasp as a concept, it can be a bit involved, and even mind-boggling in part due to the required manipulations of binary numbers. Many people understand the ideas behind subnetting, but find it hard to follow the actual steps required to subnet a network. The table bellow is intended as a quick reference and a fairly complete example of IPv4 subnetting.

Subnet Mask (Netmask)Binary CIDRHosts*Inverse Mask**Notes
255.255.255.25511111111.11111111.11111111.11111111/3210.0.0.0single host mask
255.255.255.25411111111.11111111.11111111.11111110/310 unusable mask, no host bits
255.255.255.25211111111.11111111.11111111.11111100/3020.0.0.3 
255.255.255.24811111111.11111111.11111111.11111000/2960.0.0.7 
255.255.255.24011111111.11111111.11111111.11110000/28140.0.0.15 
255.255.255.22411111111.11111111.11111111.11100000/27300.0.0.31 
255.255.255.19211111111.11111111.11111111.11000000/26620.0.0.63 
255.255.255.12811111111.11111111.11111111.10000000/251260.0.0.127 
255.255.255.011111111.11111111.11111111.00000000/242540.0.0.2551 Class C network
      
255.255.254.011111111.11111111.11111110.00000000/235100.0.1.2552 Class C networks
255.255.252.011111111.11111111.11111100.00000000/2210220.0.3.2554 Class C
255.255.248.011111111.11111111.11111000.00000000/2120460.0.7.2558 Class C
255.255.240.011111111.11111111.11110000.00000000/2040940.0.15.25516 Class C
255.255.224.011111111.11111111.11100000.00000000/1981900.0.31.25532 Class C
255.255.192.011111111.11111111.11000000.00000000/18163820.0.63.25564 Class C
255.255.128.011111111.11111111.10000000.00000000/17327660.0.127.255128 Class C
255.255.0.011111111.11111111.00000000.00000000/16655340.0.255.2551 Class B Network (255 Class C)
      
255.254.0.011111111.11111110.00000000.00000000/151310700.1.255.2552 Class B networks
255.252.0.011111111.11111100.00000000.00000000/142621420.3.255.2554 Class B
255.248.0.011111111.11111000.00000000.00000000/135242860.7.255.2558 Class B
255.240.0.011111111.11110000.00000000.00000000/121M0.15.255.25516 Class B
255.224.0.011111111.11100000.00000000.00000000/112M0.31.255.25532 Class B
255.192.0.011111111.11000000.00000000.00000000/104M0.63.255.25564 Class B
255.128.0.011111111.10000000.00000000.00000000/98M0.127.255.255128 Class B
255.0.0.011111111.00000000.00000000.00000000/816M0.255.255.2551 Class A Network (255 Class B)
      
254.0.0.011111110.00000000.00000000.00000000/732M1.255.255.2552 Class A
252.0.0.011111100.00000000.00000000.00000000/664M3.255.255.255 
248.0.0.011111000.00000000.00000000.00000000/5128M7.255.255.255 
240.0.0.011110000.00000000.00000000.00000000/4256M15.255.255.255 
224.0.0.011100000.00000000.00000000.00000000/3512M31.255.255.255 
192.0.0.011000000.00000000.00000000.00000000/21024M63.255.255.255 
128.0.0.010000000.00000000.00000000.00000000/12048M127.255.255.255 
0.0.0.000000000.00000000.00000000.00000000/04096M255.255.255.255 

* Usable Hosts - (2^N-2) method.

** Inverse mask is calculated by subtracting each subnet mask octet value from 255. The inverse mask is primarily used in Cisco access control lists (ACLs). The rationale behind an inverse mask is that logical ANDing an inverse mask and an IP address gives the host portion of the address, instead of the network / subner portion that a standard subnet mask would. This is of more interest to certain TCP/IP functions.

Notes:  Certain potions of the IPv4 address space are specifically allocated by RFCs for special uses, such as loopback (RFC 1643), private networks (RFC 1918), and zeroconf (RFC 3927) usage.

 

IPv4 Address Classes

Class Address Ranges

Class A - 1.0.0.0 to 126.0.0.0
Class B - 128.0.0.0 to 191.255.0.0
Class C - 192.0.1.0 to 223.255.255.0

Class D* - 224.0.0.0 to 239.255.255.255
Class E* - 240.0.0.0 to 255.255.255.255

Class A, Class B, and Class C are the three classes of addresses used on IP networks in common practice. Class D addresses are reserved for multicast. Class E addresses are simply reserved, meaning they should not be used on IP networks (used on a limited basis by some research organizations for experimental purposes).

 

Reserved Address Ranges

Address ranges below are reserved by IANA for private intranets, and not routable to the Internet. For additional information, see RFC 1918.

10.0.0.0 - 10.255.255.255 (10/8 prefix)
172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
192.168.0.0 - 192.168.255.255 (192.168/16 prefix)

 

Other reserved addresses:

127.0.0.0 is reserved for loopback and IPC on the localhost.
224.0.0.0 - 239.255.255.255 is reserved for multicast addresses.
255.255.255.255 is the limited broadcast address (limited to all other nodes on the LAN)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值