Lab15 (1130248)
Текст из файла
Лабораторная работа № 15. Конфигурирование маршрутизатора, посредством программы "HyperTerminal"
Objectives:
-
Capture the running configuration of a router to an ASCII text file with HyperTerminal
-
Edit or modify the captured text file with a text editor such as Notepad
-
Upload the text file to configure another router using HyperTerminal
Step 1 - Login to the router
Explanation: Connect to the router and login. Enter the password cisco if prompted.
Step 2 - Enter the Privileged EXEC mode.
Task:
a. From user EXEC mode, enter privileged EXEC mode using the enable command.
b. Enter the enable password of class.
Explanation: Enter the enable mode from the User EXEC mode.
Step 3 - Enter the show running-config (abbreviated: sh run).
Task: Enter show running-config at the command prompt.
Explanation: Using show running-config command displays the active configuration file for the router that is stored in RAM.
1. List all of the interfaces on the router: (Answers will vary)
Step 4 - Start capturing the configuration file.
Task: Start the process of copying the router configuration to a text file.
Explanation: HyperTerminal will capture all text displayed on its screen to a text file.
In HyperTerminal click on the "Transfer" menu option, then click on "Capture Text." When prompted, provide a path and name to capture the configuration to. Use the name of the router for the filename and use .txt for the extension.
2. Write down the name and location of this file:
Step 5- Enter the show running-config (abbreviated: sh run).
Task: Enter show running-config at the command prompt.
Explanation: Using show running-config command displays the active configuration file for the router that is stored in RAM. Enter the sh run command. Press the space bar when the "-More -" prompt appears.
Step 6 - Stop capturing the configuration file.
Task: Discontinue capturing the router configuration to a text file.
Explanation: HyperTerminal will stop capturing any text displayed on its screen.
In HyperTerminal click on the "Transfer" menu option, then click on "Capture Text." A new menu appears. Click on "Stop."
Step 7 - Clean up captured configuration file.
Task: Remove any unnecessary information from the captured configuration.
Explanation: The captured text file will have information not required for configuring a router,
for example the "- More -" prompts. Note that the exclamation mark "!" is the comment
command in a router configuration.
Click on the Windows Start button, then click on "Run" and type "Notepad" and press the enter key. In Notepad click on File/Open. Find the file you made note of in Step 4, and click "Open." Delete the lines that say:
-
Sh run
-
Building configuration...
-
Current configuration:
Delete each line that has the "- More -" prompt. Note that there will be characters that appear as black boxes on these lines. Delete any lines that appear after the word "End". Save the clean version of the configuration by clicking on File/Save. Close Notepad (File/Close) and switch back to HyperTerminal.
Step 8 - Erase the startup configuration.
Task: Enter command erase startup-config (abbreviated: erase start) at the router prompt.
Explanation: The erase startup-config command deletes the configuration file from NVRAM. Caution should be used with this command since the router may execute it without prompting for confirmation.
Step 9 - Confirm that startup configuration has been deleted.
Task: Enter show startup-config (abbreviated: sh start) at the router prompt.
Explanation: This step confirms that the router's startup configuration will not be available
upon restarting of the router.
3. What does the router show after this command is entered?
Step 10 - Restart the router.
Task: Enter reload at the router prompt.
Explanation: The reload command will reboot the router. When asked to proceed with the reload, enter Y and press the enter key. Note that the router displays the message: "Notice: NVRAM invalid, possibly due to write erase." When prompted to enter the initial configuration dialog, type N and press enter. When prompted to terminate autoinstall type Y and press enter. Press enter again an additional time.
4. What does the prompt look like?
Step 11 - Reconfigure the router from the text file you saved.
Task: Use the send file command in HyperTerminal to copy the new configuration.
Explanation: The cleaned up version of the router configuration file from step 7 will be copied
into the area of memory known as the clipboard.
In HyperTerminal, enter the command enable to change in to Privileged EXEC mode.
5. Why was a password not required?
Enter global config mode by entering the command configure terminal (abbreviated config t). Click on Transfer/Send/Text File. Select the file you saved in step 4. Each line in the text file will be entered for you, as though you were typing them yourself.
6. What does the router prompt change to?
7. What command changes the router prompt?
Press and hold the Control key then press the Z key to exit global configuration mode.
Step 12 - Save new configuration file.
Task: Use the command copy running-config startup-config (abbreviated: copy run start) to save the newly created router configuration.
Explanation: The copy running-config startup-config command copies the active router configuration from RAM into NVRAM.
Verify that the running configuration is correct by using the show running-config command (abbreviated show run). Enter the command copy start run at the router prompt.
Step 13 - Verify new configuration.
Task: Use the command reload command to restart the router.
Explanation: Verify that the new configuration has been saved to NVRAM by restarting the router.
Enter the command reload. When prompted to confirm press Y, this will restart the router. Once the router restarts, press the enter key again.
8. What does the router prompt look like?
3
Характеристики
Тип файла документ
Документы такого типа открываются такими программами, как Microsoft Office Word на компьютерах Windows, Apple Pages на компьютерах Mac, Open Office - бесплатная альтернатива на различных платформах, в том числе Linux. Наиболее простым и современным решением будут Google документы, так как открываются онлайн без скачивания прямо в браузере на любой платформе. Существуют российские качественные аналоги, например от Яндекса.
Будьте внимательны на мобильных устройствах, так как там используются упрощённый функционал даже в официальном приложении от Microsoft, поэтому для просмотра скачивайте PDF-версию. А если нужно редактировать файл, то используйте оригинальный файл.
Файлы такого типа обычно разбиты на страницы, а текст может быть форматированным (жирный, курсив, выбор шрифта, таблицы и т.п.), а также в него можно добавлять изображения. Формат идеально подходит для рефератов, докладов и РПЗ курсовых проектов, которые необходимо распечатать. Кстати перед печатью также сохраняйте файл в PDF, так как принтер может начудить со шрифтами.