Professional Documents
Culture Documents
Chapter 6 - Routers and Basic Configuration
Chapter 6 - Routers and Basic Configuration
WAN Routers
• Large businesses, organizations, and
enterprises.
7200 Series Router
• Includes the Cisco Aggregation Service
Router (ASR) 1000, 7200 Series Router, and
the Cisco Catalyst 6500 Series Switches.
4
How Fast is 322 Tb/s?
5
Router Components
• Regardless of their function, size or complexity, all router
models are essentially computers and require:
– Operating systems (OS)
– Central processing units (CPU)
– Random-access memory (RAM)
– Read-only memory (ROM)
• Bootup instructions
ROM Non-Volatile • Basic diagnostic software
(Read-Only Memory)
• Limited IOS
7
Router Front
9
Router Backplane
• The backplane of a router includes:
Double-wide eHWIC slots eHWIC 0 AUX LAN
port interfaces
Console
RJ45 USB
Ports
Two 4 GB flash card slots Console
USB Type B
10
Connecting to a Router
• Cisco router ports can be grouped into two
categories:
– Management ports – Includes console and auxiliary
ports used to configure,
Double-wide eHWIC slots manage, and
eHWIC 0
troubleshoot
AUX
port
LAN
interfaces
the router.
– Inband Router interfaces – Includes LAN and WAN
interfaces configured with IP addressing to carry user
traffic.
Console
RJ45
Console
USB Type B
11
Console and Ethernet Connections
12
Console Port
13
Auxiliary Ports
14
Router Interfaces
• A router interface is a physical connector that enables a
router to send or receive packets
– Each interface connects to a separate network
– Consist of socket or jack found on the outside of a router
Serial interfaces
LAN interfaces
16
Router Bootup
Cisco IOS
19
Router Bootup Process
1. Both POST and the
Bootstrap program are
located in ROM.
• Note:
– Setup mode is not used in this course to configure the router.
– When prompted to enter setup mode, always answer no.
– If you answer yes and enter setup mode, press Ctrl+C at any time to terminate the setup
process. 20
Show Versions Output
Version of the Cisco IOS software in RAM and that is being
used by the router.
Router# show version
Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.2(4)M1, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Thu 26-Jul-12 19:34 by prod_rel_team
Displays the system bootstrap software version stored in
ROM: System Bootstrap, Version 15.0(1r)M15, RELEASE SOFTWARE (fc1) ROM that was initially used to boot up the router.
Router uptime is 10 hours, 9 minutes Displays the complete filename of the IOS image and
System returned to ROM by power-on where the it was loaded from.
System image file is "flash0:c1900-universalk9-mz.SPA.152-4.M1.bin"
Last reload type: Normal Reload
Last reload reason: power-on Identifies the type of router and the amount of DRAM.
Some routers, like the Cisco 1941 ISR, use a fraction of
<Output omitted> DRAM as packet memory for buffering packets. Add both
numbers to determine the total amount of DRAM.
Cisco CISCO1941/K9 (revision 1.0) with 446464K/77824K bytes of memory.
Processor board ID FTX1636848Z
2 Gigabit Ethernet interfaces
Displays the physical interfaces on the router. In this
2 Serial(sync/async) interfaces example, the Cisco 1941 ISR has two Gigabit Ethernet
1 terminal line interfaces and two low-speed serial interfaces.
DRAM configuration is 64 bits wide with parity disabled.
255K bytes of non-volatile configuration memory. Displays the amount of NVRAM and Flash.
250880K bytes of ATA System CompactFlash 0 (Read/Write)
<Output omitted>
Technology Package License Information for Module:'c1900' Displays the licensing information of the router. The IOS
can be upgraded to support additional features.
-----------------------------------------------------------------
Technology Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------ Displays the software configuration register in
ipbase ipbasek9 Permanent ipbasek9 hexadecimal. A second value in parentheses denotes the
security None None None value that is used during the next reload.
data None None None For example, 0x2102 indicates that the router attempts
Configuration register is 0x2142 (will be 0x2102 at next reload)
to load a Cisco IOS software image from flash memory
and load the startup configuration file from NVRAM
Router#
21
Routing
Routing
C:\Users\Admin>
25
Host Can Send a Packet To a Local Host
• Hosts on the same network, sending host and receiving host share
the same network address.
.10
PC1 192.168.10.0/24
.1
.11 G0/0
PC2
R1
.10 G0/1
PC3 .1
.11 192.168.11.0/24
PC4
26
Host Can Send a Packet To a Remote Host
When a host on a remote network, the hosts do not share the same
network address.
A default gateway IP address is required.
.10
PC1 192.168.10.0/24
.1
.11 G0/0
PC2
R1
.10 G0/1
PC3 .1
.11 192.168.11.0/24
PC4
27
Host Can Send a Packet To a Remote Host
• The default gateway is the device (i.e, router) that routes
traffic from the local network to remote networks.
– A host sending a packet to a remote host does not maintain
routing information beyond the local network.
– The default gateway maintains a routing table containing
directly connected and remote network route information.
.10
PC1 192.168.10.0/24
.1
.11 G0/0
PC2
R1
.10 G0/1
PC3 .1
.11 192.168.11.0/24
PC4
28
Default Gateway
29
Configuring Default Gateway on Hosts
• The default gateway address can be configured on the host
manually or learned dynamically.
30
Default Gateway – ipconfig
C:\Users\Admin>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : cisco.com
Link-local IPv6 Address . . . . . : fe80::b572:c6c:f983:cadc%11
IPv4 Address. . . . . . . . . . . : 192.168.11.99
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.11.1
C:\Users\Admin>
31
C:\Users\Admin> ipconfig /all
Windows IP Configuration
<Output omitted>
<Output omitted>
35
0.0.0.0
• This is the local default route.
• Forwards all non-matching packets.
• All non-matching destination routes are sent to 192.168.10.1
netstat IPv4 Information (R1) exiting from the interface with IP address 192.168.10.10.
127.0.0.0 – 127.255.255.255
•These loopback addresses all relate to the direct connection and
provide services to the local host.
192.168.10.0 - 192.168.10.255
• These addresses all relate to the host and local network.
• 192.168.10.0 - The local network route address.
C:\Users\PC1> netstat -r • 192.168.10.10 - The address of the local host.
• 192.168.10.255 - The network broadcast address.
<Output omitted>
224.0.0.0
IPv4 Route Table • Special multicast addresses reserved for use through either
the loopback interface or the host IP address.
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.10.1 192.168.10.10 25
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.10.0 255.255.255.0 On-link 192.168.10.10 281
192.168.10.10 255.255.255.255 On-link 192.168.10.10 281
192.168.10.255 255.255.255.255 On-link 192.168.10.10 281
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.10.10 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.10.10 281
===========================================================================
255.255.255.255
<Output omitted> • Limited broadcast IP address values for use through either the
loopback interface or the host IP address.
36
PC1 wants to ping PC2.
Which route will be chosen?
C:\Users\PC1> netstat -r
<Output omitted>
<Output omitted>
37
PC1 wants to ping
10.10.10.10.
Which route will be chosen?
C:\Users\PC1> netstat -r
<Output omitted>
<Output omitted>
38
netstat IPv6 Information
C:\Users\PC1> netstat -r
<Output omitted>
IPv6 Route Table
=====================================================
Active Routes:
If Metric Network Destination Gateway Lists the address of the physical
16 58 ::/0 On-link interface used to send the packet to
1 306 ::1/128 On-link the gateway.
16 58 2001::/32 On-link
16 306 2001:0:9d38:953c:2c30:3071:e718:a926/128 Lists the cost of each route and is
On-link used to determine the best route to a
15 281 fe80::/64 On-link destination.
16 306 fe80::/64 On-link
Lists reachable networks
16 306 fe80::2c30:3071:e718:a926/128
On-link Lists the address to get to a remote
15 281 fe80::b1ee:c4ae:a117:271f/128 network. A directly reachable destination
On-link displays “On-link”.
1 306 ff00::/8 On-link
16 306 ff00::/8 On-link
15 281 ff00::/8 On-link
=====================================================
<Output omitted>
39
netstat IPv6 Information
::/0
• This is the IPv6 equivalent of the local
default route.
C:\Users\PC1> netstat -r
::1/128
<Output omitted>
• This is equivalent to the IPv4 loopback
IPv6 Route Table address and provides services to the local
===================================================== host.
Active Routes:
If Metric Network Destination Gateway 2001:: Global Unicast Addresses
16 58 ::/0 On-link •2001::/32 - This is the global unicast network
1 306 ::1/128 On-link prefix.
16 58 2001::/32 On-link ••2001:0:9d38:953c:2c30:3071:e718:a926/128 -
16 306 2001:0:9d38:953c:2c30:3071:e718:a926/128 This is the global unicast IPv6 address of the local
On-link computer.
15 281 fe80::/64 On-link
fe80:: Link Local Addresses
16 306 fe80::/64 On-link • fe80::/64 - This is the local link network
16 306 fe80::2c30:3071:e718:a926/128 route address and represents all computers
On-link on the local link IPv6 network.
15 281 fe80::b1ee:c4ae:a117:271f/128 • fe80::2c30:3071:e718:a926/128 - This is
On-link the link local IPv6 address of the local
1 306 ff00::/8 On-link computer.
16 306 ff00::/8 On-link
15 281 ff00::/8 On-link ff00::/8 Multicast Addresses
===================================================== • These are special reserved multicast class
D addresses equivalent to the IPv4
<Output omitted>
224.x.x.x addresses.
40
S1# show running-config
Building configuration...
!
<output omitted>
service password-encryption
.10
PC1 192.168.10.0/24 192.168.11.0/24
.1 .1
G0/0 G0/1 S2
S1 R1
.11 .5
PC2
.10
PC1 192.168.10.0/24 192.168.11.0/24
.1 .1
S1 G0/0 G0/1 S2
.11 R1
PC2 .5
42
Router Routing Tables
Routing Table Routes
44
Routing Table Routes
Route source – Identifies how the network was learned by the router.
Destina Destination n– Identifies the destination network and how it was learned.
Outgoing interface – Identifies the exit interface to use to forward a packet toward the final
destination.
Directly Connected Interfaces
192.168.10.0/24
.10 G0/0
PC1 209.165.200.224 /30
.1
.225
R1 S0/0/0
.10 .1
PC2 G0/1
192.168.11.0/24
• Two routing table entries are automatically created when an active router interface is
configured with an IP address and subnet mask.
– C:
• Identifies a directly connected network.
• Directly connected networks are automatically created when an interface is
configured with an IP address and activated.
– L:
• Identifies that this is a local route, the IP address of the interface.
• Local routes are automatically created when an interface is configured with an IP
address and activated.
47
Directly Connected Routing Table Entries
192.168.10.0/24 64.100.0.1 10.1.1.0/24
.10 G0/0 .10
PC1 209.165.200.224 /30
.1 .1
.225 .226
R1 S0/0/0 R2
.10 .1 .1 .10
PC2 G0/1
192.168.11.0/24 10.1.2.0/24
A B C
C 192.168.10.0/24 is directly connected, GigabitEthernet0/0
L 192.168.10.1/32 is directly connected, GigabitEthernet0/0
48
Remote Network Routing Table Entries
192.168.10.0/24 64.100.0.1 10.1.1.0/24
.10 G0/0 .10
PC1 209.165.200.224 /30
.1 .1
.225 .226
R1 S0/0/0 R2
.10 .1 .1 .10
PC2 G0/1
192.168.11.0/24 10.1.2.0/24
49
IPv4 Router Routing Table
192.168.10.0/24 10.1.1.0/24
.10 G0/0 .10
PC1 209.165.200.224 /30
.1 .1
.225 .226
R1 S0/0/0 R2
.10 .1 .1 .10
PC2 G0/1
192.168.11.0/24 10.1.2.0/24
R1#show ip route
Codes: L - local, C - connected, S - static, 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
192.168.11.0/24 10.1.2.0/24
R1#show ip route
Codes: L - local, C - connected, S - static, 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
192.168.11.0/24 10.1.2.0/24
R1#show ip route
Codes: L - local, C - connected, S - static, 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
192.168.11.0/24 10.1.2.0/24
R1#show ip route
Codes: L - local, C - connected, S - static, 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
192.168.11.0/24 10.1.2.0/24
R1#show ip route
Codes: L - local, C - connected, S - static, 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
192.168.11.0/24 10.1.2.0/24
R1#show ip route
Codes: L - local, C - connected, S - static, 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
192.168.11.0/24 10.1.2.0/24
R1#show ip route
Codes: L - local, C - connected, S - static, 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
192.168.10.0/24 10.1.1.0/24
.10 G0/0 .10
PC1 209.165.200.224 /30
.1 .1
.225 .226
R1 S0/0/0 R2
.1 .1
.10 .10
PC2 G0/1
192.168.11.0/24 10.1.2.0/24
59
Router Interfaces
60
Configuring Router Interfaces
61
Configure LAN Interfaces
192.168.10.0/24 10.1.1.0/24
.10 G0/0 .10
PC1 209.165.200.224 /30
.1 .1
.225 .226
R1 S0/0/0 R2
.1 .1
.10 .10
PC2 G0/1
192.168.11.0/24 10.1.2.0/24
R1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#
R1(config)# interface gigabitethernet 0/0
(Note : Our routers use FastEthernet 0/0)
R1(config-if)# description Link to LAN-10
R1(config-if)# ip address 192.168.10.1 255.255.255.0
R1(config-if)# no shutdown
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to
up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
GigabitEthernet0/0, changed state to up
R1(config-if)# exit
62
R1(config)#
Configure LAN Interfaces
192.168.10.0/24 10.1.1.0/24
.10 G0/0 .10
PC1 209.165.200.224 /30
.1 .1
.225 .226
R1 S0/0/0 R2
.1 .1
.10 .10
PC2 G0/1
192.168.11.0/24 10.1.2.0/24
192.168.11.0/24 10.1.2.0/24
64
Verify Basic Config
192.168.10.0/24 10.1.1.0/24
.10 G0/0 .10
PC1 209.165.200.224 /30
.1 .1
.225 .226
R1 S0/0/0 R2
.1 .1
.10 .10
PC2 G0/1
192.168.11.0/24 10.1.2.0/24
192.168.11.0/24 10.1.2.0/24
<Output omitted>
Gateway of last resort is not set
67
A Day in the Life of a Packet
68
A Day in the Life of a Packet
69
A Day in the Life of a Packet
70
A Day in the Life of a Packet
71
A Day in the Life of a Packet
72
A Day in the Life of a Packet
73
A Day in the Life of a Packet
74
A Day in the Life of a Packet
75
A Day in the Life of a Packet
76
A Day in the Life of a Packet
77
A Day in the Life of a Packet
78
A Day in the Life of a Packet
79
A Day in the Life of a Packet
80
A Day in the Life of a Packet
81
A Day in the Life of a Packet
82
A Day in the Life of a Packet
83
Testing the Network
IP
ICMP Time
Exceeded
TTL 2 TTL 1
TTL 2 – 1 =1 TTL 1 – 1 =0
ICMP Time
Exceeded
ICMP Time
Exceeded
Traceroute Example
C:\Users\Bob> tracert www.eurocom.fr
Trace complete.
C:\Users\Bob>
Chapter 6
END