Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 17

Static Route: Routing

Static Route, Routing concepts,


Router Basic
Static Route vs Dynamic Route

Static Routing Scenario


Static Route vs Dynamic Route:
Mannual Config
Static Route vs Dynamic Route:
OSPF vs EIGRP

Small Dynamic Routing Scenario

Large Dynamic Routing Scenario


Static Route vs Dynamic Route:
RIP, OSPF vs EIGRP
Static Route: Default Gateway

Packet 192.168.1.1 172.16.1.3 PC1 F0/1 172.16.1.3


Packet 192.168.1.1 F0/2 PC3

Packet 192.168.1.1 192.168.1.2 PC1 PC2

PC1 192.168.1.1

Default Gateway 192.168.1.254 172.16.1.1 172.16.1.3 PC3


F0/1 F0/2
192.168.1.254
F0/3
10.0.0.1

PC2 192.168.1.2
10.0.0.2

Server
Static Route: Direct Communication

Routing Table Routing Table

10.0.1.0/24 f0/0
10.0.2.0/24 f0/1 10.0.2.0/24 f0/1
10.0.3.0/24 f0/0

10.0.1.0/24 10.0.2.0/24 10.0.3.0/24


PC1 .1 .2
R1
.3 .4
R2
.5 .6 PC2
f0/0 f0/1 f0/1 f0/0

Data 10.0.1.1
Data 10.0.1.1
10.0.1.2 10.0.1.2

Data 10.0.1.2 10.0.1.1


Static Route: Indirect Communication

Routing Table Routing Table

10.0.1.0/24 f0/0
10.0.2.0/24 f0/1 10.0.2.0/24 f0/1
10.0.3.0/24 f0/0
Default
Gateway
10.0.1.2 10.0.1.0/24 10.0.2.0/24 10.0.3.0/24
PC1 .1 .2
R1
.3 .4
R2
.5 .6 PC2
f0/0 f0/1 f0/1 f0/0

Data 10.0.1.1
Data 10.0.1.1
10.0.2.3 10.0.2.3

Data 10.0.2.3 10.0.1.1


Static Route: Indirect Communication

Routing Table Routing Table


R1(config)# interface loopback 1
10.0.1.0/24
R1(config-if)# f0/0 255.255.255.0
ip address 10.0.4.2 10.0.1.0/24 via 10.0.2.3
10.0.2.0/24 f0/1
Loopback 1 10.0.2.0/24 f0/1
10.0.4.1/24 10.0.3.0/24 f0/0
Default
Gateway
10.0.1.2 10.0.1.0/24 10.0.2.0/24 10.0.3.0/24
PC1 .1 .2
R1
.3 .4
R2
.5 .6 PC2
f0/0 f0/1 f0/1 f0/0

Data 10.0.1.1
Data 10.0.1.1
10.0.2.4 10.0.2.4 Data 10.0.1.1 10.0.2.4

R2(config)#Data
ip route
10.0.2.4
10.0.4.0
10.0.1.1
255.255.255.0 10.0.2.3
172.16.0.0/16
R2(config)# ip route 172.16.0.0 255.255.0.0 10.0.2.3
R2(config)# ip route 10.0.1.0 255.255.255.0 10.0.2.3
ip next-hop
Interface Loopback: Load Balancing
Loopback 1
10.0.0.1/32
ip dhcp pool LAN1
network 192.168.0.0 255.255.255.0
DHCP
Server default-gateway 192.168.0.1
172.16.1.1 172.16.2.2

interface f0/0
DHCP ip helper-address 10.0.0.1
172.16.1.1
Relay
F0/0
192.168.0.1/24

DHCP
Client
Static Route: Indirect Communication

Routing Table Routing Table

10.0.1.0/24 f0/0 10.0.1.0/24 via 10.0.2.3


10.0.2.0/24 f0/1 10.0.2.0/24 f0/1
10.0.3.0/24 via 10.0.2.4 10.0.3.0/24 f0/0

10.0.1.0/24 10.0.2.0/24 10.0.3.0/24


PC1 .1 .2
R1
.3 .4
R2
.5 .6 PC2
f0/0 f0/1 f0/1 f0/0

Data 10.0.1.1 10.0.3.6 10.0.3.6


Data 10.0.1.1 Data 10.0.1.1 10.0.3.6
Data 10.0.1.1 10.0.3.6

Data 10.0.3.6 10.0.1.1 Data 10.0.3.6 10.0.1.1


Data 10.0.3.6 10.0.1.1
Static Route: Routing Table

Routing Table

10.0.1.0/24 f0/0
10.0.2.0/24 f0/1
10.0.3.0/24 via 10.0.2.4

10.0.1.0/24 10.0.2.0/24 10.0.3.0/24


PC1 .1 .2
R1
.3 .4
R2
.5 .6 PC2
f0/0 f0/1 f0/1 f0/0

R1# show ip route


Codes: C - connected, S - static
R1(config)# ip route 10.0.3.0 255.255.255.0 10.0.2.4
10.0.0.0/24 is subnetted, 3 subnets
R1(config)#
C interface
10.0.1.0 f0/1
is directly connected, F0/0
R1(config-if)#
C ip address 10.0.2.3 255.255.255.0
10.0.2.0 is directly connected, F0/1
S 10.0.3.0
R1(config)# [1/0]f0/0
interface via 10.0.2.4
R1#
R1(config-if)# ip address 10.0.1.2 255.255.255.0
Static Route: Default Route

Internet
Network

RA(config)# ip route 0.0.0.0 0.0.0.0 s0/0/1


S0/0/1
Static Route: Default Route

R1(config)# ip route 0.0.0.0 0.0.0.0 172.16.2.2


Routing Table Routing Table

10.0.1.0/24 f0/0 10.0.3.0/24 f0/0


10.0.2.0/24 f0/1 10.0.4.0/24 f0/1
10.0.4.0/24 via 10.0.2.2 10.0.1.0/24 via 10.0.3.2

10.0.1.0/24 10.0.2.0/24 10.0.3.0/24 10.0.4.0/24


PC1 .1 .2
R1
.1 .2
R2
.2 .3
R3
.3 .2 PC2

Routing Table

10.0.2.0/24 f0/0
10.0.3.0/24 f0/1
10.0.4.0/24 via 10.0.3.3
10.0.1.0/24 via 10.0.2.1
Static Route: Administrative Distance (AD)

Routing Table

172.16.0.0/16 via 10.0.1.1 .1


. 0 .1 R1
172.16.0.0/16 via 10.0.2.1 10

PC1 R3 172.16.0.0/16

10.
0.2
.2
ip route 172.16.0.0 255.255.0.0 10.0.1.1 1 R2
ip route 172.16.0.0 255.255.0.0 10.0.2.2 1
2

You might also like