Upload
jay-mishra
View
217
Download
0
Embed Size (px)
Citation preview
8/11/2019 11 Default Static
1/27
aveen Patel
Static Routing
8/11/2019 11 Default Static
2/27
aveen Patel
Static Routing For Multiple Routers - Network Diagram
E0192.168.1.1/24
HYD
LAN - 192.168.1.0/24
E0192.168.2.1/24
CHE
LAN - 192.168.2.0/24
E0192.168.3.1/24
BAN
LAN - 192.168.3.0/24
10.0.0.1/8S0
S110.0.0.2/8
11.0.0.1/8S0
S111.0.0.2/8
HYD CHE BAN
8/11/2019 11 Default Static
3/27
aveen Patel
Administrative work is more.
Compulsory need of Destination Network IDs
Used for only Small organizations
It cannot dynamically update topology changes.
Disadvantages of Static Routing
8/11/2019 11 Default Static
4/27
aveen Patel
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
Default Routing
8/11/2019 11 Default Static
5/27
aveen Patel
Default Routing - Real Time Example
E0192.168.1.1/24
LAN - 192.168.1.0/24
E0202.54.30.150/24
IP 202.54.30.1/24
INTERNET
HYD
8/11/2019 11 Default Static
6/27
aveen Patel
Default Routing - Network Diagram
E0192.168.1.1/24
LAN - 192.168.1.0/24
E0192.168.2.1/24
LAN - 192.168.2.0/24
E0192.168.3.1/24
LAN - 192.168.3.0/24
10.0.0.1/8S0
S110.0.0.2/8
11.0.0.1/8S0
S111.0.0.2/8
HYD CHE BAN
8/11/2019 11 Default Static
7/27
aveen Patel
8/11/2019 11 Default Static
8/27
aveen Patel
exityderabad(config-if)#
Hyderabad(config)#
telnet 192.168.1.1
================================
Welcome to Hyderabad Router
================================
User Access Verification
password :
****
****
enable
configure terminal
interface serial 0
ip address 10.0.0.1 255.0.0.0
no shut
clockrate 64000
encapsulation hdlc
Hyderabad>
password :
Hyderabad#
Enter configuration commands, one per line. End with CNTL/Z.
Hyderabad(config)#
Hyderabad(config-if)#
Hyderabad(config-if)#
Hyderabad(config-if)#
Hyderabad(config-if)#
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\>
Connecting .....
Directly Connected Networks onHYDERABAD Router
192.168.1.0
10.0.0.0
Indirectly Connected Networks onHYDERABAD Router
192.168.2.0
192.168.3.0
11.0.0.0
Diagram
8/11/2019 11 Default Static
9/27
aveen Patel
Hyderabad(config)#
ip route 192.168.2.0 255.255.255.0 10.0.0.2
Hyderabad(config)#
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
no ip routingyderabad(config)#
Hyderabad(config)#
ip routing
Diagram
8/11/2019 11 Default Static
10/27
aveen Patel
show ip routeyderabad#
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#
^
Z
Hyderabad(config)#
ip route 192.168.2.0 255.255.255.0 10.0.0.2
Hyderabad(config)#
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
no ip routingyderabad(config)#
Hyderabad(config)#
ip routing
Diagram
8/11/2019 11 Default Static
11/27
aveen Patel
Chennai(config-if)#
Chennai(config-if)#
================================
Welcome to Chennai Router
================================
User Access Verification
password :
****
****
enable
configure terminal
ip address 10.0.0.2 255.0.0.0
no shut
encapsulation hdlc
interface serial 0
Chennai>
password :
Chennai#
Enter configuration commands, one per line. End with CNTL/Z.
Chennai(config)#
Chennai(config-if)#
Chennai(config-if)#
Chennai(config-if)#
Chennai(config-if)#
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\>
Connecting .....
Chennai(config-if)#
telnet 192.168.2.1
interface serial 1
ip address 11.0.0.1 255.0.0.0
no shut
encapsulation hdlc
Directly Connected Networks onCHENNAI Router
192.168.2.0
10.0.0.011.0.0.0
Indirectly Connected Networks onCHENNAI Router
192.168.1.0
192.168.3.0
Diagram
8/11/2019 11 Default Static
12/27
aveen Patel
Chennai(config)#
ip routing
Chennai(config)#
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
exithennai(config-if)#
Chennai(config)#
no ip routing
Diagram
8/11/2019 11 Default Static
13/27
aveen Patel
show ip routehennai#
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#
^
Z
Chennai(config)#
ip routing
Chennai(config)#
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
exithennai(config-if)#
Chennai(config)#
no ip routing
Diagram
8/11/2019 11 Default Static
14/27
aveen Patel
exitanglore(config-if)#
Banglore(config)#
================================
Welcome to Banglore Router
================================
User Access Verification
password :
****
****
enable
configure terminal
ip address 11.0.0.2 255.0.0.0
no shut
clockrate 64000
encapsulation hdlc
Banglore>
password :
Banglore#
Enter configuration commands, one per line. End with CNTL/Z.
Banglore(config)#
Banglore(config-if)#
Banglore(config-if)#
Banglore(config-if)#
Banglore(config-if)#
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\>
Connecting .....
telnet 192.168.3.1
interface serial 1
Directly Connected Networks onBanglore Router
192.168.3.0
11.0.0.0
Indirectly Connected Networks onBanglore Router
192.168.1.0
192.168.2.0
10.0.0.0
Diagram
8/11/2019 11 Default Static
15/27
aveen Patel
Banglore(config)#
ip route 192.168.2.0 255.255.255.0 11.0.0.1
Banglore(config)#
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
no ip routinganglore(config)#
Banglore(config)#
ip routing
Diagram
8/11/2019 11 Default Static
16/27
aveen Patel
show ip routeanglore#
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#
^
Z
Banglore(config)#
ip route 192.168.2.0 255.255.255.0 11.0.0.1
Banglore(config)#
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
no ip routinganglore(config)#
Banglore(config)#
ip routing
Diagram
8/11/2019 11 Default Static
17/27
aveen Patel
exityderabad(config-if)#
Hyderabad(config)#
telnet 192.168.1.1
================================
Welcome to Hyderabad Router
================================
User Access Verification
password :
****
****
enable
configure terminal
interface serial 0
ip address 10.0.0.1 255.0.0.0
no shut
clockrate 64000
encapsulation hdlc
Hyderabad>
password :
Hyderabad#
Enter configuration commands, one per line. End with CNTL/Z.
Hyderabad(config)#
Hyderabad(config-if)#
Hyderabad(config-if)#
Hyderabad(config-if)#
Hyderabad(config-if)#
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\>
Connecting .....
Diagram
8/11/2019 11 Default Static
18/27
aveen Patel
Hyderabad(config)#
ip route 0.0.0.0 0.0.0.0 s0
Hyderabad(config)#
no ip routingyderabad(config)#
Hyderabad(config)#
ip routing
Configuring Default Route
Router(config)# ip route
Or
Router(config)# ip route
Diagram
8/11/2019 11 Default Static
19/27
aveen Patel
show ip routeyderabad#
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#
^
Z
Hyderabad(config)#
ip route 0.0.0.0 0.0.0.0 s0
Hyderabad(config)#
no ip routingyderabad(config)#
Hyderabad(config)#
ip routing
* for Default Route
Diagram
8/11/2019 11 Default Static
20/27
aveen Patel
exitanglore(config-if)#
Banglore(config)#
================================
Welcome to Banglore Router
================================
User Access Verification
password :
****
****
enable
configure terminal
ip address 11.0.0.2 255.0.0.0
no shut
clockrate 64000
encapsulation hdlc
Banglore>
password :
Banglore#
Enter configuration commands, one per line. End with CNTL/Z.
Banglore(config)#
Banglore(config-if)#
Banglore(config-if)#
Banglore(config-if)#
Banglore(config-if)#
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\>
Connecting .....
telnet 192.168.3.1
interface serial 1
Diagram
8/11/2019 11 Default Static
21/27
aveen Patel
Banglore(config)#
ip route 0.0.0.0 0.0.0.0 s1
Banglore(config)#
no ip routinganglore(config)#
Banglore(config)#
ip routing
Diagram
8/11/2019 11 Default Static
22/27
aveen Patel
Banglore(config)#
ip route 0.0.0.0 0.0.0.0 s1
Banglore(config)#
no ip routinganglore(config)#
Banglore(config)#
ip routing
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#
^
Z
Banglore#
* for Default Route
Diagram
8/11/2019 11 Default Static
23/27
aveen Patel
show ip routeyderabad#
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#
^
Z
Hyderabad(config)#
ip route 0.0.0.0 0.0.0.0 s0
Hyderabad(config)#
no ip routingyderabad(config)#
Hyderabad(config)#
ip routing
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#
Diagram
8/11/2019 11 Default Static
24/27
aveen Patel
Banglore(config)#
ip route 0.0.0.0 0.0.0.0 s1
Banglore(config)#
no ip routinganglore(config)#
Banglore(config)#
ip routing
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#
^
Z
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#
Diagram
8/11/2019 11 Default Static
25/27
aveen Patel
ping 192.168.3.10yderabad#
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
8/11/2019 11 Default Static
26/27
aveen Patel
ping 192.168.1.10hennai#
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
8/11/2019 11 Default Static
27/27
ping 192.168.1.10anglore#
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