CA Ex S2M02 Static Routing
CA Ex S2M02 Static Routing
CA Ex S2M02 Static Routing
Objectives
Define the general role a router plays in networks. Describe the directly connected networks, different router interfaces Examine directly connected networks in the routing table and use the CDP protocol Describe static routes with exit interfaces Describe summary and default route Examine how packets get forwarded when using static routes Identify how to manage and troubleshoot static routes
Labs
Topology Lab
Topology Lab
Product CISCO1841 CAB-ACE S184IPB-12406T WIC-2T CAB-SS-V35FC CAB-SS-V35MT MEM1800-32CF ROUTER-SDM-CD CON-OSPCISCO1841
Description Modular Router w/2xFE, 2 WAN slots, 32 FL/128 DR Power Cord Europe Cisco 1841 IOS IP BASE W/O CRYPTO 2-Port Serial WAN Interface Card V.35 Cable, DCE Female to Smart Serial, 10 Feet V.35 Cable, DTE Male to Smart Serial, 10 Feet 32MB Cisco 1800 Compact Flash CD for SDM software ONSITE 24X7X4 Modular Router w/2xF
Quantity 1 1 1 1 2 2 1 1 1
Cable Standards
Cable Standards
10
11
Serial Connectors
DB-60 port and Smart port: five-in-one serial port: EIA/TIA-232, EIA/TIA-449, V.35, X.21, and EIA/TIA-530 standards
H c vi n m ng Bach Khoa - Website: www.bkacad.com 12
Ethernet Connectors 2 types of connectors can be used: Straight through and Cross-over Straight through used to connect: Switch-to-Router, Switch-to-PC, Router-to-Server, Hub-to-PC, Hub-to-Server Cross-over used to connect: Switch-to-Switch, PC-to-PC, Switch-to-Hub, Hub-to-Hub, Router-to-Router
H c vi n m ng Bach Khoa - Website: www.bkacad.com 13
14
15
16
17
The IOS will return the following error message if you attempt to configure the second interface with the same IP subnet as the first interface: R1(config-if)#int fa0/1 R1(config-if)#ip address 172.16.3.2 255.255.255.0 172.16.3.0 overlaps with FastEthernet0/0 R1(config-if)#
18
19
In order to keep the unsolicited output separate from your input, enter line configuration mode for the consoled port and add the logging synchronous command.
20
21
22
RouterB(config)#inter serial 1 RouterB(config-if)#clock rate ? Speed (bits per second) 1200 2400 4800 9600 <text omitted> 2000000 4000000 <300-4000000> Choose clockrate from list above
25
The routing table consists of a list of "known" network addresses - that is, those addresses that are directly connected, configured statically, and learned dynamically.
26
Observing Routes as They are Added to the Routing Table debug ip routing command will let us see any changes that the router performs when adding or removing routes.
27
When a router only has its interfaces configured, and the routing table contains the directly connected networks but no other routes, only devices on those directly connected networks are reachable.
28
29
RTA# debug ip routing RTA(config)#inter e 0 RTA(config-if)#shutdown 00:34:38: RT: interface Ethernet0 removed from routing table 00:34:38: RT: del 192.168.2.0 via 0.0.0.0, connected metric [0/0] 00:34:38: RT: delete network route to 192.168.2.0 RTA#show ip route Codes: C - connected,.. <Other codes and gateway information omitted>
Viewing the Routing Table Process Directly connected routes will also be removed if the link goes down. Directly connected routes will only be in the routing table if, it is not administratively down, the line is up and protocol is up For serial interfaces, dont forget the clock rate command on the router with the DCE cable neither interface will be up and up until both ends are configured correctly.
H c vi n m ng Bach Khoa - Website: www.bkacad.com 30
RTA#show ip route Codes: C - connected,.. <Other codes and gateway information omitted> C 172.16.0.0/16 is directly connected, Serial0 C 192.168.2.0/24 is directly connected, Ethernet0 RTB#show ip route Codes: C - connected,.. <Other codes and gateway information omitted> C 172.16.0.0/16 is directly connected, Serial0 C 192.168.1.0/24 is directly connected, Serial1 RTC#show ip route Codes: C - connected,.. <Other codes and gateway information omitted> C 10.0.0.0/8 is directly connected, Ethernet0 C 192.168.1.0/24 is directly connected, Serial1
The Routing Tables Notice that the routers only know about their own directly connected networks. They are not sharing routing information because we have not configured any static routes or dynamic routing protocols. n m ng Bach Khoa - Website: www.bkacad.com H c vi
31
RTA#show ip route C 172.16.0.0/16 is directly connected, Serial0 C 192.168.2.0/24 is directly connected, Ethernet0 RTA#ping 172.16.0.1 !!!!! RTA#ping 172.16.0.2 !!!!! RTA#ping 192.168.1.1 ..... RTA#ping 192.168.1.2 ..... RTA#ping 10.1.0.1 .....
Routers can only reach networks known about in its own routing table.
H c vi n m ng Bach Khoa - Website: www.bkacad.com 32
RTA#show ip route C 172.16.0.0/16 is directly connected, Serial0 C 192.168.2.0/24 is directly connected, Ethernet0 RTB#show ip route Codes: C - connected,.. <Other codes and gateway information omitted> C 172.16.0.0/16 is directly connected, Serial0 C 192.168.1.0/24 is directly connected, Serial1 RTA#ping Protocol [ip]: Target IP address: 172.16.0.2 Extended commands [n]: y Source address or interface: 192.168.2.1 Sending 5, 100-byte ICMP Echos to 172.16.0.2, timeout is 2 seconds: ..... RTA#ping 172.16.0.2 source 192.168.2.1
33
Extra: Lists the possible output characters from the Ping facility
34
35
upper-layer protocols (ULPs). Cisco network devices, such as routers that support different Network layer protocols (for example, IP and Novell IPX), can learn about each other CDP provides the following information about each CDP neighbor device: Device identifiers Address list Port identifier Capabilities list Platform
37
Default Setting
Feature CDP global state CDP interface state CDP holdtime (packet holdtime in seconds) CDP timer (packets sent every x seconds)
38
The information gathered by the CDP protocol can be examined with the show cdp neighbors command.
39
40
Platform Port ID
42
CDP Commands
43
CDP Commands
44
CDP Commands
45
CDP Commands
46
47
Static routes are commonly used when routing from a network to a stub network. A stub network is a network accessed by a single route.
48
49
50
51
52
53
54
55
RTA(config)#ip route 192.168.1.0 255.255.255.0 172.16.0.2 RTA#show ip route Codes: C - connected, S - static, C 172.16.0.0/16 is directly connected, Serial0 S 192.168.1.0/24 [1/0] via 172.16.0.2 C 192.168.2.0/24 is directly connected, Ethernet0
2 1
56
RTA(config)#ip route 10.1.0.0 255.255.0.0 192.168.1.2 RTA#show ip route Codes: C - connected, S - static, C 172.16.0.0/16 is directly connected, Serial0 S 192.168.1.0/24 [1/0] via 172.16.0.2 S 10.1.0.0/16 [1/0] via 192.168.1.2 C 192.168.2.0/24 is directly connected, Ethernet0
3 2 1
57
Route1: ip route 10.1.0.0 255.255.0.0 20.1.1.1 Route2: ip route 20.1.0.0 255.255.0.0 30.1.1.1 Route3: ip route 30.1.0.0 255.255.0.0 10.1.1.1
58
59
Static routes can be configured with an exit interface, which allows the routing table to resolve the exit interface in a single search instead of two searches.
60
61
62
63
64
65
e1 s0
.1
e0 s0
.2
RTA(config)#ip route 192.168.1.0 255.255.255.0 eth1 172.16.0.2 RTA#show ip route Codes: C - connected, S - static, C 172.16.0.0/16 is directly connected, Ethernet1 S 192.168.1.0/24 [1/0] via 172.16.0.2 Ethernet1 C 192.168.2.0/24 is directly connected, Ethernet0
67
68
69
70
Host 1
172.16.1.0/24
Hub .1 E0
172.16.0.0/22
172.16.2.0/24
SanJose1 .2 S0 S1 .2
192.168.1.0/24
.1 S0 SanJose2 E0 .1 S0
.1 Baypointe .1 E0
172.16.3.0/24
Hub
192.168.2.0/24
Hub
Host 2
Host 3
Baypointe(config)# ip route 172.16.1.0 255.255.255.0 192.168.1.2 Baypointe(config)# ip route 172.16.2.0 255.255.255.0 192.168.1.2 Baypointe(config)# ip route 172.16.3.0 255.255.255.0 192.168.1.2 Summarized route: Baypointe(config)#ip route 172.16.0.0 255.255.252.0 192.168.1.2
H c vi n m ng Bach Khoa - Website: www.bkacad.com 71
72
73
172.16.0.0/16
74
75
76
77
78
79
80
81
82
Tools that can be used to isolate routing problems include: ping tests end to end connectivity traceroute used to discover all of the hops (routers) along the path between 2 points show IP route used to display routing table & ascertain forwarding process show ip interface brief - used to show status of router interfaces show cdp neighbors detail used to gather configuration information about directly connected neighbors
83
Solving: R2(config)#no ip route 172.16.3.0 255.255.255.0 serial0/0/1 R2(config)#ip route 172.16.3.0 255.255.255.0 serial 0/0/0
H c vi n m ng Bach Khoa - Website: www.bkacad.com 84
85
86
Summary
87
88