Layer3 IP Subnetmask Subnetting
Layer3 IP Subnetmask Subnetting
MASK
Trainer : RAMU CH
CCIE –DC # 57015
• LAYER 3 : IP layer
• Layer 3 : IP Protocol
• Subnetting
Protocol :
IP
Functions :
• IP Routing
• Ip data forwarding
• Best path determination
• Logical connection setup
Addressing :
IP addressing
Topologies:
WAN
Internet / different Network
Hardware :
Routers , Firewalls,L3 Switches
Protocol :
IP
Functions :
• IP Routing
• Ip data forwarding
• Best path determination
• Logical connection
IPv4setup
IPv6
Addressing :
IP addressing
Topologies:
WAN
Internet / different Network
Hardware :
Routers , Firewalls,L3 Switches
Protocol :
IP
Functions :
• IP Routing
• Ip data forwarding
• Best path determination
• Logical connection setup
Addressing :
IP addressing
Topologies:
WAN
Internet / different Network
Hardware :
Routers , Firewalls,L3 Switches
L3 Protocol : IP
• Provides standards for Internetwork communication
I BLOCK
G BLOCK
MANJEERATOWERS
APARNA SAROVER
HYDERABAD
HYDERABAD
FLAT NO 120
G BLOCK
APARNA SAROVER
HYDERABAD
IP : Media Independence
IP header :
• 32 bit Length
• The encapsulated data is referred
to as IP Payload
Why IP NEED TO A HOST
• No need of IP address to communicate in A LAN .Wins with Netbios using LMHost file for Local resource
sharing
• we can communicate with help of NETBIOS and WINS.
• IP Address is at the "Software or Logical level, and helps to establish communication between 2 or more
Networks at the OSI (Network Level), whereas the MAC Address is at the OSI (Data Link Layer), which has the
Physical Address of the actual node (machine)
10.1.1.1
Why ??
Each section
contains a number
between 0 and 255
IP Address
• Why is each section a number between 0 and 255?
Or
• why an IP address never has a number in it greater than 255?
• Computers treat IP addresses as a single large 32 digit binary number, but this is hard for
people to do.
• That’s the maximum value for 8 bits of data: you can only represent 0 to 255 with 8
bits.
• So, we split them up into four smaller sections so we can remember and work with them
better!
IP Address
• 32/4 == 8.
• 28 = 256.
• But, computers number starting at 0, so to make a space of 256
numbers, we number from 0 to 255
Each device on a network is assigned an IP address.
Each IP address has two fundamental parts:
• The network portion, which describes the physical wire the device is attached
to.
• The host portion, which identifies the host on that wire.
What is My IP Address
• Type ipconfig for basic information and press the Enter key.
• Type ipconfig /all for detailed information and press the Enter key
Binary and Decimal Conversion
What is Network , what is host
SUBNET MASK :
Network
Host
Answer for this is Subnet mask or Network mask
Decimal Equivalents of 8-Bit Patterns
IP Address & Subnet mask
• The network mask shows us where to
10.1.1.1
split the network and host sections.
prefix host
• The broadcast address is the IP
address with all 1’s in the host these bits are 0, so this is the network address
bits.
10 1 1 255/24
00001010 000000011 00000001 11111111
• Packets sent to either address
will be delivered to all the hosts prefix host
connected to the wire.
these bits are 1, so this is the broadcast address
TYPES of IP ADDRESS
PRIVATE IP ADDRESS
PUBLIC IP ADDRESS
Private vs Public
PRIVATE PUBLIC
LAN INTERNET
NETWORK ADMINISTRATOR IANA
• Network ID
• Broadcast address
• Hosts for classes of IP addresses
Hosts for Classes of IP Addresses
0
1
192 . 168 . 10 .
254
255 BOADCAST ADDRESS
INVALID
256
Sample
NETWORK ADDRESS
0
1
192 . 168 . 11 .
254
255 BOADCAST ADDRESS
INVALID
256
By default
192.168.150.10/
255.255.255.0
10.254.254.100
/255.255.255.0
172.44.100.100
/255.255.0.0
172.16.272.10
/255.255.0.0
194.168.10.259
/255.255.255.0
12.200.200.10
/255.0.0.0
SOURCE DESTINATION IP CLASS SAME N/W or DIFF HARDWARE (L2/L3)
IP/Subnetmask N/W
192.168.100.10/ 192.168.100.200/
255.255.255.0 255.255.255.0
172.16.200.100 172.25.100.240
/255.255.0.0 /255.255.0.0
192.168.100.10/ 194.168.200.10/
255.255.255.0 255.255.255.0
172.16.175.13/ 172.16.254.13/
255.255.0.0 255.255.0.0
10.10.100.100/ 10.100.200.245
255.0.0.0 /255.0.0.0
Boolean Operations:
AND, OR, and NOT
• AND is like multiplication.
• OR is like addition.
• NOT changes 1 to 0, and 0 to 1.
Network Address calculation
Write down the IP 11000000 10101000 01100100 01010000
address. 192 168 100 80
• Ex: 255.255.255.255
SUBNETTING-Overview
• What is a subnetting ?
• Advantages & Disadvantages
• Where is it used?
• Sample Example : SubNetting your network
• CIDR Notation
SUBNETTING
172.24.4.0 /
255.255.255.0.
172.24.5.0 /
255.255.255.0.
Advantages
• Allows a single shared network address to split it up into many
smaller networks.
• Better Security
• Separating departments with highly sensitive material
• Protects from Collisions & broadcasts
• Alleviates traffic
• Smaller routing tables
• Alleviates excessive packet collision and congestion
• Care full planning for implementation
Aparna Sarover
Hyderabad
172 24 4 100
HYDERABAD FLAT NO
APARNA
SAROVER
Flat No : 100
255 255 255 0
K Block
Aparna Sarover
Hyderabad
172 24 4 100
HYDERABAD FLAT NO
K Block
APARNA
SAROVER
SUBNETTING
CLASS Subnet Mask No of Network bits No of host bits
A 255.0.0.0 8 24
B 255.255.0.0 16 16
C 255.255.255.0 24 8
IP ADDRESS PLANNIG
• REQUIREMENT
h
2 -2 >- No of host requirements 2n>- No of Networks required
Sub netting Condition
• To create a subnet address, a network administrator borrows bits
from the original host portion and designates them as the
subnet/network field.
CLASS C : 192.168.10.0/255.255.255.0
HR : 25 hosts
FINANACE : 25 hosts
IT : 25 hosts
DEVELOPMENT: 25 hosts
Servers : 25 hosts
HR Team IT Team
Finance Team
FORMULA
No of Hosts / per Network = 25 hosts
h
H should be ? 2 -2 > No of host requirements
H should be 5
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
Start: 192.168.10.64
Last Ip : 192.168.10.95
Start: 192.168.10.128
HR : 200 hosts
FINANACE : 200 hosts
IT : 200 hosts
DEVELOPMENT: 200 hosts
Servers : 200 hosts
HR Team IT Team
Finance Team
FORMULA
No of Hosts / per Network = 200 hosts
h
H should be ? 2 -2 > No of host requirements
H should be 8
1 1 1 1 1 1 1 1. 1 1 1 1 1 1 1 1. 0 0 0 0 0 0 0 0. 0 0 0 0 0 0 0 0
Start: 172.24.2.0
Last Ip : 172.24.2.255
Start: 172.24.4.0
IT Team
Last Ip : 172.24.4.255 Start:172.24.3.0
Subnet mask : 255.255.255.0 Last Ip : 172.24.3.255