Appendix D IP Addresses and Subnetting
P-791R v2 User’s Guide
311
Subnet masks are expressed in dotted decimal notation just like IP addresses. The following
examples show the binary and decimal notation for 8-bit, 16-bit, 24-bit and 29-bit subnet
masks.
Network Size
The size of the network number determines the maximum number of possible hosts you can
have on your network. The larger the number of network number bits, the smaller the number
of remaining host ID bits.
An IP address with host IDs of all zeros is the IP address of the network (192.168.1.0 with a
24-bit subnet mask, for example). An IP address with host IDs of all ones is the broadcast
address for that network (192.168.1.255 with a 24-bit subnet mask, for example).
As these two IP addresses cannot be used for individual hosts, calculate the maximum number
of possible hosts in a network as follows:
Notation
Since the mask is always a continuous number of ones beginning from the left, followed by a
continuous number of zeros for the remainder of the 32 bit mask, you can simply specify the
number of ones instead of writing the value of each octet. This is usually specified by writing
a “/” followed by the number of bits in the mask after the address.
For example, 192.1.1.0 /25 is equivalent to saying 192.1.1.0 with subnet mask
255.255.255.128.
The following table shows some possible subnet masks using both notations.
Table 101
Subnet Masks
BINARY
DECIMAL
1ST
OCTET
2ND
OCTET
3RD
OCTET
4TH OCTET
8-bit mask
11111111
00000000
00000000
00000000
255.0.0.0
16-bit mask
11111111
11111111
00000000
00000000
255.255.0.0
24-bit mask
11111111
11111111
11111111
00000000
255.255.255.0
29-bit mask
11111111
11111111
11111111
11111000
255.255.255.248
Table 102
Maximum Host Numbers
SUBNET MASK
HOST ID SIZE
MAXIMUM NUMBER OF HOSTS
8 bits
255.0.0.0
24 bits
2
24
– 2
16777214
16 bits
255.255.0.0
16 bits
2
16
– 2
65534
24 bits
255.255.255.0
8 bits
2
8
– 2
254
29 bits
255.255.255.248 3 bits
2
3
– 2
6
Table 103
Alternative Subnet Mask Notation
SUBNET MASK
ALTERNATIVE
NOTATION
LAST OCTET
(BINARY)
LAST OCTET
(DECIMAL)
255.255.255.0
/24
0000 0000
0
255.255.255.128
/25
1000 0000
128
Summary of Contents for P-791R
Page 2: ......
Page 7: ...Safety Warnings P 791R v2 User s Guide 7 This product is recyclable Dispose of it properly...
Page 8: ...Safety Warnings P 791R v2 User s Guide 8...
Page 20: ...Table of Contents P 791R v2 User s Guide 20...
Page 32: ...32...
Page 46: ...Chapter 2 Introducing the Web Configurator P 791R v2 User s Guide 46...
Page 53: ...Chapter 3 Wizard Setup for Internet Access P 791R v2 User s Guide 53...
Page 54: ...Chapter 3 Wizard Setup for Internet Access P 791R v2 User s Guide 54...
Page 58: ...Chapter 4 Point to point Configuration P 791R v2 User s Guide 58...
Page 59: ...59 PART II Network Setup WAN Setup 61 LAN Setup 83 Network Address Translation NAT Screens 93...
Page 60: ...60...
Page 82: ...Chapter 5 WAN Setup P 791R v2 User s Guide 82...
Page 104: ...Chapter 7 Network Address Translation NAT Screens P 791R v2 User s Guide 104...
Page 105: ...105 PART III Security Filter 107...
Page 106: ...106...
Page 110: ...110...
Page 114: ...Chapter 9 Static Route P 791R v2 User s Guide 114...
Page 118: ...Chapter 10 Dynamic DNS Setup P 791R v2 User s Guide 118...
Page 128: ...Chapter 11 Remote Management Configuration P 791R v2 User s Guide 128...
Page 140: ...Chapter 12 Universal Plug and Play UPnP P 791R v2 User s Guide 140...
Page 141: ...141 PART V Maintenance System 143 Logs 149 Tools 153 Diagnostic 159...
Page 142: ...142...
Page 148: ...Chapter 13 System P 791R v2 User s Guide 148...
Page 158: ...Chapter 15 Tools P 791R v2 User s Guide 158...
Page 162: ...162...
Page 168: ...Chapter 17 Introducing the SMT P 791R v2 User s Guide 168...
Page 172: ...Chapter 18 General Setup P 791R v2 User s Guide 172...
Page 178: ...Chapter 19 WAN Setup P 791R v2 User s Guide 178...
Page 194: ...Chapter 22 Remote Node Setup P 791R v2 User s Guide 194...
Page 198: ...Chapter 23 Static Route Setup P 791R v2 User s Guide 198...
Page 226: ...Chapter 25 Filter Configuration P 791R v2 User s Guide 226...
Page 228: ...Chapter 26 SNMP Configuration P 791R v2 User s Guide 228...
Page 230: ...Chapter 27 System Password P 791R v2 User s Guide 230...
Page 240: ...Chapter 28 System Information Diagnosis P 791R v2 User s Guide 240...
Page 268: ...Chapter 31 IP Routing Policy Setup P 791R v2 User s Guide 268...
Page 272: ...Chapter 32 Schedule Setup P 791R v2 User s Guide 272...
Page 278: ...Chapter 33 Troubleshooting P 791R v2 User s Guide 278...
Page 280: ...280...
Page 286: ...Appendix A Product Specifications P 791R v2 User s Guide 286...
Page 320: ...Appendix E IP Address Assignment Conflicts P 791R v2 User s Guide 320...
Page 324: ...Appendix F Common Services P 791R v2 User s Guide 324...
Page 330: ...Appendix G Command Interpreter P 791R v2 User s Guide 330...
Page 342: ...Appendix H Log Descriptions P 791R v2 User s Guide 342...
Page 348: ...Appendix J Legal Information P 791R v2 User s Guide 348...
Page 354: ...Appendix S Customer Support P 791R v2 User s Guide 38...