Static Routing

1,479 views

Published on

This study guide is intended to provide those pursuing the CCNA certification with a framework of what concepts need to be studied. This is not a comprehensive document containing all the secrets of the CCNP nor is it a “braindump” of questions and answers.

I sincerely hope that this document provides some assistance and clarity in your studies.

Published in: Education, Technology, Travel
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,479
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
151
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Static Routing

  1. 1. 1
  2. 2. Routing Network Diagram Head Office 10.0.0.1/8 S0 HYD E0 192.168.1.150/24 LAN - 192.168.1.0/24 Branch Office S1 10.0.0.2/8 CHE E0 192.168.2.150/24 LAN - 192.168.2.0/24 2
  3. 3. Rules of Routing • Head Office Ethernet interface should be in the same network as your Head office LAN and similarly on Branch Office side. Show Diagram • Head Office S0 and Branch Office S1 should be in same network. Show Diagram • Head Office LAN and Branch Office LAN should be in different Network. Show Diagram • All interfaces of Router should be in different network. Show Diagram 3
  4. 4. Types of Routing • Static Routing • Default Routing • Dynamic Routing 4
  5. 5. Static Routing • It is configured by Administrator manually. • Mandatory need of Destination Network ID • It is Secure & fast • Used for Small organizations with a network of 10-15 Routers. • Administrative distance for Static Route is 0 and 1. It is the “trustworthiness” of the routing information. Lesser the Administrative distance, higher the preference. 5
  6. 6. Static Routing Network Diagram 10.0.0.1/8 S0 HYD E0 192.168.1.150/24 LAN - 192.168.1.0/24 S1 10.0.0.2/8 CHE E0 192.168.2.150/24 LAN - 192.168.2.0/24 6
  7. 7. 7
  8. 8. Routing Network Diagram Head Office 10.0.0.1/8 S0 HYD E0 192.168.1.150/24 LAN - 192.168.1.0/24 Branch Office S1 10.0.0.2/8 CHE E0 192.168.2.150/24 LAN - 192.168.2.0/24 8
  9. 9. Routing Network Diagram Head Office 10.0.0.1/8 S0 HYD E0 192.168.1.150/24 LAN - 192.168.1.0/24 Branch Office S1 10.0.0.2/8 CHE E0 192.168.2.150/24 LAN - 192.168.2.0/24 9
  10. 10. Routing Network Diagram Head Office 10.0.0.1/8 S0 HYD E0 192.168.1.150/24 LAN - 192.168.1.0/24 Branch Office S1 10.0.0.2/8 CHE E0 192.168.2.150/24 LAN - 192.168.2.0/24 10
  11. 11. Routing Network Diagram Head Office 10.0.0.1/8 S0 HYD E0 192.168.1.150/24 LAN - 192.168.1.0/24 Branch Office 11.0.0.1/8 S0 S1 10.0.0.2/8 CHE E0 192.168.2.150/24 LAN - 192.168.2.0/24 11
  12. 12. Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:> telnet 192.168.1.150 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)# exit Hyderabad# Diagram 12
  13. 13. Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:> telnet 192.168.1.150 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)# exit Hyderabad# Diagram 13
  14. 14. Hyderabad# show ip route Default gateway is not set Host Gateway Last Use Total Uses Interface ICMP redirect cache is empty Hyderabad# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Hyderabad(config)# ip routing Hyderabad(config)# ^Z Hyderabad# show ip route Enabling Routing Enabling Routing Router(config)#ip routing Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP Router(config)#ip routing 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 192.168.1.0/24 is directly connected, Ethernet0 C 10.0.0.0/8 is directly connected, Serial0 Hyderabad# 14 Diagram
  15. 15. Hyderabad# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Hyderabad(config)# ip route 192.168.2.0 255.255.255.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 Configuring Static Route D - EIGRP, EX - EIGRPConfiguring Static Route OSPF inter area external, O - OSPF, IA N1 Router(config)# ip route 1, N2 - OSPF NSSA external type 2 - OSPF NSSA external type <Destination Network ID> Router(config)# ip route<Destination Network ID> E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP <Destination Subnet Mask> <Destination Subnet Mask> i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default <Next-hop IP address > <Next-hop IP U - per-user static route, o - ODR address > Or Or Gateway of last resort is not set Router(config)# ip route <Destination Network ID> Router(config)# ip route <Destination Network ID> <Destination Subnet Mask> <Destination Subnet Mask> C 192.168.1.0/24 is directly connected, Ethernet0 <Exit interface type><interface number> <Exit 10.0.0.2 S 192.168.2.0/24 [1/0] via interface type><interface number> C 10.0.0.0/8 is directly connected, Serial0 Hyderabad# 1 is nothing but 1 is nothing but S – for Static Routing S – for Static Routing Administrative Distance Administrative Distance 15 Diagram
  16. 16. Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:> telnet 192.168.2.150 Connecting ..... ================================ Welcome to Chennai Router ================================ User Access Verification password : **** Chennai> enable password : **** Chennai# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Chennai(config)# interface serial 1 Chennai(config-if)# ip address 10.0.0.2 255.0.0.0 Chennai(config-if)# no shut Chennai(config-if)# encapsulation hdlc Chennai(config-if)# exit Chennai(config)# exit Chennai# Chennai# Diagram 16
  17. 17. Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:> telnet 192.168.2.150 Connecting ..... ================================ Welcome to Chennai Router ================================ User Access Verification password : **** Chennai> enable password : **** Chennai# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Chennai(config)# interface serial 1 Chennai(config-if)# ip address 10.0.0.2 255.0.0.0 Chennai(config-if)# no shut Chennai(config-if)# encapsulation hdlc Chennai(config-if)# exit Chennai(config)# exit Chennai# Chennai# Diagram 17
  18. 18. Chennai# show ip route Default gateway is not set Host Gateway Last Use Total Uses Interface ICMP redirect cache is empty Chennai# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Chennai(config)# ip routing Chennai(config)# ^Z Chennai# show ip route Enabling Routing Enabling Routing Router(config)#ip routing Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP Router(config)#ip routing 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 192.168.2.0/24 is directly connected, Ethernet0 C 10.0.0.0/8 is directly connected, Serial1 Chennai# 18 Diagram
  19. 19. Chennai# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Chennai(config)# ip route 192.168.1.0 255.255.255.0 S1 Chennai(config)# ^Z Chennai# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP Configuring Static Route D - EIGRP, EX - EIGRPConfiguring Static Route OSPF inter area external, O - OSPF, IA N1 Router(config)# ip route 1, N2 - OSPF NSSA external type 2 - OSPF NSSA external type <Destination Network ID> Router(config)# ip route<Destination Network ID> E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP <Destination Subnet Mask> <Destination Subnet Mask> i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default <Next-hop IP address > <Next-hop IP U - per-user static route, o - ODR address > Or Or Gateway of last resort is not set Router(config)# ip route <Destination Network ID> Router(config)# ip route <Destination Network ID> <Destination Subnet Mask> <Destination Subnet Mask> C 192.168.2.0/24 is directly connected, Ethernet0 <Exit interface type><interface number> <Exit interface Serial1 S 192.168.1.0 is directly connected,type><interface number> C 10.0.0.0/8 is directly connected, Serial1 Chennai# If is directly connected If is directly connected S – for Static RoutingAdministrative Distance S – for Static RoutingAdministrative Distance is 0 is 0 19 Diagram
  20. 20. Hyderabad# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Hyderabad(config)# ip route 192.168.2.0 255.255.255.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 192.168.1.0/24 is directly connected, Ethernet0 S 192.168.2.0/24 [1/0] via 10.0.0.2 C 10.0.0.0/8 is directly connected, Serial0 Hyderabad# ping 192.168.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Hyderabad# 20 Diagram
  21. 21. Chennai# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Chennai(config)# ip route 192.168.1.0 255.255.255.0 S1 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 192.168.2.0/24 is directly connected, Ethernet0 S 192.168.1.0 is directly connected, Serial1 C 10.0.0.0/8 is directly connected, Serial1 Chennai# ping 192.168.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Chennai# 21 Diagram

×