Академический Документы
Профессиональный Документы
Культура Документы
Cisco Public
IP Address Classes
IP addresses are divided into classes to define the large, medium, and small networks. Class A addresses are assigned to larger networks. Class B addresses are used for medium-sized networks, Class C for small networks, Class D for Multicasting Class E for Experimental purposes
Cisco Public
Cisco Public
IP address types
IP address could be one of three categories Network address Host address Broadcast address
Cisco Public
- other addresses are host addresses = 2 -Here are some examples: Class A B C
ITE PC v4.0 Chapter 1
-2
Subnet Mask
- 32 bit mask ( 1s followed by 0s ) - Used by routers and hosts to determine the number of network- significant bits ( identified by 1s ) and host- significant bits in an IP address (identified by 0s) - example :
Class A B C
ITE PC v4.0 Chapter 1
/8 /16 /24
6
Subnet masks like IP addresses can be represented in the dotted decimal format like 255.255.255.0.
ITE PC v4.0 Chapter 1 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Subnetting
- Subnetting a network means to use the subnet mask to divide the network and break a large network up into smaller, more efficient and manageable segments, or subnets. - Subnetting is done by taking part of host bits then add it to the network part
IP address
Network part
Host part
Subnet bits
Network part
ITE PC v4.0 Chapter 1
Host part
Cisco Public
Subnetting Example
Divide network 192.168.1.0/24 into 4 subnets
Solution: 4 subnets need 2 bits
192.168.1 . 0 192.168.1 . 0000 0000 to 0011 1111 192.168.1 . 0100 0000 to 0111 1111 192.168.1 . 1000 0000 to 1011 1111 192.168.1 . 1100 0000 to 1111 1111
0 - 63
64 - 127
128 - 191
192 - 255
192.168.1.64/26
192.168.1.128/26
192.168.1.192/26
Cisco Public
Subnetting Example
Divide network 192.168.1.0/24 into 4 subnets
-
Solution :
4 subnets need 2 bits
192.168.1.0/26
192 - 255
Cisco Public
10
Subnetting Example
Divide network 172.16.0.0/16 into 8subnets
Solution :
- 8 subnets need 3 bits
172.16.0.0/19
172.16.0.1-172.16.31.254
172.16.32.1 -172.16.63.254 172.16.64.1-172.16. 95.254
172.16.224.0/19
172.16.224.1-172.16.255.254
Cisco Public
11
Subnetting Example
Divide network 10.0.0.0/10 into 4subnets
Solution :
- 4subnets need 2 bits - subnet mask = 255.240.0. 0
10.32.0.0/12
10.48.0.0/12
Cisco Public
12
Cisco Public
13
Given the Class C network of 204.15.5.0/24, subnet the network in order to create the network in the figure below, with the host requirements shown
Cisco Public
14
In order to create the 5 needed subnets you would need to use 3 bits from the Class C host bits.
Two bits would only allow you four subnets (22).
15
Cisco Public
16
Waste of IP Addresses ?
17
In many cases, having the same subnet mask for all subnets ends up wasting address space. Solution ? Using Variable Length Subnet Masks (VLSM)
VLSM allows you to use different masks for each subnet, thereby using address space efficiently
How ? The easiest way to assign the subnets is to assign the largest first and work your way down. In our case: Proceed in the following order: Network B, E, A, D, C
ITE PC v4.0 Chapter 1
Cisco Public
18
Cisco Public
19
Example: 204.15.5.64/27 (Apply Subnetting on this one) To support 14 hosts (at least 4 bits are needed for the hosts)
Subnet Mask = 255. 255.255.240 Interesting Octet = 240 Number of Subnets = 2 ^ 1 = 2 /28 Hop Count = 256 240 = 16
(Assign
20
Example: 204.15.5.80/28 (Apply Subnetting on this one) To support 7 hosts (at least 4 bits are needed for the hosts, 3 bits has only 6 valid hosts) Hence no need for any more subnetting 204.15.5.80/28 -> Host Address Range 81 to 94
Cisco Public
21
Example: 204.15.5.96/28 (Apply Subnetting on this one) To support 2 hosts (at least 2 bits are needed for the hosts)
Subnet Mask = 255. 255.255.252 Interesting Octet = 252 Number of Subnets = 2 ^ 2 = 4 /30 Hop Count = 256 252 = 4
(Assign
22
Subnet D 204.15.5.80/28 host address range 81 to 94 Subnet C 204.15.5.96/30 host address range 97 to 98
Cisco Public
23
Cisco Public
24
Cisco Public
25
Cisco Public
26