Topic3-Subnetting VLSM and Summarization
Topic3-Subnetting VLSM and Summarization
Network ID Host ID
128.143 137.144
IP address
IP Subnet Rule #2
• Another example to determine what the network ID is, for
any given IP address
– you have to convert both addresses into binary, and do a bitwise
AND operation.
• Example: IP address 156.154.81.56, network mask
255.255.255.240:
• These two addresses represent the “head” and the “tail” of the
given IP address block range.
• A broadcast address
– is a network address that allows information to
be sent to all nodes on a LAN, rather than to a
specific network host.
• Broadcast is used in ARP and DHCP.
• Router will stop broadcast from reaching
other subnets.
• Thus, an IP network/subnet is also called a
broadcast domain.
IP subnet rule #9
• The first usable IP and the last usable IP.
– Usable IP addresses mean they can be used in hosts, PCs, printers,
gateways, and servers.
• The first usable IP = network address + 1
– More precisely, host ID = 1
– If network adress = 192.168.3.0, first usable IP = 192.168.3.1
• The last usable IP = broadcast address – 1
– More precisely, host ID = All ‘1’s – 1
– If broadcast address = 192.168.3.255, last usable IP = 192.168.3.254
• Cisco guidelines (not rules):
– Last usable IP is preferred to be
• router IP address = gateway IP
– First usable IP is preferred to be
• server, printer or important machines
• any host that requires a static IP
LAN IP design guideline
• Given a range of IP address:
– First few IP addresses are
preferred to be used for setting First IP
static IP for servers and printers e.g. 192.168.1.1 Static IP
• Starting from the first IP and
counting down
• e.g: 192.168.1.1 for DHCP server;
192.168.1.2 for printer Static IP
– Last IP address is preferred to be
used for setting router IP (gateway Mid-range IP
IP)
• e.g. 192.168.1.254 for gateway Dynamic IP
– Mid-range IP addresses are
preferred to be set as the DHCP
range for the PCs
• e.g 192.168.1.10 to 192.168.1.253
e.g. 192.168.1.254 Static IP
• In this range, we reserve first 10 IP
for servers and printer and the last Last IP
IP for gateway
Why Last Usable IP for Gateway?
• Case study:
subnetting
supernetting
IP Subnet Rules #14
• Split the host number portion of an IP address into a subnet
number and a (smaller) host number (borrowing host bits).
• Results in a few small blocks of IP addresses.
• The subnet mask will be extended with more ‘1’
172.16 0.0
8 bits 8 bits
network prefix Subnet # hosts
Continue
next page
Steps to Subnetting (9)
Steps to Subnetting (10)
VLSM (1)
• Variable-length subnet masking (VLSM) is a
more realistic way of subnetting to efficiently
use of all of the bits.
192.168.1.32/27 192.168.1.0/27
VLSM Example #1 (4)
192.168.1.48/28 192.168.1.0/27
VLSM Example #1 (8)
192.168.1.32/28
192.168.1.48/28 192.168.1.0/27
Route
supernetting Summarization
172.16.128.0/22
Pros and Cons of subnetting
• Pros:
– Better security and management
– More host IP being utilized within the subnet.
• Cons:
– Waste some host IP in the form of network
address, broadcast address, and gateway IPs
– Network design is more complex in order to
perform the IP planning.