Вы находитесь на странице: 1из 6

Manual 1

Connecting to a Cisco Router Using Console


Step 1: Attach a console cable to the console port (Rj-45) located at the back
of the router.
Step 2: Open a new HyperTerminal instance from Start-All Programs-
Accessories-Communications-HyperTerminal, enter a random name to this
connection and choose the com port to use for connecting to the router.
Adjust the following port settings to the com port:
Bits per second: 9600
Data bits: 8
Parity: none
Stop bits: 1
Flow control: Hardware
Step 3: After pressing [Enter] a few times you will see the Router> prompt. Go
to menu view-font of the hyperterminal and select courier font with font size
14.
Write enable to enter into privileged mode (after issuing the correct enable
secret). Here are the steps:
[Router name]>
[Router name]>enable
Password: .
[Router name]#
Connecting to a Cisco Router Using Telnet
Note that in order to be able to telnet onto a router, a telnet password must
have been configured on the router and also telnet access should not be
disabled on the specific router.
Before installing a new router you must provide a password for the telnet
access on the router, otherwise you will not be able to telnet to it.
Use the console to connect to the router:
[Router name] enable
Password: .[insert enable secret here]
[Router name]# sh run
Press [enter] until you see a sentence like: line vty 0 4 (see the example
below). Below this sentence you should see a password. If not then you
should provide a password. If a password is set but no exec line is seen like in
the example below, then telnet is blocked and you should unblock it.
Example:
Line vty 0 4
Password surpass
No exec
a. To Provide a telnet Password
Router#config t
Router(Config)#line vty 0 4
Router(Config)#login
Router(Config)#password [password name]
Press [Ctrl][z] and issue sh run to ensure that password has been set
b. To Unblock telnet Access on Router
Router#config t
Router(Config)#line vty 0 4
Router(Config)#exec
C:\>telnet 10.176.100.2
Password: .
[Router name]>enable
Password: .
[Router name]#
Backing Up Router Configuration
To copy the configuration from the router to the TFTP server you can use
thecopy run tftp command. It will backup the router configuration thats stored
in DRAM. Then you will be asked to enter the address of the TFTP server and
the name of the destination file on TFTP server like this:
[Router name] #copy run tftp to copy the running configuration to
TFTP server
Address or name of remote host []? 172.16.10.2 the ip address of TFTP
server
Destination filename [routername-confg]? /Backup/Router01.cfg the
folder path on the server where the configuration file will be stored)

Restoring Router Configuration
In this section Ill show you how to restore a running router with basic
configuration and also how to restore a new router with no basic configuration
both of which scenarios youll probably run into.

1. Restoring a Running Router with Basic
Configuration
In case the router has the basic configuration (i.e. router ports are assigned to
subnet), use the command copy TFTP run and then complete the rest of the
requirements like this:
[router name]# show run to see the running configuration

[router name]#copy tftp run to copy the configuration file from TFTP server to
the running configuration of the router

Address or name of remote host []?172.16.10.2 TFTP server address

Source filename[]?/Backup/Router01.cfg the configuration file to be copied to the
router

[router name]#show run

[router name]#show interfaces

[router name]#copy run start
We issue show run command to verify that the configuration has been copied
to the router. Use show interfaces command to ensure that the interfaces
where we have cables connected to them are up. Issue the command copy
run start to copy the configuration from running configuration (DRAM) to
Startup configuration (NVRAM).
The following is an example of what you will see on the screen when you
issue the show interfaces command:
Vlan1 is up, line protocol is up
.
.
.
fastethernet 0/1 is up, line protocol is up
.
.
.
fastethernet 0/2 is down, line protocol is down
.
.
.
Usually fastethernet ports are brought up on their own as soon as the ethernet
cable is attached to them. In case a certain port is still down after we have
connect a cable in it we use:
[Router name]#config t
[Router name](config)#int fastethernet0/[router port]
[Router name](config-if)#no shutdown
2. Restoring a New Router with No Basic
Configuration
a. Provide basic router configuration
In case we install a new router with no configuration, then we have to
incorporate this router into the subnet before restoring the final configuration.
We have to assign an IP address and subnet mask to interface Vlan1.
First we have to go through the old configuration files either from the old
router or from the tfrp server and look for the IP address and subnet that the
router was configured with, on its previous location. This information will look
like this:
interface vlan1
ip address [ip address] [subnet]
Make a note of both IP address and subnet and then log onto your new
router with the console cable using a hyperterminal. Issue passwords and
then issue the following:
[Router name]#config t
[Router name](Config)#int vlan1
[Router name](Config-if)#ip address [ip address] [subnet]
[Router name](Config-if)#no shutdown
Press [CTRL][Z]
[Router name]# show run to see that IP address on vlan1 has been set
b. Copy configuration from TFTP server to
the router
[Router name] #copy TFTP run
Address or name of remote host []?172.16.10.2
Source filename[]?/Backup/Router01.cfg
[router name]#show run
[router name]#show interfaces
[router name]#copy run start
My Advice: Save This Article in a Safe Place
This article has all the details of backing up and restoring configuration files
on Cisco switches/routers. Whatever you do dont underestimate this
information.
Believe me when I say, this should be your first and most important thing you
need to learn and apply in practice if you want to sleep peacefully at night.
My Advice:
Always do backups at frequent intervals.
Always save them in safe and secure places.
Always test them to see that they will operate as expected in case of real
need.



Manual 2 Cisco

Use a Terminal Emulation Program to Backup and Restore a
Configuration
A terminal emualation program can be used to back up and restore a configuration. This is a description
of the procedure using Microsoft Hyperterminal Terminal Emulation software:
1. If the configuration needs to be copied from another router, connect to that router through the
console or Telnet.
2. At the Router> prompt, issue the enable command, and provide the required password when
prompted.
The prompt changes to Router#, which indicates that the router is now in privileged mode.
3. Issue the terminal length 0 command in order to force the router to return the entire response
at once, rather than one screen at a time.
This allows you to capture the configuration without extraneous --more-- prompts generated
when the router responds one screen at a time.
4. On the HyperTerminal menu, choose Transfer > Capture Text.
The Capture Text window appears.
5. Name this file "config.txt."
6. Click Start in order to dismiss the Capture Text window and begin the capture.
7. Issue the show running-config command, and allow time for the router to complete its
response. You will see:
Building configuration...
followed by the configuration.
8. On the HyperTerminal menu, choose Transfer > Capture Text > Stop in order to end the
screen capture.
9. Open the config.txt file you created in any text editor, such as Notepad or Wordpad.
10. Search for and remove any line that starts with "AAA".
Note: This step is to remove any security commands that could lock you out of the router.
11. Save the file.
12. Connect to the router that needs the configuration.
13. Open the config.txt file.
14. Highlight the entire contents of the config.txt file.
You can do this by dragging the cursor from before the first character to after the last character
in the file while holding down the left mouse button. Alternatively, if you use Notepad, you can
choose Edit > Select All from the menu.
15. Copy the selected text to the Windows clipboard.
You can either choose Edit > Copy from the text editor menu, or hold down the CTRL key and
simultaneously press the Ckey in order to perform the copy.
16. Switch to the HyperTerminal window, and issue the configure terminal command at
the Router# prompt. Then press Enter.
17. Paste the configuration file into the router by selecting Edit > Paste to Host on the
HyperTerminal menu.
18. After the configuration has finished pasting and the router brings you back to the configuration
prompt, issue the copy running-config startup-config command in order to write the
configuration into memory.
19. Issue the exit command in order to return to the Router# prompt.

Вам также может понравиться