Chapter 2 Static Routing
Chapter 2 Static Routing
ITE I Chapter 6
Cisco Public
Objectives
ITE 1 Chapter 6
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
2006 Cisco Systems, Inc. All rights reserved. Cisco Public
ITE 1 Chapter 6
Cisco Public
3. Straight through used to connect: -Switch-to-Router, Switch-to-PC, Router-to-Server, Hub-toPC, Hub-to-Server 4. Cross-over used to connect: -Switch-to-Switch, PC-to-PC, Switch-to-Hub, Hub-to-Hub, Router-to-Router
ITE 1 Chapter 6
Cisco Public
Interfaces
Examining Router Interfaces
-Show IP router command used to view routing table
-Show Interfaces command used to show status of an interface -Show IP Interface brief command used to show a portion of the interface information -Show running-config command used to show configuration file in RAM
ITE 1 Chapter 6
Cisco Public
Interfaces
Configuring an Ethernet interface
-Enter interface configuration mode -Enter in the ip address and subnet mask -Enter in the no shutdown command, to enable an interfaces By default all serial and Ethernet interfaces are down.
Example: -R1(config)#interface fastethernet 0/0 -R1(config-if)#ip address 172.16.3.1 255.255.255.0 -R1(config-if)#no shutdown
ITE 1 Chapter 6
Cisco Public
Interfaces
Verifying Ethernet interface
-Show interfaces for fastEthernet 0/0 command used to show status of fast Ethernet port -Show ip interface brief -Show running-config
ITE 1 Chapter 6
Cisco Public
Interfaces
Configuring a Serial interface
-Enter interface configuration mode -Enter in the ip address and subnet mask -Enter in the no shut down command Example: -R1(config)#interface serial 0/0 -R1(config-if)#ip address 172.16.2.1 255.255.255.0 -R1(config-if)#no shutdown
ITE 1 Chapter 6
Cisco Public
Interfaces
Examining Router Interfaces
-Physically connecting a WAN Interface. -A WAN Physical Layer connection has sides: Data Circuit-terminating Equipment (DCE) This is the service provider. CSU/DSU is a DCE device. Data Terminal Equipment (DTE) Typically the router is the DTE device.
ITE 1 Chapter 6
Cisco Public
Interfaces
Configuring serial links in a lab environment
One side of a serial connection must be considered a DCE This requires placing a clocking signal use the clock rate command. Example: -R1(config)#interface serial 0/0 -R1(config-if)#clockrate 64000 Serial Interfaces require a clock signal to control the timing of the communications.
ITE 1 Chapter 6
Cisco Public
10
---------------------------------------------------------------------------------Change ip address at fastethernet R2(config)#interface fastethernet 0/0 R2(config-if)#ip address 172.16.1.1 255.255.255.0 R2(config-if)#no shutdown router will display 02:35:30: RT: add 172.16.1.0/24 via 0.0.0.0, connected metric [0/0] 02:35:30: RT: interface FastEthernet0/0 added to routing table
ITE 1 Chapter 6 2006 Cisco Systems, Inc. All rights reserved. Cisco Public
11
ITE 1 Chapter 6
Cisco Public
12
ITE 1 Chapter 6
Cisco Public
13
ITE 1 Chapter 6
Cisco Public
14
Concept of neighbors
-2 types of neighbors Layer 3 neighbors Layer 2 neighbors
ITE 1 Chapter 6
Cisco Public
15
ITE 1 Chapter 6
Cisco Public
16
Disabling CDP To disable CDP globally use the following command Router(config)#no cdp run
Note: When a Cisco device boots up, CDP starts up by default. CDP automatically discovers neighboring Cisco devices running CDP
ITE 1 Chapter 6
Cisco Public
17
Static Route
The routers can learn about remote networks in one of two ways: 1. Manually, from configured static routes 2. Automatically, from a dynamic routing protocol 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.
ITE 1 Chapter 6
Cisco Public
18
Static Routes
Purpose A manually configured route used when routing from a network to a stub network
ITE 1 Chapter 6
Cisco Public
19
Static Routes
IP route command
To configure a static route use the following command: ip route Example:
ITE 1 Chapter 6
Cisco Public
20
Static Routes
static route syntax
ip route - Static route command 172.16.1.0 - Network address of remote network 255.255.255.0 - Subnet mask of remote network 172.16.2.2 - Serial 0/0/0 interface IP address on R2, which is the "next-hop" to this network
ITE 1 Chapter 6
Cisco Public
21
Static Routes
Configuring routes to 2 or more remote networks
Use the following commands for R1 -R1(config)#ip route 192.168.1.0 255.255.255.0 172.16.2.2 -R1(config)#ip route 192.168.2.0 255.255.255.0 172.16.2.2
ITE 1 Chapter 6
Cisco Public
22
Static Routes
Modifying Static routes
Existing static routes cannot be modified. The old static route must be deleted by placing no in front of the ip route Example: -no ip route 192.168.2.0 255.255.255.0 172.16.2.2 A new static route must be rewritten in the configuration
ITE 1 Chapter 6
Cisco Public
23
Static Routes
Verifying the Static Route Configuration -Use the following commands Step 1: show running-config Step 2 : verify static route has been entered correctly Step 3 show ip route Step 4 verify route was configured in routing table Step 5 issue ping command to verify packets can reach destination and that Return path is working
ITE 1 Chapter 6
Cisco Public
24
25
Summary
Static Routes -This is a manually configured path that specifies how the router will get to a certain point using a certain path. Summary static routes -This is several static routes that have been condensed into a single static route. Default route -It is the route packets use if there is no other possible match for their destination in the routing table. Troubleshooting static routes may require some of the following commands: -Ping -Traceroute -Show IP route -Show ip interface brief -Show cdp neighbors detail
ITE 1 Chapter 6
Cisco Public
26
ITE 1 Chapter 6
Cisco Public
27