IP Subnet and IP Routing
IP Subnet and IP Routing
2. Introduction to IP Subnetting
Contents
3. Introduction to IP Routing
IP
Function APR, RARP, ICMP
Logical address definition
Addressing and Routing
Devices
IP/MPLS Routers
L3 PTN……
Source IP address
Destination IP address
IP options
IP address
1 1 1 1 1 1 1 1
7 6 5 4 3 2 1 0
2 2 2 2 2 2 2 2
128 64 32 16 8 4 2 1
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255
8 bits
1 1 1 0 1 0 0 1
7 6 5 4 3 2 1 0
2 2 2 2 2 2 2 2
128 + 64 + 32 + 0 + 8 + 0 + 0 + 1 = 233
BROADEN YOUR FUTURE
Typical Conversion Result
1.0.0.0~
0 Network Class A
126.255.255.255 Host(24bits)
(7bits)
128.0.0.0~
191.255.255.255 1 0 Network(14bits) Host(16bits) Class B
224.0.0.0~
239.255.255.255 1 1 1 0 Multicast Address Class D
240.0.0.0~
255.255.255.255 Reserved Class E
If the network address of the source host is equal to the one of the destination host, they
belongs to the same network segment.
An IPv4 netmask consists of 32 bits, a sequence of ones (1) followed by a block of zeros (0).
The trailing block of zeros designates that part as being the host identifier.
For example:
Netmask
Binary Format 11111111 11111111 11111111 00000000
PC2
PC3 Addresses for host 211.134.27.1~211.134.27.254
211.134.27.232/24 211.134.28.232/24
b) 132.127.0.0
c) 192.168.0.1
d) 172.16.0.0
2. Introduction to IP Subnetting
Contents
3. Introduction to IP Routing
Network
segment 2
192.168.1.64/27
192.168.1.96/27
201.168.1.64/27
201.168.1.96/27
201.168.1.128/27
198.168.1.0/24
border router
Internet 198.168.2.0/24
Advertise
198.168.0.0/16
198.168.3.0/24
2. Introduction to IP Subnetting
Contents
3. Introduction to IP Routing
Desti./MASK NEXTHOP
Desti./MASK NEXTHOP
100.1.0.0/16 DIRECT
100.1.0.0/16 R2
…..
….. R2 (100.1.0.0)
Desti./MASK NEXTHOP
100.1.0.0/16 R1 R1
…..
100.1.1.1
R5
(200.2.0.0)
R3
R4
a route
OSPF 110
STATIC 1
[RTB]show ip route
Destination/Mask Protocol Administrative Distance Metric Nexthop Interface
10.1.1.0/30 connected 0 0 10.1.1.1 Ethernet0/2
10.1.1.1/32 connected 0 0 127.0.0.1 InLoopBack0
.2
10.1.2.1/32 connected 0 0 127.0.0.1 InLoopBack0
10.1.2.0/30 connected 0 0 10.1.2.2 Ethernet0/1
RTC
2.2.2.2/32
Command on PC:
A B C
.1 .2 .1 .2
10.1.1.0/24 10.4.4.0/24
10.2.2.0/24 10.3.3.0/24
10.1.1.0/24 10.4.4.0/24
10.2.2.0/24 10.3.3.0/24
RTC
10.1.2.0/24
.2
OSPF
RTA
[RTB]show ip route
ISIS .1 Ethernet0/1
Destination/Mask Protocol Administrative Distance Metric Nexthop Interface
10.1.1.0/30 10.1.1.0/30 connected 0 0 10.1.1.2 Ethernet0/1
.2 .1 10.1.1.1/32 connected 0 0 127.0.0.1 InLoopBack0
Ethernet0/2
192.168.2.1/24 RTB ……
172.16.1.1/32 OSPF 110 10 10.1.2.2 Ethernet0/1
192.168.1.0/24 ISIS 115 10 10.1.1.1 Ethernet0/2
OSPF OSPF
An autonomous system (AS) is a collection of connected routers
under the control of one operators on behalf of a single
administrative entity or domain that presents a common, clearly
defined routing policy to the Internet. OSPF
OSPF
AS 200
PC2
PC1
IP1 IP2
MAC1 MAC2
ARP reply message
PC1 PC2
I know, =MACb.1
I know, =MAC2
Internet
PC1 SW1 Router1 IP4/MAC4
D
A B C
Server1