3Com 3c17300 Implementation Guide - Page 90

Subnets and Subnet Masks,

Page 90 highlights

92 APPENDIX C: IP ADDRESSING Subnets and Subnet Masks You can divide your IP network into sub-networks also known as subnets. Support for subnets is important because the number of bits assigned to the device part of an IP address limits the number of devices that may be addressed on any given network. For example, a Class C address is restricted to 254 devices. The IP address can also contain a subnetwork part at the beginning of the host part of the IP address. Thus, you can divide a single Class A, B, or C network internally, allowing the network to appear as a single network to other external networks. The subnetwork part of the IP address is visible only to hosts and gateways on the subnetwork. When an IP address contains a subnetwork part, a subnet mask identifies the bits that constitute the subnetwork address and the bits that constitute the host address. A subnet mask is a 32-bit number in the IP address format. The 1 bits in the subnet mask indicate the network and subnetwork part of the address. The 0 bits in the subnet mask indicate the host part of the IP address, as shown in Figure 29. Figure 29 Subnet Masking IP address Take the IP address Network Subnet and Host Apply the subnet mask Subnet mask 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 Result = subnet/host boundary Nentewtwoorkr Ssuubbnnet Host Figure 30 shows an example of an IP address that includes network, subnetwork, and host parts. Suppose the IP address is 158.101.230.52 with a subnet mask of 255.255.255.0. Since this is a Class B address, this address is divided as follows: ■ 158.101 is the network part ■ 230 is the subnetwork part ■ 52 is the host part

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105

92
A
PPENDIX
C: IP A
DDRESSING
Subnets and Subnet
Masks
You can divide your IP network into sub-networks also known as subnets.
Support for subnets is important because the number of bits assigned to
the device part of an IP address limits the number of devices that may be
addressed on any given network. For example, a Class C address is
restricted to 254 devices.
The IP address can also contain a
subnetwork part
at the beginning of the
host part of the IP address. Thus, you can divide a single Class A, B, or C
network internally, allowing the network to appear as a single network to
other external networks. The subnetwork part of the IP address is visible
only to hosts and gateways on the subnetwork.
When an IP address contains a subnetwork part, a
subnet mask
identifies
the bits that constitute the subnetwork address and the bits that
constitute the host address. A subnet mask is a 32-bit number in the IP
address format. The
1
bits in the subnet mask indicate the network and
subnetwork part of the address. The
0
bits in the subnet mask indicate
the host part of the IP address, as shown in
Figure 29
.
Figure 29
Subnet Masking
Figure 30
shows an example of an IP address that includes network,
subnetwork, and host parts. Suppose the IP address is
158.101.230.52
with a subnet mask of
255.255.255.0
. Since this is a Class B address, this
address is divided as follows:
158.101
is the network part
230
is the subnetwork part
52
is the host part
IP address
Network
Subnet and Host
Subnet mask
networ
Host
subn
Subnet
Network
Apply the subnet mask
Result = subnet/host boundary
Take the IP address
1
0
1111 11 1111
0
0
0
0
0
0
0
1 1 11 11 11 11111