Cisco Router Configuration Basics Scalable Infrastructure Workshop.

Slides:



Advertisements
Similar presentations
Managing Cisco IOS Software. Overview The router boot sequence Locating IOS software The configuration register Recovering Passwords Backing Up the Cisco.
Advertisements

Static Routing Exercise Scalable Infrastructure Workshop AfNOG 2011.
Cisco Router. Overview Understanding and configuring the Cisco Internetwork Operating System (IOS) Connecting to a router Bringing up a router Logging.
1 CCNA 2 v3.1 Module 3. 2 CCNA 2 Module 3 Configuring a Router.
Introduction to the Cisco IOS
WXES2106 Network Technology Semester /2005 Chapter 5 Routers CCNA2: Module 1 and 2.
CCNA 2 v3.1 Module 5.
CCNA Guide to Cisco Networking Fundamentals Fourth Edition
CCNA 2 v3.1 Module 2.
Chapter 9 Managing a Cisco Internetwork Cisco Router Components Bootstrap - Brings up the router during initialization POST - Checks basic functionality;
Cisco Devices CONFIGURING CISCO SWITCH AND ROUTER.
Cisco Router Configuration Basics Nishal Goburdhan.
1 Configuring Cisco Routers Relates to Lab 3.. Router Components Bootstrap – stored in ROM microcode – brings router up during initialization, boots router.
Cisco router configuration NTW2000 / track 2 # 1 cisco router configuration basics.
Host-based Internetworking, Tuesday, 15 June ´99 INET ‘99 Network Training Workshop 1/11 IP Forwarding With Cisco Routers Lab Exercises.
1 Semester 2 Module 2 Introduction to Routers Yuda college of business James Chen
IST 228\Ch4\Cisco IOS1 What we will be able to do?
Sybex CCNA Chapter 7: Managing a Cisco Internetwork Instructor & Todd Lammle.
Cisco 2 - Routers Perrine & modified by Brierley Page 18/18/2015 Chapter 5 IOS Internet Operating System (IOS)
Introduction to OSPF Campus Networking Workshop These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license.
Routers A router is a computer Computers have four basic components:
1 Chapter 2 ROUTER FUNDAMENTALS By: Tassos Tassou.
1 Semester 2 Module 3 Configuring a Router Yuda college of business James Chen
Basic Router Configuration Warren Toomey GCIT. Introduction A Cisco router is simply a computer that receives packets and forwards them on based on what.
© Wiley Inc All Rights Reserved. CCNA: Cisco Certified Network Associate Study Guide CHAPTER 9: Managing a Cisco Internetwork.
Chapter 6 Router Configuration Sem 2V2. Configuration files can come from the console NVRAM TFTP server. The router has several modes:  privileged mode.
Configuring a network os
Chapter 2: Basic Router Configuration
© Wiley Inc All Rights Reserved. CHAPTER 4: Introduction to the Cisco IOS CCNA: Cisco Certified Network Associate Study Guide.
Instructor & Todd Lammle
CCNA Guide to Cisco Networking
Instructor & Todd Lammle
1 Data Forwarding Basic Router Configuration. Overview In this session, we sill be looking at  Review : router backplane Ethernet, console and serial.
Cisco S2 C4 Router Components. Configure a Router You can configure a router from –from the console terminal (a computer connected to the router –through.
Page 110/19/2015 Chapter 5 CCNA2 Chapter 5 Managing Cisco IOS Software.
Basic Router Configuration 1.1 Global configuration Cisco allows us to configure the router to support various protocols and interfaces. The router stores.
Ch.2 – Introduction to Routers
Configuring a Router. Router user interface The Cisco IOS software uses a command-line interface (CLI) as the traditional console environment. This environment.
By Joe Elkins Password Recovery for Cisco Routers (aka Breaking a Cisco Router)
IOS Backup & Password Breaking Technique of Routers & Switches Chapter 17 powered by DJ 1.
SW REVERSE JEOPARDY Chapter 1 CCNA2 SW Start-up Routing table Routing table Router parts Router parts Choosing a path Choosing a path Addressing Pot.
Module 3 Configuring a Router.
Static Routing Exercise
Router Fundamentals PJC CCNA Semester 2 Ver. 3.0 by William Kelly.
Sybex CCNA Chapter 6: Cisco’s IOS Instructor & Todd Lammle.
Chapter 5 Managing a Cisco Internetwork
Static Routing Exercise Mark Tinka & Isatou Jah. What will the exercise involve?  Unix network interface configuration  Cisco network interface configuration.
Cisco router configuration AFNOG 2002 / track 2 # 1 Cisco Router Configuration Basics.
Chapter 7. Working with Router powered by DJ.
CCNA2 Chapter 2 Cisco IOS Software. Cisco’s operating system is called Cisco Internetwork Operating System (IOS) IOS provides the following network services:
Configuration Modes and TFTP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Router Initialization steps.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Chapter 2: Configure a Network Operating System
Cisco router configuration basics. overview router configuration controls the operation of the router: interface address and netmask routing information.
Cisco S2 C6 Router Configuration 1. Router Boot Up Router uses following from config-startup when it boots –Cisco IOS software version –Router identification.
Configuring a Router Module 3 Semester 2. Router Configuration Tasks Name a router Set passwords Examine show commands Configure a serial interface Configure.
1 21-Mar-16 Configuring and testing CCNA Exploration Semester 1 Chapter 11.
CHAPTER 3 Router CLI Command Line Interface. Router User Interface User and privileged modes User mode --Typical tasks include those that check the router.
Cisco 2 - Routers Perrine. J Page 16/26/2016 Chapter 2 Cisco IOS Software Cisco’s operating system is called Cisco Internetwork Operating System (IOS)
Introduction to networking (Yarnfield) Configure a router.
Router Components & Configuration. Router Components & Configurations Topics Physical components Memory components Configuration modes Keystroke shortcuts.
Managing a Cisco Devices Internetwork
Instructor & Todd Lammle
Instructor & Todd Lammle
Configuring a Router Module 3 Semester 2.
Routers & Cisco IOS.
Introduction to Cisco IOS -(Internetwork Operating System)
Lecture9: Embedded Network Operating System: cisco IOS
Lecture9: Embedded Network Operating System: cisco IOS
Presentation transcript:

Cisco Router Configuration Basics Scalable Infrastructure Workshop

Router Components  RAM Holds operating system, data structures, packet buffers, ARP cache, and routing tables Reset on reload Router ’ s running-config is stored in RAM  Flash Holds the IOS Is not erased when the router is reloaded  NVRAM Non-Volatile RAM - stores router’s startup-config Is not erased when router is reloaded

Router Components  Configuration Register controls how router boots; value can be seen with “ show version ” command; is normally 0x2102, which tells the router to load the IOS from flash memory and the startup-config file from NVRAM 0x2142, tells the router to ignore the NVRAM configuration when rebooting Leading “ 0x ” means “ hexadecimal ”

Purpose of the Config Register  Reasons why you would want to modify the config-register: Force the router into ROM Monitor Mode (recovery mode) Select a boot source and default boot filename Enable/Disable the Break function Control broadcast addresses Set console terminal baud rate Load operating software from ROM

Configuration Overview  Router configuration controls the operation of the router ’ s: Interface IP address and netmask Routing information (static, dynamic or default) Boot and startup information Security (passwords and authentication)

Where is the Configuration?  Router always has two configurations: Running configuration  In RAM, determines how the router is currently operating  Is modified using the configure command  To see it: show running-config Startup confguration  In NVRAM, determines how the router will operate after next reload  Is modified using the copy command  To see it: show startup-config

Where is the Configuration?  Can also be stored in more permanent places: External hosts, using TFTP, FTP, SCP, etc In flash memory in the router  Copy command is used to move it around copy run startcopy run tftp copy start tftpcopy tftp start copy flash startcopy start flash

Router Access Modes  User mode – limited access to router – no configuration rights Router>  Privileged EXEC mode – detailed access and full configuration of the router, debugging, testing, file manipulation (router prompt changes to an octothorpe) Router#  ROM Monitor – useful for password recovery (amongst others)  Setup Mode – entered when router has no startup-config file

External Configuration Sources  Console Direct PC serial access  Auxiliary port Modem access  Virtual terminals Telnet/SSH access  TFTP Server Copy configuration file into router RAM  Network Management Software e.g., CiscoWorks

Changing the Configuration  Configuration statements can be entered interactively changes are made (almost) immediately, to the running configuration  Can use direct serial connection to console port, or  Telnet/SSH to vty ’ s ( “ virtual terminals ” ), or  Modem connection to aux port, or  Edited in a text file and uploaded to the router at a later time via tftp/ftp/scp copy tftp start

Logging into the Router  Connect router to console port or telnet to router router> router>enable password router# router#?  Configuring the router Terminal (entering the commands directly) router# configure terminal router(config)#

Connecting your FreeBSD Machine to the Router ’ s Console Port  Connect your PC to the console port using the serial cable provided  Go to /etc/remote to see the device configured to be used with "tip ”.you will see at the end, a line begin with com1 bash$ tip com1 router> router>enable router#

Address Assignments SWITCH G F E C D / / / / /28 H J I K L / / / / / / B /28 A / M /28 N /

Configuring your Router (1)  Load configuration parameters into RAM Router#configure terminal  Personalise router identification Router#(config)hostname RouterA  Assign console & vty passwords RouterA#(config)line console 0 RouterA#(config-line)password afnog RouterA#(config)line vty 0 4 RouterA#(config-line)password afnog Spaces count, so don’t add them at the end !!

Configuring your Router (2)  Set the enable (secret) password: router(config)# enable secret afnog  This MD5 encrypts the password The old method was to use the enable password command. But this is not secure (weak encryption) and is ABSOLUTELY NOT RECOMMENDED. DO NOT USE!  Ensure that all passwords stored on router are (weakly) encrypted rather than clear text: router(config)# service password-encryption

Configuring your Router (3)  Configure interfaces RouterA#(config)interface fastethernet 0/0 RouterA#(config-if)ip address n.n.n.n m.m.m.m RouterA#(config-if)no shutdown  Configure routing/routed protocols RouterA#(config)router bgp 100 RouterA#(config-router)  Save configuration parameters to NVRAM RouterA#copy running-config startup-config (or write memory )

Configuring your Router (4)  IP Specific Configuration no ip source-route  disable source routing ip domain-name domain-name ip nameserver n.n.n.n  set name server  Static Route Creation ip route n.n.n.n m.m.m.m g.g.g.g n.n.n.n = network block m.m.m.m = network mask denoting block size g.g.g.g = next hop gateway destination packets are sent to

Router Prompts – How to tell where you are on the router  You can tell in which area of the router ’ s configuration you are by looking at the router prompts - some examples: Router>  USER prompt mode Router#  PRIVILEGED EXEC prompt mode Router(config)  terminal configuration prompt Router(config-if)  interface configuration prompt Router(config-subif)  sub-interface configuration prompt rommon 1>  ROM Monitor mode

The NO Command  Used to reverse or disable commands e.g ip domain-lookup no ip domain-lookup router ospf 1 no router ospf 1 ip address no ip address

Interface Configuration  Interfaces are named by slot/type; e.g.: ethernet0, ethernet5/1, serial0/0/0, serial2  And can be abbreviated: ethernet0 or eth0 or e0 Serial0/0 or ser0/0 or s0/0  Interfaces are shutdown by default router(config-if)#no shutdown  wake up interface  Description router(config-if)#description Link to Admin Building router

Global Configuration Commands  Cisco global config should always include: ip classless ip subnet-zero (These are default as from IOS 12.2 release)  Cisco interface config should usually include: no shutdown no ip proxy-arp no ip redirects no ip directed-broadcast  Industry recommendations are at

Looking at the Configuration  Use “ show running-configuration ” to see the current configuration  Use “ show startup-configuration ” to see the configuration in NVRAM, that will be loaded the next time the router is rebooted or reloaded (or show conf )

Storing the Configuration on a Remote System  Requires: ‘ tftpd ’ on a unix host; destination file must exist before the file is written and must be world writable... rtra#copy run tftp Remote host []? n.n.n.n Name of configuration file to write [rtra-confg]? Write file rtra-confg on Host n.n.n.n? [confirm] Building configuration... Writing rtra-confg !![OK] router#

Restoring the Configuration from a Remote System  Use ‘ tftp ’ to pull file from UNIX host, copying to running- config (added to existing running configuration) or startup- config (stored in configuration NVRAM and used on next reboot) rtra#copy tftp start Address of remote host [ ]? n.n.n.n Name of configuration file [rtra-confg]? Configure using rtra-confg from n.n.n.n? [confirm] Loading rtra-confg from n.n.n.n (via Ethernet0/0): ! [OK / bytes] rtra# reload

Getting Command Help  IOS has a command help facility; use “ ? ” to get a list of possible configuration options  “ ? ” after the prompt lists all possible commands: router#?  “ ? ” lists all possible subcommands router#show ? router#show ip ?  “ ? ” lists all possible command completions: router#con? configure connect

Getting Lazy Command Help  TAB character will complete a partial word hostel-rtr(config)#int hostel-rtr(config)#interface et hostel-rtr(config)#interface ethernet 0 hostel-rtr(config-if)#ip add hostel-rtr(config-if)#ip address n.n.n.n m.m.m.m  Not really necessary to complete command keywords; partial commands can be used: router#conf t router(config)#int e0/0 router(config-if)#ip addr n.n.n.n

Editing  Command history IOS maintains a list of previously typed commands up-arrow or ‘ ^p ’ recalls previous command down-arrow or ‘ ^n ’ recalls next command  Line editing left-arrow, right-arrow moves cursor inside command ‘ ^d ’ or backspace will delete character in front of cursor Ctrl-a takes you to start of line Ctrl-e takes you to end of line Ctrl-u deletes an entire line Many other ‘unix-like’ tricks…

Connecting your FreeBSD machine to the Router ’ s Console port  Look at your running configuration  Configure an IP address for fastethernet0/1 depending on your table use n.n.n.n for table A etc  Look at your running configuration and your startup configuration  Check what difference there is, if any

Deleting your Router ’ s Configuration  To delete your router ’ s configuration Router#erase startup-config OR Router#write erase Router#reload Router will start up again, but in setup mode, since startup-config file does not exists

Password Recovery Working around a forgotten or lost password

Disaster Recovery – ROM Monitor  ROM Monitor is very helpful in recovering from emergency failures such as: Password recovery Upload new IOS into router with NO IOS installed Selecting a boot source and default boot filename Set console terminal baud rate to upload new IOS quicker Load operating software from ROM Enable booting from a TFTP server

Getting to the ROM Monitor  Windows using HyperTerminal for the console session Ctrl-Break  FreeBSD/UNIX using Tip for the console session, then ~# OR Ctrl-], then Break or Ctrl-C  Linux using Minicom for the console session Ctrl-A F  MacOS using Zterm for the console session Apple B

Disaster Recovery: How to Recover a Lost Password  Connect your PC ’ s serial port to the router ’ s console port  Configure your PC ’ s serial port: 9600 baud rate No parity 8 data bits 1 stop bit No flow control

Disaster Recovery: How to Recover a Lost Password  Your configuration register should be 0x2102; use “ show version ” command to check  Reboot the router and apply the Break- sequence within 60 seconds of powering the router, to put it into ROMMON mode Rommon 1>confreg 0x2142 Rommon 2>reset Router reboots, bypassing startup-config file

Disaster Recovery: How to Recover a Lost Password Type Ctrl-C to exit Setup mode Router>enable Router#copy start run (only!!!) Router#show running Router#conf t Router(config)enable secret forgotten Router(config)int e0/0… Router(config-if)no shut Router(config)config-register 0x2102 Router(config)Ctrl-Z or end Router#copy run start Router#reload

Basic IPv6 Configuration

IPv6 Configuration  IPv6 is not enabled by default in IOS  Enabling IPv6: Router(config)# ipv6 unicast-routing  Disable Source Routing Router(config)# no ipv6 source route  Activating IPv6 CEF Router(config)# ipv6 cef

IPv6 Configuration - Interfaces  Configuring a global or unique local IPv6 address: Router(config-if)# ipv6 address X:X..X:X/prefix  Configuring an EUI-64 based IPv6 address (not such a good idea on a router): Router(config-if)# ipv6 address X:X::/prefix eui-64

IPv6 Configuration  Note that by configuring any IPv6 address on an interface, you will see a global or unique-local IPv6 address and a link-local IPv6 address on the interface Link-local IPv6 address format is FE80::interface-id  The local-link IPv6 address is constructed automatically by concatenating FE80 with Interface ID as soon as IPv6 is enabled on the interface: Router(config-if)# ipv6 enable

IOS IPv6 Interface Status – Link Local br01#sh ipv6 interface fast 0/1.220 FastEthernet0/1.220 is up, line protocol is up IPv6 is enabled, link-local address is FE80::225:45FF:FE6A:5B39 No global unicast address is configured Joined group address(es): FF02::1 FF02::2 FF02::1:FF6A:5B39 MTU is 1500 bytes ICMP error messages limited to one every 100 milliseconds ICMP redirects are enabled

IOS IPv6 Interface Status br01#sh ipv6 interface fast 0/1.223 FastEthernet0/1.223 is up, line protocol is up IPv6 is enabled, link-local address is FE80::225:45FF:FE6A:5B39 Description: backbone Global unicast address(es): 2001:4348:0:223:196:200:223:254, subnet is 2001:4348:0:223::/64 Joined group address(es): FF02::1 FF02::2 FF02::1:FF23:254 FF02::1:FF6A:5B39 MTU is 1500 bytes ICMP error messages limited to one every 100 milliseconds ICMP redirects are enabled

IPv6 Configuration – Miscellaneous  Disable IPv6 redirects on interfaces interface fastethernet 0/0 no ipv6 redirects  Nameserver, syslog etc can be IPv6 accessible ip nameserver 2001:db8:2:1::2 ip nameserver

Static Routing – IOS  Syntax is: ipv6 route ipv6-prefix/prefix-length {ipv6- address | interface-type interface-number} [admin-distance]  Static Route ipv6 route 2001:db8::/ :db8:0:CC00::1 Routes packets for network 2001:db8::/64 to a networking device at 2001:db8:0:CC00::1

Cisco Router Configuration Basics Questions?