260 likes | 410 Views
Department of Information Technology. ITEC588 – Network Device Configuration. Chapter 2: Basic Router Configuration. Presenter: Dr. Patrick D. Cerna Asst. Professor. : . Chapter 2 Objectives. Connecting to a Cisco Router Command Line Interface (CLI) Administrative functions Hostnames
E N D
Department of Information Technology ITEC588 – Network Device Configuration Chapter 2: Basic Router Configuration Presenter: Dr. Patrick D. Cerna Asst. Professor :
Chapter 2 Objectives • Connecting to a Cisco Router • Command Line Interface (CLI) • Administrative functions • Hostnames • Banners • Passwords • Interface descriptions • Verifying your configuration 2
Router Access (Connecting to a Cisco Router - 173) Console port(console) Rollover cable (each end is a mirror-image o/t other) RJ-45 to DB-9 RJ-45 to DB-25 Auxiliary port (AUX) Can function like a console port Or, can accept modem commands, i.e., from sources outside the network (i.e., “out of band”) Virtual terminal (VTY) This is for telnet access This kind of access is from within the network (i.e., “in band”.
Connecting To A Cisco Router Cisco 2811 Cisco 1841
Setup Mode • Basic Management Setup • Extended Setup • Command-Line Interface
Command-Line Interface (CLI) • More flexible than setup mode. • To use the CLI, just say “No” to entering the initial configuration dialog. • Initial prompt consists of two parts • Hostname • Greater than symbol (>) p. 179
Overview of Router Modes • Global changes: • config terminal orconfig t • Changes made to running-config(DRAM) • To change the startup-config(NVRAM) • config memory or config mem • Note: Any configuration changes need to be placed into RAM. • Typing “config mem” or “config net” (from a TFTPhost) will append the current running-config p. 1
Configuration Modes Global configuration mode Router(config)# Interface mode Router(config–if)# Line configuration mode Router(config-line)# Router configuration mode Router(config-router)#
Configuration • CLI Prompts • Interfaces • Sub-interfaces • Line Commands • Routing Protocol Configurations
Administrative Functions The administrative functions that you can configure on a router and switch are • Hostnames • Banners • Passwords • Interface descriptions
Hostnames & Descriptions • Hostnames Router(config)#hostname haramaya todd(config)# • Descriptions Atlanta(config)#int e0 Atlanta(config-if)#description cci_lan
Banners • Purpose: welcome message • Types • exec: set EXEC process creation banner • incoming: set incoming terminal line banner • login: login banner • motd: set “Message of the Day” banner • Delimiting character
Setting the Passwords • 5 passwords: • 1st twoused to set your enable password • Used to secure privileged mode; • Router>enable • Or Router>en (because no other commands at privileged level. begin with “en” • Other three are used to configure a password in user mode via: • console port • auxiliary port • Telnet
Passwords • Enable passwords • Router(config)#enable password cisco • Router(config)#enable secret cisco Note: the secret password supersedes the enable password, i.e., if you set both passwords, you will be asked for the secret password. • Auxiliary Password • Console Password • Telnet Password • Encrypting Your Password Router(config)#service password-encryption
Interface Descriptions Setting descriptions on an interface is helpful to the administrator and, like the hostname, only locally significant. The description command is a helpful one because you can, for instance, use it to keep track of circuit numbers. Here’s an example: Atlanta(config)#int e0 Atlanta(config-if)#description Sales Lan Atlanta(config-if)#int s0 Atlanta(config-if)#desc Wan to Miami circuit:6fdda4321 You can view the description of an interface either with the show running-config command or the show interfacecommand.
Router Interfaces • Bringing up an Interface no shutdown shutdown show interface • Configuring an IP Address on an Interface Router(config)#int e0 Router(config-if)#ip address 172.16.10.2 255.255.255.0 Router(config-if)#no shut • Serial Interface Commands clock rate & bandwidth (entered in kilobits)
Viewing, & Saving Configurations • Viewing & Saving Configurations • running-config saved in DRAM • startup-config saved in NVRAM copy run start sh run sh start erase startup-config
References: • Glen E. Clarke, CompTIA Network+, 4th ed., 2009 Mc Graw Hill • CCNA Exploration, 2006, Cisco Press • Todd Lammle, CCNA Study Guide, 7th Ed., 2009, Sybex 25