Topic 6 Router Fundamentals
Topic 6 Router Fundamentals
EGE203 – Topic 6
Learning Outcomes 2
1 2 3
Describe role of router in Manage the router Implement static and default
WAN, purpose of its configurations, implement routing and able to
components and bootup backup and recovery understand routing and
sequence validate its configuration
Router Fundamentals 3
Application
Presentation
Session
Network
Data Link
Physical
Routers are Computers
4
Cisco CRS-3
Router Hardware
7
HomeRouter#show running-config
Building configuration…
Current configuration : 984 bytes
version 12.2
hostname HomeRouter
!
interface FastEthernet0/1
Major hardware components include ip address 1.2.3.4 255.0.0.0
!
RAM end Sample router config
Temporary stores router (running) config
RAM content is lost during power down /restart
• ROM
– Store bootstrap program which tells router how to boot-up (where to load IOS &
config file)
– Contains scaled-down IOS to boot from when cannot find any IOS
Interfaces may include Ethernet / Fast Ethernet Interfaces, Serial Interfaces and Gigabit Ethernet Interfaces
External Connections
9
(WAN Connections)
Ethernet frames are converted to HDLC/PPP frames for long distance transmission over WAN
For info only, Ethernet WAN and MPLS over Ethernet is getting popular due to its lower costs.
For exam and test, student just need to focus on Serial WAN in accordance to CCNA syllabus.
Computer -> Router (via Console)
11
• Routers do not have monitors, can “use” nearby PC’s monitor to configure router
• Need to use HyperTerminal to link up a PC’s monitor to a nearby (<100m) router
• Settings: Select COM port, 9600bps, 8 data bits, No parity, 1 stop bit, No flow control
• Use a rollover cable to connect the router to the PC
• Connect one end to router’s console port, other end to RJ-45 to DB-9 adapter
• Attach DB-9 adapter to a PC’s COM port
Router Start-up Sequence
12
IOS
What happens when Router Boots
13
IOS
Go to ROM monitor mode
IOS loaded? No
to fix problem
Yes
Bootup Done
Router Software
14
Router enters Setup Mode when it cannot find config file from
NVRAM/TFTP Server during start-up
Router will ask a few basic questions to help config router e.g. router
name, IP address of the interfaces etc… type “no” to skip
ROM Monitor Mode
16
Modes Description
User EXEC mode Show limited router config.
Router > • Type enable to move to privileged mode
Router> enable
• show interfaces
– displays configurable parameters and real-time statistics for all router
interfaces
Router Commands
22
• DNS lookup
– May take long time when enabled
– To disable DNS lookup, use no ip domain-lookup command
Configure Ethernet Interfaces
24
Application
Presentation
Session
Network
Data Link
Physical
Backup Configuration Files
27
#1: Backup the current config file locally on the router (NVRAM)
Issue the “copy run start” command
• Ref: https://networklessons.com/cisco/ccna-routing-switching-icnd1-100-105/configuration-register-cisco-ios
Configuration Register Values
31
Default:
Boot IOS from Flash
Configuration Register Values
32
• Method #1: Use tftpdnld to download IOS image from a TFTP server for
disaster recovery (this will erase ALL existing data in flash)
• Need to configure router with basic settings first
rommon 1 > tftpdnld
IP_ADDRESS: 10.0.0.1
IP_SUBNET_MASK: 255.255.0.0
DEFAULT_GATEWAY: 1.3.0.1
TFTP_SERVER: 223.255.254.254
TFTP_FILE: c1700-bnr2sy-mz.070298
Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash will be lost!
Do you wish to continue? y/n: [n]: y
The router will begin to download the new file.
Variable Command
IP address of the router IP_ADDRESS= ip_address
Subnet mask of the router IP_SUBNET_MASK= ip_address
IP address of router’s default gateway DEFAULT_GATEWAY= ip_address
IP address of TFTP server to download IOS TFTP_SERVER= ip_address
Filename to be downloaded to the router TFTP_FILE= filename
ROM Monitor Mode – Disaster Recovery
36
Revision
Assignment #1
38
Router A S0 IP 172.17.5.2
Any Class C IP e.g. 200.1.1.1
[This is Class B]
Router B S0 IP 172.18.5.2
Any Class C IP e.g. 200.1.1.2
[This is Class B and furthermore
(same network as above)
not same network]
Common Mistakes – Choice of Cable
40
PC, Computer, Router uses MDI Interface
• Use Straight-Through UTP to connect MDI port (e.g. PC, Router) to MDI-X port (e,g, Switch, Hub)
• Use Crossover UTP when connect MDI to MDI port (e.g. PC to PC), and MDIX to MDIX port (e.g. Switch to Hub)
• Use Serial WAN interfaces for long distance transmission over WAN [denote by acronym S interfaces]
// Other WAN interfaces not part of the course syllabus
Common Mistakes – Valid IP within Class A, B, C
41
DHCP is an application layer protocol (not Layer 2) to auto issue IP address, subnet mask, default
gateway, DNS setting
DNS – computer need IP address to communicate – hence visit to websites, first thing is to find out its
IP address given website name (query DNS service)
TCP – reliable connection oriented service using 3 way handshake. UDP – unreliable connection-less
service and no handshaking, no segmentation, no flow control, minimal error control
Network B
(Twitter)
Network A 1
(NYP) 6 2 Network C
3
4 (Google)
5
Network D
(Facebook)
Routers Recap
45
A
R2 R4
B SW
R6
X
R1
R3 R5
Default Gateway Router
46
E0 E1
200.1.2.1 199.4.5.1
Switch Switch
` `
`
S0
S1
R2
S0
S1
E0 E0
S0
S1
R1 R3
LAN A
Router Interfaces/Ports
48
Serial Ports
For this course, student just need to focus on Serial WAN. We will use Serial ports for WAN link in sync. with CCNA syllabus.
Routing Metrics
49
Load
Think of amount of traffic; more load will slow down traffic
Delay
How long router take to process packet; shorter time is more efficient
Reliability
Think of link availability; always up is reliable
Cost
How much to pay to use the link? Think of ERP.
Path Selection
50
R2
5Mbps
10Mbps
1Mbps
R1 R5
1Mbps
1Mbps
1Mbps
3Mbps
PC1 PC2
WebSvr1
10Mbps
R3
R4
Static
Dynamic
Dynamic Routing
52
• Conserve bandwidth
SEG Router
S0
5.5.5.1/8
3 LANs + 3 WANs
LAN1 : 20.0.0.0/8
= 6 networks
S0
SBM Router
5.5.5.2/8
LAN2 : 30.0.0.0/8 S0 S1
6.6.6.1/8 6.6.6.2/8 ISP Router
S2
7.7.7.2/8
SIT Router
LAN3 : 40.0.0.0/8 S0
7.7.7.1/8
• No need for SEG, SBM & SIT Routers to know ALL networks è only need to know who to ask for help
– Which router is in the best position to help? è ISP Router
– So configure SEG, SBM & SIT Router with ISP as the default router
• IMPT: Default router MUST know ALL networks, cannot ask SEG/SBM/SIT Routers (why?)
SEG Router
S0
5.5.5.1/8 3 LANs + 3 WANs
LAN1 : 20.0.0.0/8
= 6 networks
S0
SBM Router
5.5.5.2/8
LAN2 : 30.0.0.0/8 S0 S1
6.6.6.1/8 6.6.6.2/8 ISP Router
S2
7.7.7.2/8
SIT Router
LAN3 : 40.0.0.0/8 S0
7.7.7.1/8
Next Hop Router – do take note
59
• Question:
– Think of routers as MRT Stations.
– You are at YCK MRT.
– Which MRT station is your next hop if you want to
go to Bishan Junction 8?
R4
(default router)
S0
3.1.1.2/8
S1
3.1.1.1/8
S0 S1 S2
1.1.1.1/8 2.1.1.1/8 4.1.1.1/8
S0 S0 S0
1.1.1.2/8 2.1.1.2/8 4.1.1.2/8
R1 R2 R3 R5
• Question:
– R4 is the default router in the network diagram
– What is the Next Hop IP for R1? Ans: 1.1.1.2
Ans: 2.1.1.2
– How about Next Hop IP for R2?
– What about R5? Ans: 4.1.1.1
Class Range Subnet Mask Slash Notation
A 1 - 126 255.0.0.0 /8 Route Example
B 128 - 191 255.255.0.0 /16 61
C 192 - 223 255.255.255.0 /24
Stomp
Class Range Subnet Mask Slash Notation
A 1 - 126 255.0.0.0 /8
B 128 - 191 255.255.0.0 /16 62
C 192 - 223 255.255.255.0 /24
Static/Default Routes
No. of LANs No. of WANs
3 2
Hint #1:
PC1 ping Server1 will fail
ip route <dest. n/w> <subnet mask> <next hop ip>
Hint #2:
R1 (config)#ip route 10.2.1.0 255.255.255.0
10.0.0.2
Hint #1:
PC1 ping PC3 will fail
ip route <dest. n/w> <subnet mask> <next hop ip>
Hint #2:
R1 (config)#ip route 10.1.2.0 255.255.255.0
10.0.0.2
Hint #3:
R2 (config)#ip route 10.1.2.0 255.255.255.0
Answer: 10.1.1.2
R3 (config) #ip route 10.0.1.0 255.255.255.0 10.1.1.1
It still doesn’t work as R3 do not yet know
presence of 10.0.1.0 network
Default Routes [Refer Tutorial Q6]
72