Вы находитесь на странице: 1из 27

Static Routing

Naveen Patel
Static Routing For Multiple Routers - Network Diagram

10.0.0.1/8 11.0.0.1/8
S0 S0

HYD S1 CHE S1 BAN


BAN
10.0.0.2/8 11.0.0.2/8
E0 E0 E0
192.168.1.1/24 192.168.2.1/24 192.168.3.1/24

LAN - 192.168.1.0/24 LAN - 192.168.2.0/24 LAN - 192.168.3.0/24

Naveen Patel
Disadvantages of Static Routing

Administrative work is more.

Compulsory need of Destination Network IDs

Used for only Small organizations

It cannot dynamically update topology changes.

Naveen Patel
Default Routing

A Default routing protocol is configured for

unknown destinations.

Generally used in the internet where the destinations

are unknown.

Example : The address of yahoo is unknown.

Configured at end points

It is the last preferred routing

Naveen Patel
Default Routing - Real Time Example

INTERNET

HYD
E0 E0
192.168.1.1/24 202.54.30.150/24

LAN - 192.168.1.0/24

IP 202.54.30.1/24
Naveen Patel
Default Routing - Network Diagram

10.0.0.1/8 11.0.0.1/8
S0 S0

HYD S1 CHE S1 BAN


10.0.0.2/8 11.0.0.2/8
E0 E0 E0
192.168.1.1/24 192.168.2.1/24 192.168.3.1/24

LAN - 192.168.1.0/24 LAN - 192.168.2.0/24 LAN - 192.168.3.0/24

Naveen Patel
Naveen Patel
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
telnet 192.168.1.1
C:\>
Connecting .....
================================
Welcome to Hyderabad Router
Directly Connected
Directly Connected Networks
================================ Networks on
on
User Access Verification HYDERABAD Router
HYDERABAD Router
password : **** 192.168.1.0
192.168.1.0
Hyderabad> enable 10.0.0.0
10.0.0.0
password : ****
Hyderabad# configure terminal
Indirectly
Indirectly
Enter configuration Connected
Connected
commands, Networks
one perNetworks on
on
line. End with CNTL/Z.
HYDERABAD
HYDERABAD
Hyderabad(config)# interface Router
serial 0Router
192.168.2.0
Hyderabad(config-if)# ip address 10.0.0.1 255.0.0.0
192.168.2.0
Hyderabad(config-if)# no shut
192.168.3.0
192.168.3.0
Hyderabad(config-if)# clockrate 64000
11.0.0.0
11.0.0.0
Hyderabad(config-if)# encapsulation hdlc
Hyderabad(config-if)# exit
Hyderabad(config)#
Diagram
Naveen Patel
Hyderabad(config)# no ip routing
Hyderabad(config)# ip routing
Hyderabad(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.2
Hyderabad(config)# ip route 192.168.3.0 255.255.255.0 10.0.0.2
Hyderabad(config)# ip route 11.0.0.0 255.0.0.0 10.0.0.2
Hyderabad(config)#

Diagram
Naveen Patel
Hyderabad(config)# no ip routing
Hyderabad(config)# ip routing
Hyderabad(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.2
Hyderabad(config)# ip route 192.168.3.0 255.255.255.0 10.0.0.2
Hyderabad(config)# ip route 11.0.0.0 255.0.0.0 10.0.0.2
Hyderabad(config)# ^Z
Hyderabad# show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

C 10.0.0.0/8 is directly connected, Serial0


S 11.0.0.0/8 [1/0] via 10.0.0.2
C 192.168.1.0/24 is directly connected, Ethernet0
S 192.168.2.0/24 [1/0] via 10.0.0.2
S 192.168.3.0/24 [1/0] via 10.0.0.2
Hyderabad#
Diagram
Naveen Patel
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
telnet 192.168.2.1
C:\>
Connecting .....
================================
Welcome to Chennai Router
Directly Connected
Directly Connected Networks
================================ Networks onon
CHENNAI Router
User Access Verification CHENNAI Router
password : **** 192.168.2.0
192.168.2.0
Chennai> enable 10.0.0.0
10.0.0.0
password : **** 11.0.0.0
Chennai# configure terminal 11.0.0.0
Enter configuration commands, one per line. End with CNTL/Z.
Indirectly
Chennai(config)# interface
Indirectly Connected Networks on
serial 1 Networks
Connected on
CHENNAI
Chennai(config-if)# ip address
CHENNAI Router
10.0.0.2 255.0.0.0
Router
Chennai(config-if)# no shut192.168.1.0
192.168.1.0
Chennai(config-if)# encapsulation hdlc
192.168.3.0
192.168.3.0
Chennai(config-if)# interface serial 0
Chennai(config-if)# ip address 11.0.0.1 255.0.0.0
Chennai(config-if)# no shut
Chennai(config-if)# encapsulation hdlc Diagram
Naveen Patel
Chennai(config-if)# exit
Chennai(config)# no ip routing
Chennai(config)# ip routing
Chennai(config)# ip route 192.168.1.0 255.255.255.0 10.0.0.1
Chennai(config)# ip route 192.168.3.0 255.255.255.0 11.0.0.2
Chennai(config)#

Diagram
Naveen Patel
Chennai(config-if)# exit
Chennai(config)# no ip routing
Chennai(config)# ip routing
Chennai(config)# ip route 192.168.1.0 255.255.255.0 10.0.0.1
Chennai(config)# ip route 192.168.3.0 255.255.255.0 11.0.0.2
Chennai(config)# ^Z
Chennai# show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

C 10.0.0.0/8 is directly connected, Serial1


C 11.0.0.0/8 is directly connected, Serial0
S 192.168.1.0/24 [1/0] via 10.0.0.1
C 192.168.2.0/24 is directly connected, Ethernet0
S 192.168.3.0/24 [1/0] via 11.0.0.2
Chennai# Diagram
Naveen Patel
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
telnet 192.168.3.1
C:\>
Connecting .....
================================
Welcome to Banglore Router
Directly Connected
Directly Connected Networks
================================ Networks on
on
Banglore Router
User Access Verification Banglore Router
password : **** 192.168.3.0
192.168.3.0
Banglore> enable 11.0.0.0
11.0.0.0
password : ****
Banglore# configure terminal
Indirectly
Indirectly
Enter configuration Connected
Connected
commands, Networks
one perNetworks on
on
line. End with CNTL/Z.
Banglore
Banglore
Banglore(config)# interface 1Router
serial Router
192.168.1.0
Banglore(config-if)# ip address 11.0.0.2 255.0.0.0
192.168.1.0
Banglore(config-if)# no shut192.168.2.0
192.168.2.0
Banglore(config-if)# clockrate 64000
10.0.0.0
10.0.0.0
Banglore(config-if)# encapsulation hdlc
Banglore(config-if)# exit
Banglore(config)#
Diagram
Naveen Patel
Banglore(config)# no ip routing
Banglore(config)# ip routing
Banglore(config)# ip route 192.168.2.0 255.255.255.0 11.0.0.1
Banglore(config)# ip route 192.168.1.0 255.255.255.0 11.0.0.1
Banglore(config)# ip route 10.0.0.0 255.0.0.0 11.0.0.1
Banglore(config)#

Diagram
Naveen Patel
Banglore(config)# no ip routing
Banglore(config)# ip routing
Banglore(config)# ip route 192.168.2.0 255.255.255.0 11.0.0.1
Banglore(config)# ip route 192.168.1.0 255.255.255.0 11.0.0.1
Banglore(config)# ip route 10.0.0.0 255.0.0.0 11.0.0.1
Banglore(config)# ^Z
Banglore# show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

S 10.0.0.0/8 [1/0] via 11.0.0.1


C 11.0.0.0/8 is directly connected, Serial1
S 192.168.1.0/24 [1/0] via 11.0.0.1
S 192.168.2.0/24 [1/0] via 11.0.0.1
C 192.168.3.0/24 is directly connected, Ethernet0
Banglore#
Diagram
Naveen Patel
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
telnet 192.168.1.1
C:\>
Connecting .....
================================
Welcome to Hyderabad Router
================================
User Access Verification
password : ****
Hyderabad> enable
password : ****
Hyderabad# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Hyderabad(config)# interface serial 0
Hyderabad(config-if)# ip address 10.0.0.1 255.0.0.0
Hyderabad(config-if)# no shut
Hyderabad(config-if)# clockrate 64000
Hyderabad(config-if)# encapsulation hdlc
Hyderabad(config-if)# exit
Hyderabad(config)#
Diagram
Naveen Patel
Hyderabad(config)# no ip routing
Hyderabad(config)# ip routing
Hyderabad(config)# ip route 0.0.0.0 0.0.0.0 s0
Hyderabad(config)#

Configuring
ConfiguringDefault
DefaultRoute
Route
Router(config)#
Router(config)#ipiproute
route<Destination
<DestinationNetwork
NetworkID>
ID>
<Destination
<DestinationSubnet
SubnetMask>
Mask>
<Next-hop
<Next-hopIP IPaddress
address>
>
Or
Or
Router(config)#
Router(config)#ipiproute
route<Destination
<DestinationNetwork
NetworkID>
ID>
<Destination
<DestinationSubnet
SubnetMask>
Mask>
<Exit
<Exitinterface
interfacetype><interface
type><interfacenumber>
number>

Diagram
Naveen Patel
Hyderabad(config)# no ip routing
Hyderabad(config)# ip routing
Hyderabad(config)# ip route 0.0.0.0 0.0.0.0 s0
Hyderabad(config)# ^Z
Hyderabad# show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

C 10.0.0.0/8 is directly connected, Serial0


C 192.168.1.0/24 is directly connected, Ethernet0
S* 0.0.0.0/0 is directly connected, Serial0
Hyderabad#

**for
forDefault
DefaultRoute
Route

Diagram
Naveen Patel
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
telnet 192.168.3.1
C:\>
Connecting .....
================================
Welcome to Banglore Router
================================
User Access Verification
password : ****
Banglore> enable
password : ****
Banglore# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Banglore(config)# interface serial 1
Banglore(config-if)# ip address 11.0.0.2 255.0.0.0
Banglore(config-if)# no shut
Banglore(config-if)# clockrate 64000
Banglore(config-if)# encapsulation hdlc
Banglore(config-if)# exit
Banglore(config)#
Diagram
Naveen Patel
Banglore(config)# no ip routing
Banglore(config)# ip routing
Banglore(config)# ip route 0.0.0.0 0.0.0.0 s1
Banglore(config)#

Diagram
Naveen Patel
Banglore(config)# no ip routing
Banglore(config)# ip routing
Banglore(config)# ip route 0.0.0.0 0.0.0.0 s1
Banglore(config)# ^Z
Banglore# show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

C 11.0.0.0/8 is directly connected, Serial1


C 192.168.3.0/24 is directly connected, Ethernet0
S* 0.0.0.0/0 is directly connected, Serial1
Banglore#

**for
forDefault
DefaultRoute
Route

Diagram
Naveen Patel
Hyderabad(config)# no ip routing
Hyderabad(config)# ip routing
Hyderabad(config)# ip route 0.0.0.0 0.0.0.0 s0
Hyderabad(config)# ^Z
Hyderabad# show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

C 10.0.0.0/8 is directly connected, Serial0


C 192.168.1.0/24 is directly connected, Ethernet0
S* 0.0.0.0/0 is directly connected, Serial0
Hyderabad# ping 192.168.3.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Diagram
Hyderabad#
Naveen Patel
Banglore(config)# no ip routing
Banglore(config)# ip routing
Banglore(config)# ip route 0.0.0.0 0.0.0.0 s1
Banglore(config)# ^Z
Banglore# show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

C 11.0.0.0/8 is directly connected, Serial1


C 192.168.3.0/24 is directly connected, Ethernet0
S* 0.0.0.0/0 is directly connected, Serial1
Banglore# ping 192.168.1.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Diagram
Banglore#
Naveen Patel
Hyderabad# ping 192.168.3.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Hyderabad# ping 192.168.2.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Hyderabad#

Diagram
Naveen Patel
Chennai# ping 192.168.1.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Chennai# ping 192.168.3.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Chennai#

Diagram
Naveen Patel
Banglore# ping 192.168.1.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Banglore# ping 192.168.2.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Banglore#

Diagram
Naveen Patel

Вам также может понравиться