Computer Network Lab: Presented By: Md. Fahad Bin Zamal
Computer Network Lab: Presented By: Md. Fahad Bin Zamal
Computer Network Lab: Presented By: Md. Fahad Bin Zamal
Read-Only Memory
Non-Volatile RAM
Types of interfaces:
Ethernet
Fast Ethernet
Serial
ISDN BRI
Loopback
Console
Aux
Router Power-On/Bootup Sequence:
1. Perform power-on self test (POST).
2. Load and run bootstrap code.
3. Find the Cisco IOS software.
4. Load the Cisco IOS software.
5. Find the configuration.
6. Load the configuration.
7. Run the configured Cisco IOS software.
External Components of a 2600 Router
Internal Components of a 2600 Router
Computer/Terminal Console Connection
HyperTerminal Session Properties
Establishing a HyperTerminal Session:
Take the following steps to connect a terminal to the console port on the router:
First, connect the terminal using the RJ-45 to RJ-45 rollover cable and an RJ-45 to DB-9 or RJ-45 to DB-25
adapter.
Then, configure the terminal or PC terminal emulation software for 9600 baud, 8 data bits, no parity, 1 stop bit,
and no flow control.
Router Configuration
Router User Interface Modes
The Cisco command-line interface (CLI) uses a hierarchical structure. This structure requires entry into different
modes to accomplish particular tasks.
Each configuration mode is indicated with a distinctive prompt and allows only commands that are appropriate
for that mode.
As a security feature the Cisco IOS software separates sessions into two access levels, user EXEC mode and
privileged EXEC mode. The privileged EXEC mode is also known as enable mode.
Overview of Router Modes
Router Modes
CLI Command Modes
All command-line interface (CLI) configuration changes to a Cisco router are made from the global configuration
mode. Other more specific modes are entered depending upon the configuration change that is required.
Global configuration mode commands are used in a router to apply configuration statements that affect the
system as a whole.
The following command moves the router into global configuration mode
When specific configuration modes are entered, the router prompt changes to indicate the current configuration
mode.
Typing exit from one of these specific configuration modes will return the router to global configuration mode.
Pressing Ctrl-Z returns the router to all the way back privileged EXEC mode.
Router Command Line Interface:
LAB – Interface Configuration
20.0.0.1 30.0.0.2
20.0.0.2 30.0.0.1
S0
10.0.0.1 S0 S0 S1
E0 E0 40.0.0.1
10.0.0.2
A B 40.0.0.2
Configuring Interfaces
An interface needs an IP Address and a Subnet Mask to be configured.
All interfaces are “shutdown” by default.
The DCE end of a serial interface needs a clock rate.
R1#config t
R1(config)#int e0
R1(config)#Description Connoted to Host
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0
R1(config-if)#ip address 20.0.0.1 255.255.255.0
R1(config-if)# bandwidth 64
R1(config-if)#clock rate 64000 (required for serial DCE only)
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#exit
R1#
On new routers, Serial 1 would be just Serial 0/1 and e0 would be f0/0.
s = serial e = Ethernet f = fast Ethernet
Viewing Configuration:
1/20/2019
Self Assessment…
Form the following diagram configures IP address for Corp, Router1 (R1), Router2 (R2), and
Router3 (R3). Remember that, by default, these routers know only about networks that are
directly connected to them.
The Corp router is a 2811 with four serial interfaces and a switch module, and routers 1 and 2
are 1841 routers. Router3 (R3) is another 2811 with a wireless interface card. The first step for
this project is to correctly configure each router with an IP address on each interface. Table 1
shows the IP address scheme you are going to use to configure the network. Each network in
the table has a 24-bit subnet mask (255.255.255.0).
Self Assessment…
Self Assessment:
Router Network Address Interface Address
CORP
Corp 10.1.1.0 Vlan1 (Switch Card) 10.1.1.#
Corp 10.1.2.0 S0/0/0 10.1.2.#
Corp 10.1.3.0 S0/0/1 10.1.3.#
Corp 10.1.4.0 S0/1/0 10.1.4.#
Corp 10.1.5.0 f0/0 10.1.5.#
R1
R1 10.1.2.0 S0/0/0 10.1.2.#(+1)
R1 10.1.3.0 S0/0/1 10.1.3.# (+1)
R1 192.168.10.0 f0/0 192.168.10.#
R1 192.168.20.0 f0/1 192.168.20.#
R2
R2 10.1.4.0 S0/0/0 10.1.4.#
R2 192.168.30.0 f0/0 192.168.30.#
R2 192.168.40.0 f0/1 192.168.40.#
R3
R3 10.1.5.0 f0/0 10.1.5.#
R3 172.16.10.0 Dot 1 Radio0/0/0 172.16.10.#
32
Routing
Routing:
The process of transferring data from one local area network to another
Layer 3 devices
Routed protocol Enables to forward packet from one router to another. Ex: IP,
IPX
Routing protocol sends and receives routing information packets to and from
other routers. Ex: RIP, OSPF , IGRP
Routing protocols gather and share the routing information used to maintain
and update routing tables.
That routing information is in turn used to route a routed protocol to its final
destination
Routing:
From To
X Y
House #21, Road # 10 House #45, Road# 15
Chandigarh Mohali
What is Routing?
10.120.2.0 172.16.1.0
Because of the extra administrative requirements, static routing does not have
the scalability of dynamic routing.
Static Routes
Benefits
No overhead on the router CPU
No bandwidth usage between routers
Adds security
Disadvantage
Administrator must really understand the inter-network
If a network is added to the inter-network, the administrator has to add a route to it on
all routers
Not feasible in large networks
LAB : Routing Implementation
20.0.0.1 30.0.0.2
20.0.0.2 30.0.0.1
S0
10.0.0.1 S0 S0 S1
E0 E0 40.0.0.1
10.0.0.2
A B 40.0.0.2
20.0.0.1 30.0.0.2
20.0.0.2 30.0.0.1
S0
10.0.0.1 S0 S0 S1
E0 E0 40.0.0.1
R2# config t
R2(config)#ip route 10.0.0.0 255.0.0.0 20.0.0.1
R2(config)#ip route 40.0.0.0 255.0.0.0 30.0.0.2
10.0.0.2
A B 40.0.0.2
R1# config t
R3# config t
R1(config)#ip route 30.0.0.0 255.0.0.0 20.0.0.2
R3(config)#ip route 10.0.0.0 255.0.0.0 30.0.0.1
R1(config)#ip route 40.0.0.0 255.0.0.0 20.0.0.2
R3(config)#ip route 20.0.0.0 255.0.0.0 30.0.0.1
Verifying Static
Route Configuration
After static routes are configured it is important to verify that they are present in
the routing table and that routing is working as expected.
The show ip route command is used to make sure that the static route is
present in the routing table.
Default Routes
Can only use default routing on stub networks
Stub networks are those with only one exit path out of the network
The only routers that are considered to be in a stub network are R1 and
R3
S0 S1
10.0.0.1 E0 S0 S0 E0 40.0.0.1
20.0.0.2
10.0.0.2 A B 40.0.0.2
Default Routes
Stub Network
172.16.1.0
SO
Network
10.0.0.0 A BB
172.16.2.2 172.16.2.1
This route allows the stub network to reach all known networks beyond router A.
Configuring Default Routes
Default routes are used to route packets with destinations that do not match any of the other routes
in the routing table.
A default route is actually a special static route that uses this format:
20.0.0.1 30.0.0.1
30.0.0.2
S0 S1
10.0.0.1 E0 S0 S0
40.0.0.1
E0
20.0.0.2
A B 40.0.0.2
10.0.0.2
Default Route LAB Configuration
20.0.0.1 30.0.0.1
30.0.0.2
S0 S1
10.0.0.1 E0 S0 S0
40.0.0.1
E0
20.0.0.2
A B 40.0.0.2
10.0.0.2
R2# config t
R2(config)#ip route 10.0.0.0 255.0.0.0 20.0.0.1
R2(config)#ip route 40.0.0.0 255.0.0.0 30.0.0.2
Gates(config)#router rip
Gates(config-router)#network 172.16.0.0
The network numbers are based on the network class addresses, not subnet
addresses or individual host addresses.
RIP Configuration
192.168.20.1 192.168.30.1
S0
S0 S1
192.168.10.1 E0 S0
192.168.30.2 E0 192.168.40.1
192.168.20.2
R2# config t
R2(config)#router rip 192.168.40.2
A R2(config)#network 192.168.20.0 B
192.168.10.2 R2(config)#network 192.168.30.0
R1# config t
R1(config)# )#router rip
R1(config)#network 192.168.10.0
R1(config)#network 192.168.20.0
R1(config)#version 2
Exercise - RIP Version 2 Configuration
192.168.0.4/30 192.168.0.8/30
S0
S0 S1
E0 S0
E0
192.168.0.16/29 192.168.0.32/28
A B
192.168.0.5 192.168.0.9
255.255.255.252 255.255.255.252
S0
S0 S1
E0 S0 192.168.0.33
192.168.0.10 E0 255.255.255.240
192.168.0.17 192.168.0.6 255.255.255.252
255.255.255.248 255.255.255.252
192.168.0.34
A B 255.255.255.240
192.168.0.18
255.255.255.248
Exercise - RIP Version 2 Configuration
192.168.0.4/30 192.168.0.8/30
S0
S0 S1
E0 S0
E0
R2# config t
192.168.0.16/29 R2(config)#router rip 192.168.0.32/28
R2(config)#network 192.168.0.4
R2(config)#network 192.168.0.8
R2(config)#version 2
A B
1/20/2019
Self Assessment:
62
Thank You…