Sei sulla pagina 1di 26

CCNA 1: An Introduction to

Networking
Week 10, Unit 11:
Configuring Network Devices (“It’s
a Network”)
Configuring Network Devices
Learning Objectives
• Perform the steps to make a direct connection between a PC and a
router using a console cable and terminal emulation program
• Interconnect two routers using a Cisco Smart serial cable
• Apply a basic configuration to a Cisco router using the CLI
• Create and utilize a loopback interface for testing
• Differentiate between telnet and Secure Shell (SSH)
• Verify router-to-router connectivity using ping, telnet, & SSH

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 2


Routers

• Routers connect networks together via their


ports
• Each router port represents a different network
• Each router port creates a broadcast domain
• Routers connect any type of network together
• Routers have LAN & WAN interfaces
• LAN interfaces typically accept Ethernet cable
• WAN interfaces vary on connector type
– Serial cable connector
– Cable, DSL, fiber, satellite, T-Carrier

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 3


Router Serial Ports

• Router (rear view):

• Smart serial ports:


• Slot 0 has 2-ports:
– 0/0 is slot 0, port 0
– 0/1 is slot 0, port 1

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 4


Cisco Router Smart Cables

• Smart serial cables:


• Each end connects to a different router
• This router can interconnect two other routers

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 5


DTE or DCE?
• Router with DCE end sets
port speed for PPP
connection DCE DTE
– Female end is DCE
• Usually the ISP
• “C” for Communication!
– Male end is DTE
• Usually your router
• “T” for Terminal!

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 6


3-Router Topology Example
• Lab topology we will configure:
– Not usually found in ‘real world’
– Router can act as DTE & DCE simultaneously
– Loopback interfaces are virtual router interfaces

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 7


Terminal Emulator Settings

• Port in top box is PC’s


USB port acting as serial COM 2

port
• You must manually select
the USB port number
• Need these specific serial
port settings in terminal
emulation software
• Press OK to connect to
router & open command-
line window
Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 8
Configure Each Router!

• Called the
command-line
interface (CLI)
• You configure
the other routers
based on the
graphic a few
slides back!

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 9


Static Routing
• Routers do not share local routes with directly-
connected neighbors
– Local routes are directly-connected to the router
– Need dynamic routing protocol to share with other
routers (e.g. OSPF, EIGRP, etc.)
• Routers 0 & 2 not directly connected
– Neither router aware of networks attached to the
other router
• Routers need to implement static routing to route
all traffic to all of the LANs
ip route network_address subnet_mask exit_interface
Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 10
Static Routing Example
• Router0 will forward unknown traffic to Router 1:
– Command: ip route 0.0.0.0 0.0.0.0 s0/0/0
• Router2 will forward unknown traffic to Router 1:
– Command: ip route 0.0.0.0 0.0.0.0 s0/0/0
• Router1 will forward traffic more specifically:
– Command: ip route 192.168.100.0 255.255.255.252 s0/0/0
– Command: ip route 192.168.250.0 255.255.255.252 s0/0/1

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 11


SSH vs. Telnet
• All telnet communication in plain text
– Username & password sent between devices (both
ways) in plain text
– Can be sniffed and read using Wireshark!
• Secure Shell (SSH) communication encrypted
– All communication between devices encrypted
– Can be sniffed but looks like gibberish

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 12


Configure Router2 for SSH

• Add user &


password
• Configure
for SSHv2 &
not telnet
access

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 13


SSH to Router2 from Router0
• SSH command used in example:
• ssh -v 2 -l admin1 192.168.250.1
 Specify version 2: “-v 2”
 Login as admin1: “-l admin1” [begins with a lower-case “L”]
 Use Router2’s SSH password: sshcisco
 Password not visible as you type it & cursor does not
advance on screen [press Enter to send password]
 Destination IP address: 192.168.250.1
 This is Router 2’s loopback interface

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 14


Even More!

• Show the running


configuration
 Router name
 Encrypted
passwords
 IP addressing
 SSH access set
 Much more…

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 15


Show Interfaces

• Partial output from show interfaces command:

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 16


Other Useful Show Commands

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 17


Getting Around in the IOS
• When you forget command syntax
– Type part of command with question mark
– Type full command with space then question mark

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 18


Getting Around in IOS (cont’d)
• Another example using SSH:

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 19


Other Helpful IOS Stuff
• Tab – completes a command on the screen
• Ctrl + c – clears the command-line for next command
• Ctrl + z – exits the current configuration mode
• Up/down arrows – iterate through list of previously
executed commands
• End command – moves mode from current mode to
privileged exec mode (need to press Enter to continue)
• Exit command – exits current config mode to previous
mode
• Ctrl + Shift + 6 – kills a running command & returns
control to the user
Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 20
Other Helpful IOS Stuff (cont’d)
• Spacebar – opens next page of a command’s
screen output
– Enter key moves through the output one line at a time
• Right & left arrows move the cursor in the CLI
• There are many more shortcut keys & useful
commands available
– Search engine term:
cisco ios shortcut commands

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 21


Verify Connectivity Using Ping
• Ping from each router to every other router
– Remember to ping loopback interfaces too (proves
they are functioning!)
– Example below only pings from Router0:

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 22


More Security?
• Set up username & password for all users
• Configure maximum number of login attempts
per login type (console, telnet, etc.)
• Configure length of time users can remain
logged in with no login activity
• Configure AUX port to require username &
password (good practice!)
• Will learn how to configure these in later course

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 23


Ending the Connection

• Close terminal emulation program window


• Reboot the router to log in again
• From Privileged Exec mode, type reload command
and press Enter
• Alternatively, can turn router off using switch on
back
• Once router is configured, connect using SSH or
telnet
• Depends on which is configured

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 24


Configuring Network Devices
Summary – Unit 11
• Perform the steps to make a direct connection between a
PC and a router using a console cable and terminal
emulation program
• Interconnect two routers using a Cisco Smart serial cable
• Apply a basic configuration to a Cisco router using the CLI
• Create and utilize a loopback interface for testing
• Differentiate between telnet and Secure Shell, or SSH
• Verify router-to-router connectivity using ping, telnet, and
SSH

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 25


Configuring Network Devices
References – Unit 11
References
• Odem, W. Cisco CCENT/CCNA ICND1 Academic Edition. 1st ed. Indianapolis: Cisco Press; 2013.
• Odem, W. Cisco CCENT/CCNA ICND1 100-101. 1st ed. Indianapolis: Cisco Press; 2013.
• Odem, W. Cisco CCNA ICND2 200-101. 1st ed. Indianapolis: Cisco Press; 2013.
• Dean, T. Network+ Guide to Networks. 6th ed. Boston. Course Technology; 2012.

Version 1.0/Spring 2013 CCNA 1 – An Introduction to Networking 26

Potrebbero piacerti anche