SlideShare a Scribd company logo
1 of 11
Copy and Save a Configuration File From a Router or Switch Using a Laptop
In the following section, we will show an example how to copy and save a
configuration file from a Cisco 7200 router and a Catalyst switch. Cisco Catalyst
switch family supports two OS versions: the Cat OS and Native IOS. The differences
between these two IOS versions are that
CatOS: is the image that runs on the Supervisor Switch Processor and handles
all of the Layer 2 (L2) switch functions. It is also known as the Hybrid image
(Hybrid OS) when used in conjunction with IOS software image on the
Multilayer Switch Feature Card (MSFC). We refer to the image running on the
Supervisor Switch Processor as CatOS. CatOS is supported on the Catalyst
4000 and 6000 product families
Native IOS: is the single Cisco IOS image that runs on the Supervisor Switch
Processor and the MSFC. In other words, the Supervisor and the MSFC both
run a single bundled Cisco IOS Image. The Native IOS is also supported on the
Catalyst 4000 and 6000 products.
Login credentials including user name, console password and enable password are
required to access router or switch's configuration. If the login credentials are known,
user can directly perform the copy and save device's configuration to a laptop as
described in the Section 2.3.2. If any of these credentials is not available, the
password recovery procedure must be performed prior to log in the device. Section
12 covers Cisco device password recovery procedure in detail. Please refer to Section
12 for password recovery procedure.
2.3.1 Start a HyperTerminal session and establish console connection to a Cisco
device (such as router and switch)
This example shows how to copy the configuration from a router and a switch using
the HyperTerminal tool on a Microsoft Windows laptop and save the configuration as
a text file.
Step1. Connect a RJ-45 to DB-9 adapter into the PC/Laptop (Serial port) and connect
the RJ-45 Roll-Over cable (black) into the RJ-45 to DB-9 adapter.
Note: Use a USB to Serial port adapter for console
port connection if the PC does not have built-in
serial port.
Step2. Connect the other end of the RJ-45 Roll-Over cable into the device Console
port. Figure 2-3a shows one example on how to "Connect a Laptop to Router console
port with a RJ-45 to DB-9 adapter" and Figure 2-3b show one example on how to
"Connect a Laptop to Router console port with a USB to Serial port adapter".
Figure 2-3a: Connecting Laptop to Router console port
Step 5 On the Connection Description screen, for Name type "Cisco" and select an
icon for the definition, and click OK as shown in Figure 2-3d. The Connect To dialog
appears as shown in Figure 2-3e.
Figure 2-3e: HyperTerminal Connect To dialog
Step6. On the Connect To dialog, select your primary COM port (COM2 in this
example) for the Connect using: field, and click OK. (The Country/region:, Area
code: and Phone number: fields are not used.) The COMn Properties dialog appears
as shown in Figure 2-3f.
Figure 2-3f: HyperTerminal COMn Properties dialog
Step7. On the COMn Properties dialog, make the following selections, then click OK:
Bits per sec: 9600
Data bits: 8
Parity: none
Stop bits: 1
Flow control: none
Step8. To prove you have a valid connection, hit the enter key and you should see
the device prompt that indicates the PC is now communicating with the device.
Figure 2-3g shows an example of a Cisco 7206 router console prompt that
requires user login.
Figure 2-3h shows an example of a Cisco Catalyst Native IOS switch console
prompt.
Figure 2-3i shows an example of a Cisco Catalyst CatOS (Hybrid OS) switch
console prompt.
Figure 2-3g: Cisco 7206 router console prompt
Figure 2-3h: Catalyst switch Native IOS console prompt
Figure 2-3i: Catalyst switch CATOS console prompt
2.3.2 Capture Configuration from a Router or a Switch and Save the Configuration
to a Laptop
Step1. At the device console prompt, type enable, and provide the password when
prompted. Depending on the device being worked on, the enable mode prompt is
changed to one of the following:
For a router device: the prompt changes to Router#, indicating the router is
now in privileged mode.
For a Catalyst Native IOS switch: the prompt changes to Switch#, indicating
the switch is now in privileged mode.
For a Catalyst CatOS switch: the prompt changes to Console> (enable),
indicating the switch is now in privileged mode.
Step2. At the device enable mode prompt, set terminal length to 0 to force the
device to return the entire command output response at once, rather than one
screen at a time.
For a router or a Catalyst Native IOS switch: type terminal length 0 to set
terminal length to 0. Figure 2-3j shows an example for a 7200 router.
For a Catalyst CatOS switch: type set length 0 to set terminal length to
0. Figure 2-3k shows an example for a CatOS switch.
Note: This is crucial to capturing this file without
extraneous --more-- prompts generated when the
router responds a screen at a time.
Figure 2-3j: Set terminal length to 0 on router
Figure 2-3k: Set terminal length to 0 on a CatOS switch
Step3. On the HyperTerminal menu, select Transfer > Capture Text.... The Capture
Text window appears. See Figure 2-3l for an example.
Figure 2-3l: Capture Hyper Terminal Command output
Step4. Name this file "config.txt". Optionally browse to an alternate directory in
which to save the file (Figure 2-3m), or simply accept the default location.
Click Start to dismiss the Capture Text window and then begin the capture.
Figure 2-3m: Text Capture Window
Step5. At the device enable mode prompt, type one of the following command
options to start capturing the configuration, allow time for the device to response.
For a router or a Catalyst Native IOS switch: type show start to display the
configuration. Figure 2-3n shows an example for a 7206 router.
For a Catalyst CatOS switch: type show config to display the
configuration. Figure 2-3o shows an example for a CatOS switch.
Figure 2-3n: show start command
Figure 2-3o: show config command
Step6. After the device completes displaying the configuration, on the HyperTerminal
menu, select Transfer > Capture Text > Stop. See Figure 2-3p for an example.
Figure 2-3p: Stop Text Capture
Step7. Reset the device terminal display length to its default value (24 lines per
screen).
For a router or a Catalyst Native IOS switch: type terminal length 24 to set
terminal length to 24. Figure 2-3q shows an example for a 7206 router.
For a Catalyst CatOS switch: type set length 24 to set terminal length to
24. Figure 2-3r shows an example for a CatOS switch.
Figure 2-3q: Reset the Terminal Length to 24
Figure 2-3r: Reset the CatOS Terminal Length to 24
Step8. Verify the saved config.txt file with Windows' Notepad. Figure 2-3s shows a
7206 router config.txt file just captured.
Figure 2-3s: config.txt captured configuration file
Figure 2-3b: Connecting Laptop to Router console port with USB to Serial adapter
Step3. On the Windows Start menu, select Run. The Run dialog appears as shown
in Figure 2-3c.
Figure 2-3c: The Windows Run Dialog
Step4. In the Open: field, type hypertrm.exe, and click OK.The HyperTerminal
appears and open to the Connection Description dialog as shown in Figure 2-3d.
Figure 2-3d: HyperTerminal Connection Description dialog
More Related Networking Tutorials:
Cisco Router with Cisco ASA for Internet Access
Site to Site VPN between ASA Firewall & Cisco Router
How to Use OSPF Point-to-Multi-Point on Ethernet?
DHCP Relay on the Nexus7000/NXOS Vs. IP Helper on the 6500/IoS
How to Configure site-to-site IPSEC VPN on Cisco ASA using IKEv2?

More Related Content

What's hot

Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERSDay 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
anilinvns
 

What's hot (20)

Ccna complete notes
Ccna complete notesCcna complete notes
Ccna complete notes
 
CCNAv5 - S2: Chapter5 Inter Vlan Routing
CCNAv5 - S2: Chapter5 Inter Vlan RoutingCCNAv5 - S2: Chapter5 Inter Vlan Routing
CCNAv5 - S2: Chapter5 Inter Vlan Routing
 
Introduction to Snort
Introduction to SnortIntroduction to Snort
Introduction to Snort
 
CCNA Course Training Presentation
CCNA Course Training PresentationCCNA Course Training Presentation
CCNA Course Training Presentation
 
CCNA
CCNACCNA
CCNA
 
Mitigating Layer2 Attacks
Mitigating Layer2 AttacksMitigating Layer2 Attacks
Mitigating Layer2 Attacks
 
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERSDay 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
 
Ipv4 & ipv6
Ipv4 & ipv6Ipv4 & ipv6
Ipv4 & ipv6
 
Access control list [1]
Access control list [1]Access control list [1]
Access control list [1]
 
Virtual Private Network
Virtual Private NetworkVirtual Private Network
Virtual Private Network
 
IP security and VPN presentation
IP security and VPN presentation IP security and VPN presentation
IP security and VPN presentation
 
Bluetooth
BluetoothBluetooth
Bluetooth
 
IPSec VPN & IPSec Protocols
IPSec VPN & IPSec ProtocolsIPSec VPN & IPSec Protocols
IPSec VPN & IPSec Protocols
 
All About Snort
All About SnortAll About Snort
All About Snort
 
ospf routing protocol
ospf routing protocolospf routing protocol
ospf routing protocol
 
Snort IDS/IPS Basics
Snort IDS/IPS BasicsSnort IDS/IPS Basics
Snort IDS/IPS Basics
 
CCNA SUMMER TRAINNING PPT
CCNA SUMMER TRAINNING PPTCCNA SUMMER TRAINNING PPT
CCNA SUMMER TRAINNING PPT
 
Iot rpl
Iot rplIot rpl
Iot rpl
 
TCP/IP
TCP/IPTCP/IP
TCP/IP
 
Dynamic Routing
Dynamic RoutingDynamic Routing
Dynamic Routing
 

Viewers also liked (6)

Chapter 11
Chapter 11Chapter 11
Chapter 11
 
CCNA Discovery 4 - Chapter 1
CCNA Discovery 4 - Chapter 1CCNA Discovery 4 - Chapter 1
CCNA Discovery 4 - Chapter 1
 
Router and Switches Cisco
Router and Switches CiscoRouter and Switches Cisco
Router and Switches Cisco
 
CCNAv5 - S4: Chapter 1 Hierarchical Network Design
CCNAv5 - S4: Chapter 1 Hierarchical Network DesignCCNAv5 - S4: Chapter 1 Hierarchical Network Design
CCNAv5 - S4: Chapter 1 Hierarchical Network Design
 
CCNA 1 Routing and Switching v5.0 Chapter 11
CCNA 1 Routing and Switching v5.0 Chapter 11CCNA 1 Routing and Switching v5.0 Chapter 11
CCNA 1 Routing and Switching v5.0 Chapter 11
 
CCNA 1 Routing and Switching v5.0 Chapter 4
CCNA 1 Routing and Switching v5.0 Chapter 4CCNA 1 Routing and Switching v5.0 Chapter 4
CCNA 1 Routing and Switching v5.0 Chapter 4
 

Similar to Copy and save a configuration file from a router or switch using a laptop

Stratix5400_5700_Setup_Rev1
Stratix5400_5700_Setup_Rev1Stratix5400_5700_Setup_Rev1
Stratix5400_5700_Setup_Rev1
Jeremy St. John
 
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docxAll contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
galerussel59292
 
Chapter 2_Architecture_edited_SDT
Chapter 2_Architecture_edited_SDTChapter 2_Architecture_edited_SDT
Chapter 2_Architecture_edited_SDT
Stephanie Stribling
 
05 module managing your network enviornment
05  module managing your network enviornment05  module managing your network enviornment
05 module managing your network enviornment
Asif
 
04 module operating & configuring ios
04  module operating & configuring ios04  module operating & configuring ios
04 module operating & configuring ios
Asif
 
Quantum composers white paper ethernet connectivity
Quantum composers white paper  ethernet connectivityQuantum composers white paper  ethernet connectivity
Quantum composers white paper ethernet connectivity
Quantum Composers
 
KPUCC-Rs instructor ppt_chapter2_final
KPUCC-Rs instructor ppt_chapter2_finalKPUCC-Rs instructor ppt_chapter2_final
KPUCC-Rs instructor ppt_chapter2_final
Fisal Anwari
 
Cisco labs practical1
Cisco labs practical1Cisco labs practical1
Cisco labs practical1
Tai Lam
 

Similar to Copy and save a configuration file from a router or switch using a laptop (20)

Stratix5400_5700_Setup_Rev1
Stratix5400_5700_Setup_Rev1Stratix5400_5700_Setup_Rev1
Stratix5400_5700_Setup_Rev1
 
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docxAll contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
 
Hướng dẫn cài đặt switch planet layer 3
Hướng dẫn cài đặt switch planet layer 3Hướng dẫn cài đặt switch planet layer 3
Hướng dẫn cài đặt switch planet layer 3
 
Chapter 2_Architecture_edited_SDT
Chapter 2_Architecture_edited_SDTChapter 2_Architecture_edited_SDT
Chapter 2_Architecture_edited_SDT
 
operating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS deviceoperating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS device
 
05 module managing your network enviornment
05  module managing your network enviornment05  module managing your network enviornment
05 module managing your network enviornment
 
04 module operating & configuring ios
04  module operating & configuring ios04  module operating & configuring ios
04 module operating & configuring ios
 
Connecting Schneider modbus meter to IoT backend using Gateway Ubidots Azure...
Connecting Schneider modbus  meter to IoT backend using Gateway Ubidots Azure...Connecting Schneider modbus  meter to IoT backend using Gateway Ubidots Azure...
Connecting Schneider modbus meter to IoT backend using Gateway Ubidots Azure...
 
Important cisco-chow-commands
Important cisco-chow-commandsImportant cisco-chow-commands
Important cisco-chow-commands
 
Quantum composers white paper ethernet connectivity
Quantum composers white paper  ethernet connectivityQuantum composers white paper  ethernet connectivity
Quantum composers white paper ethernet connectivity
 
KPUCC-Rs instructor ppt_chapter2_final
KPUCC-Rs instructor ppt_chapter2_finalKPUCC-Rs instructor ppt_chapter2_final
KPUCC-Rs instructor ppt_chapter2_final
 
CCNAv5 - S2: Chapter2 Basic Switching Concepts and Configuration
CCNAv5 - S2: Chapter2 Basic Switching Concepts and ConfigurationCCNAv5 - S2: Chapter2 Basic Switching Concepts and Configuration
CCNAv5 - S2: Chapter2 Basic Switching Concepts and Configuration
 
Chapter 02 - Introduction to Switched Networks
Chapter 02 - Introduction to Switched NetworksChapter 02 - Introduction to Switched Networks
Chapter 02 - Introduction to Switched Networks
 
Cisco labs practical1
Cisco labs practical1Cisco labs practical1
Cisco labs practical1
 
Chapter 13 : Introduction to switched networks
Chapter 13 : Introduction to switched networksChapter 13 : Introduction to switched networks
Chapter 13 : Introduction to switched networks
 
Station 1 POD1
Station 1 POD1Station 1 POD1
Station 1 POD1
 
Xctu manual
Xctu manualXctu manual
Xctu manual
 
Tutorial-Auto-Code-Generation-for-F2803x-Target.pdf
Tutorial-Auto-Code-Generation-for-F2803x-Target.pdfTutorial-Auto-Code-Generation-for-F2803x-Target.pdf
Tutorial-Auto-Code-Generation-for-F2803x-Target.pdf
 
CCNA 2 Routing and Switching v5.0 Chapter 2
CCNA 2 Routing and Switching v5.0 Chapter 2CCNA 2 Routing and Switching v5.0 Chapter 2
CCNA 2 Routing and Switching v5.0 Chapter 2
 
Network topology by essay corp uk
Network topology by essay corp ukNetwork topology by essay corp uk
Network topology by essay corp uk
 

More from IT Tech

More from IT Tech (20)

Cisco ip phone key expansion module setup
Cisco ip phone key expansion module setupCisco ip phone key expansion module setup
Cisco ip phone key expansion module setup
 
Cisco catalyst 9200 series platform spec, licenses, transition guide
Cisco catalyst 9200 series platform spec, licenses, transition guideCisco catalyst 9200 series platform spec, licenses, transition guide
Cisco catalyst 9200 series platform spec, licenses, transition guide
 
Cisco isr 900 series highlights, platform specs, licenses, transition guide
Cisco isr 900 series highlights, platform specs, licenses, transition guideCisco isr 900 series highlights, platform specs, licenses, transition guide
Cisco isr 900 series highlights, platform specs, licenses, transition guide
 
Hpe pro liant gen9 to gen10 server transition guide
Hpe pro liant gen9 to gen10 server transition guideHpe pro liant gen9 to gen10 server transition guide
Hpe pro liant gen9 to gen10 server transition guide
 
The new cisco isr 4461 faq
The new cisco isr 4461 faqThe new cisco isr 4461 faq
The new cisco isr 4461 faq
 
New nexus 400 gigabit ethernet (400 g) switches
New nexus 400 gigabit ethernet (400 g) switchesNew nexus 400 gigabit ethernet (400 g) switches
New nexus 400 gigabit ethernet (400 g) switches
 
Tested cisco isr 1100 delivers the richest set of wi-fi features
Tested cisco isr 1100 delivers the richest set of wi-fi featuresTested cisco isr 1100 delivers the richest set of wi-fi features
Tested cisco isr 1100 delivers the richest set of wi-fi features
 
Aruba campus and branch switching solution
Aruba campus and branch switching solutionAruba campus and branch switching solution
Aruba campus and branch switching solution
 
Cisco transceiver module for compatible catalyst switches
Cisco transceiver module for compatible catalyst switchesCisco transceiver module for compatible catalyst switches
Cisco transceiver module for compatible catalyst switches
 
Cisco ios on cisco catalyst switches
Cisco ios on cisco catalyst switchesCisco ios on cisco catalyst switches
Cisco ios on cisco catalyst switches
 
Cisco's wireless solutions deployment modes
Cisco's wireless solutions deployment modesCisco's wireless solutions deployment modes
Cisco's wireless solutions deployment modes
 
Competitive switching comparison cisco vs. hpe aruba vs. huawei vs. dell
Competitive switching comparison cisco vs. hpe aruba vs. huawei vs. dellCompetitive switching comparison cisco vs. hpe aruba vs. huawei vs. dell
Competitive switching comparison cisco vs. hpe aruba vs. huawei vs. dell
 
Four reasons to consider the all in-one isr 1000
Four reasons to consider the all in-one isr 1000Four reasons to consider the all in-one isr 1000
Four reasons to consider the all in-one isr 1000
 
The difference between yellow and white labeled ports on a nexus 2300 series fex
The difference between yellow and white labeled ports on a nexus 2300 series fexThe difference between yellow and white labeled ports on a nexus 2300 series fex
The difference between yellow and white labeled ports on a nexus 2300 series fex
 
Cisco transceiver modules for compatible cisco switches series
Cisco transceiver modules for compatible cisco switches seriesCisco transceiver modules for compatible cisco switches series
Cisco transceiver modules for compatible cisco switches series
 
Guide to the new cisco firepower 2100 series
Guide to the new cisco firepower 2100 seriesGuide to the new cisco firepower 2100 series
Guide to the new cisco firepower 2100 series
 
892 f sfp configuration example
892 f sfp configuration example892 f sfp configuration example
892 f sfp configuration example
 
Cisco nexus 7000 and nexus 7700
Cisco nexus 7000 and nexus 7700Cisco nexus 7000 and nexus 7700
Cisco nexus 7000 and nexus 7700
 
Cisco firepower ngips series migration options
Cisco firepower ngips series migration optionsCisco firepower ngips series migration options
Cisco firepower ngips series migration options
 
Eol transceiver to replacement model
Eol transceiver to replacement modelEol transceiver to replacement model
Eol transceiver to replacement model
 

Recently uploaded

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
FIDO Alliance
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
UK Journal
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 

Recently uploaded (20)

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 

Copy and save a configuration file from a router or switch using a laptop

  • 1. Copy and Save a Configuration File From a Router or Switch Using a Laptop In the following section, we will show an example how to copy and save a configuration file from a Cisco 7200 router and a Catalyst switch. Cisco Catalyst switch family supports two OS versions: the Cat OS and Native IOS. The differences between these two IOS versions are that CatOS: is the image that runs on the Supervisor Switch Processor and handles all of the Layer 2 (L2) switch functions. It is also known as the Hybrid image (Hybrid OS) when used in conjunction with IOS software image on the Multilayer Switch Feature Card (MSFC). We refer to the image running on the Supervisor Switch Processor as CatOS. CatOS is supported on the Catalyst 4000 and 6000 product families Native IOS: is the single Cisco IOS image that runs on the Supervisor Switch Processor and the MSFC. In other words, the Supervisor and the MSFC both run a single bundled Cisco IOS Image. The Native IOS is also supported on the Catalyst 4000 and 6000 products. Login credentials including user name, console password and enable password are required to access router or switch's configuration. If the login credentials are known, user can directly perform the copy and save device's configuration to a laptop as described in the Section 2.3.2. If any of these credentials is not available, the password recovery procedure must be performed prior to log in the device. Section 12 covers Cisco device password recovery procedure in detail. Please refer to Section 12 for password recovery procedure. 2.3.1 Start a HyperTerminal session and establish console connection to a Cisco device (such as router and switch) This example shows how to copy the configuration from a router and a switch using the HyperTerminal tool on a Microsoft Windows laptop and save the configuration as a text file. Step1. Connect a RJ-45 to DB-9 adapter into the PC/Laptop (Serial port) and connect the RJ-45 Roll-Over cable (black) into the RJ-45 to DB-9 adapter. Note: Use a USB to Serial port adapter for console port connection if the PC does not have built-in serial port. Step2. Connect the other end of the RJ-45 Roll-Over cable into the device Console port. Figure 2-3a shows one example on how to "Connect a Laptop to Router console port with a RJ-45 to DB-9 adapter" and Figure 2-3b show one example on how to "Connect a Laptop to Router console port with a USB to Serial port adapter". Figure 2-3a: Connecting Laptop to Router console port Step 5 On the Connection Description screen, for Name type "Cisco" and select an icon for the definition, and click OK as shown in Figure 2-3d. The Connect To dialog appears as shown in Figure 2-3e.
  • 2. Figure 2-3e: HyperTerminal Connect To dialog Step6. On the Connect To dialog, select your primary COM port (COM2 in this example) for the Connect using: field, and click OK. (The Country/region:, Area code: and Phone number: fields are not used.) The COMn Properties dialog appears as shown in Figure 2-3f. Figure 2-3f: HyperTerminal COMn Properties dialog Step7. On the COMn Properties dialog, make the following selections, then click OK: Bits per sec: 9600
  • 3. Data bits: 8 Parity: none Stop bits: 1 Flow control: none Step8. To prove you have a valid connection, hit the enter key and you should see the device prompt that indicates the PC is now communicating with the device. Figure 2-3g shows an example of a Cisco 7206 router console prompt that requires user login. Figure 2-3h shows an example of a Cisco Catalyst Native IOS switch console prompt. Figure 2-3i shows an example of a Cisco Catalyst CatOS (Hybrid OS) switch console prompt. Figure 2-3g: Cisco 7206 router console prompt Figure 2-3h: Catalyst switch Native IOS console prompt Figure 2-3i: Catalyst switch CATOS console prompt
  • 4. 2.3.2 Capture Configuration from a Router or a Switch and Save the Configuration to a Laptop Step1. At the device console prompt, type enable, and provide the password when prompted. Depending on the device being worked on, the enable mode prompt is changed to one of the following: For a router device: the prompt changes to Router#, indicating the router is now in privileged mode. For a Catalyst Native IOS switch: the prompt changes to Switch#, indicating the switch is now in privileged mode. For a Catalyst CatOS switch: the prompt changes to Console> (enable), indicating the switch is now in privileged mode. Step2. At the device enable mode prompt, set terminal length to 0 to force the device to return the entire command output response at once, rather than one screen at a time. For a router or a Catalyst Native IOS switch: type terminal length 0 to set terminal length to 0. Figure 2-3j shows an example for a 7200 router. For a Catalyst CatOS switch: type set length 0 to set terminal length to 0. Figure 2-3k shows an example for a CatOS switch. Note: This is crucial to capturing this file without extraneous --more-- prompts generated when the router responds a screen at a time. Figure 2-3j: Set terminal length to 0 on router
  • 5. Figure 2-3k: Set terminal length to 0 on a CatOS switch Step3. On the HyperTerminal menu, select Transfer > Capture Text.... The Capture Text window appears. See Figure 2-3l for an example. Figure 2-3l: Capture Hyper Terminal Command output
  • 6. Step4. Name this file "config.txt". Optionally browse to an alternate directory in which to save the file (Figure 2-3m), or simply accept the default location. Click Start to dismiss the Capture Text window and then begin the capture. Figure 2-3m: Text Capture Window Step5. At the device enable mode prompt, type one of the following command options to start capturing the configuration, allow time for the device to response. For a router or a Catalyst Native IOS switch: type show start to display the configuration. Figure 2-3n shows an example for a 7206 router. For a Catalyst CatOS switch: type show config to display the configuration. Figure 2-3o shows an example for a CatOS switch. Figure 2-3n: show start command
  • 7. Figure 2-3o: show config command Step6. After the device completes displaying the configuration, on the HyperTerminal menu, select Transfer > Capture Text > Stop. See Figure 2-3p for an example. Figure 2-3p: Stop Text Capture
  • 8. Step7. Reset the device terminal display length to its default value (24 lines per screen). For a router or a Catalyst Native IOS switch: type terminal length 24 to set terminal length to 24. Figure 2-3q shows an example for a 7206 router. For a Catalyst CatOS switch: type set length 24 to set terminal length to 24. Figure 2-3r shows an example for a CatOS switch. Figure 2-3q: Reset the Terminal Length to 24 Figure 2-3r: Reset the CatOS Terminal Length to 24 Step8. Verify the saved config.txt file with Windows' Notepad. Figure 2-3s shows a 7206 router config.txt file just captured. Figure 2-3s: config.txt captured configuration file
  • 9. Figure 2-3b: Connecting Laptop to Router console port with USB to Serial adapter
  • 10. Step3. On the Windows Start menu, select Run. The Run dialog appears as shown in Figure 2-3c. Figure 2-3c: The Windows Run Dialog Step4. In the Open: field, type hypertrm.exe, and click OK.The HyperTerminal appears and open to the Connection Description dialog as shown in Figure 2-3d. Figure 2-3d: HyperTerminal Connection Description dialog
  • 11. More Related Networking Tutorials: Cisco Router with Cisco ASA for Internet Access Site to Site VPN between ASA Firewall & Cisco Router How to Use OSPF Point-to-Multi-Point on Ethernet? DHCP Relay on the Nexus7000/NXOS Vs. IP Helper on the 6500/IoS How to Configure site-to-site IPSEC VPN on Cisco ASA using IKEv2?