SlideShare a Scribd company logo
5
Most read
6
Most read
9
Most read
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

PDF
ETUDE DE L'EVOLUTION DU COEUR PAQUET 3G VERS L'EPC
PPTX
Mobile Computing UNIT 1 by surbhi saroha
DOCX
Configuring a cisco 2901 router
PPTX
Cisco Intelligent WAN: Ou comment améliorer l’expérience en succursale
PDF
Mise en place d’un OpenVPN sous PfSense
PDF
Mikro tik advanced training
PDF
Voice Services, From Circuit Switch to VoIP
PDF
Mikrotik load balansing
ETUDE DE L'EVOLUTION DU COEUR PAQUET 3G VERS L'EPC
Mobile Computing UNIT 1 by surbhi saroha
Configuring a cisco 2901 router
Cisco Intelligent WAN: Ou comment améliorer l’expérience en succursale
Mise en place d’un OpenVPN sous PfSense
Mikro tik advanced training
Voice Services, From Circuit Switch to VoIP
Mikrotik load balansing

What's hot (16)

PDF
PPPoE With Mikrotik and Radius
PDF
Réseau de capteurs sans fil
DOC
PPTX
Fibre optique : emplacement du modulateur au niveau du réseau FTTH
PPTX
Présentation sécurité open_ssl
PDF
Ccnp presentation [Day 1-3] Class
PPT
ospf routing protocol
PPTX
CDRouter Brief Introduction
PDF
Class notes fhrp,hsrp,vrrp
PDF
Eincop Netwax Lab: Lab 1 static route
PPTX
LoRaWAN for IoT
PPTX
Securité des réseaux mobiles de nouvelle génération ngn
PDF
5.5.1.2 packet tracer configure ios intrusion prevention system (ips) using...
PPTX
MikroTik MTCNA
PPTX
Chapter 15 : routing concepts
PDF
Open ssl certificate (https) for hotspot mikrotik
PPPoE With Mikrotik and Radius
Réseau de capteurs sans fil
Fibre optique : emplacement du modulateur au niveau du réseau FTTH
Présentation sécurité open_ssl
Ccnp presentation [Day 1-3] Class
ospf routing protocol
CDRouter Brief Introduction
Class notes fhrp,hsrp,vrrp
Eincop Netwax Lab: Lab 1 static route
LoRaWAN for IoT
Securité des réseaux mobiles de nouvelle génération ngn
5.5.1.2 packet tracer configure ios intrusion prevention system (ips) using...
MikroTik MTCNA
Chapter 15 : routing concepts
Open ssl certificate (https) for hotspot mikrotik
Ad

Viewers also liked (6)

PPT
Chapter 11
PPT
CCNA Discovery 4 - Chapter 1
PDF
Router and Switches Cisco
PDF
CCNAv5 - S4: Chapter 1 Hierarchical Network Design
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 11
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 4
Chapter 11
CCNA Discovery 4 - Chapter 1
Router and Switches Cisco
CCNAv5 - S4: Chapter 1 Hierarchical Network Design
CCNA 1 Routing and Switching v5.0 Chapter 11
CCNA 1 Routing and Switching v5.0 Chapter 4
Ad

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

PPT
managing your network environment
PPT
Cis81 ccna1v5-2-configuring networkoperatingsystem
PDF
Cisco IOS (internetworking operating system)
PPT
Chapter 05 - Ios
PPT
05 module managing your network enviornment
PDF
Basic switch management
PPT
Chapter5ccna
PPT
Chapter5ccna
DOC
Router commands
PPTX
IOS-Basic Configuration
PPT
Chapter5ccna
PPTX
CCNA ppt Day 4
PDF
Cisco labs practical1
PPT
01c. Starting A Router
DOCX
How to upgrade ios image on cisco catalyst switch or cisco router
PPT
PPT
operating and configuring cisco a cisco IOS device
PDF
Ccna lab manual[1]
PPT
CCNA presentation.
PPT
Chapter 07
managing your network environment
Cis81 ccna1v5-2-configuring networkoperatingsystem
Cisco IOS (internetworking operating system)
Chapter 05 - Ios
05 module managing your network enviornment
Basic switch management
Chapter5ccna
Chapter5ccna
Router commands
IOS-Basic Configuration
Chapter5ccna
CCNA ppt Day 4
Cisco labs practical1
01c. Starting A Router
How to upgrade ios image on cisco catalyst switch or cisco router
operating and configuring cisco a cisco IOS device
Ccna lab manual[1]
CCNA presentation.
Chapter 07

More from IT Tech (20)

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

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Encapsulation_ Review paper, used for researhc scholars
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Machine Learning_overview_presentation.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Big Data Technologies - Introduction.pptx
PDF
Empathic Computing: Creating Shared Understanding
Programs and apps: productivity, graphics, security and other tools
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Per capita expenditure prediction using model stacking based on satellite ima...
Unlocking AI with Model Context Protocol (MCP)
Encapsulation_ Review paper, used for researhc scholars
“AI and Expert System Decision Support & Business Intelligence Systems”
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Network Security Unit 5.pdf for BCA BBA.
Machine Learning_overview_presentation.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Electronic commerce courselecture one. Pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Reach Out and Touch Someone: Haptics and Empathic Computing
sap open course for s4hana steps from ECC to s4
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Big Data Technologies - Introduction.pptx
Empathic Computing: Creating Shared Understanding

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?