HCNA入門-eNsp-HCNA2.0 Lab-Lab 2-1 Basic Device Navigation and Configuration (Unconfigured) 解答

Scenario:
A company has purchased two AR G3 routers that require commissioning before they can be used in the enterprise network. 
Items to be commissioned include setting device names, the system time, passwords and file management.

Learning Objectives:  
As part of this lab section, you are expected to achieve the following tasks:
1.Configure the connection from an end system to a device supporting VRP using terminal emulation software.
2.Configure device system parameters including device name, the system time, and the system time zone.
3.Configure the console port idle timeout duration.
4.Configure the login information.
5.Configure the login password and super password.
6.Save and delete a configuration file.
7.Configure IP addresses for router interfaces.
8.Test the connectivity between two directly connected routers.
9.Restart a device using VRP.

 

實際操作指令:

1、啓動設備。用securecrt連接R1/R3或直接雙擊R1/R3打開命令行。

2、配置設備名稱、系統時間、系統時區

修改設備名稱爲R1/R3

修改R1

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1

修改R3

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R3

修改系統時間

<R1>clock timezone Local add 08:00:00
<R1>clock datetime 17:28:00 2019-10-16

執行display clock命令查看生效的新系統時間

<R1>display clock
2019-10-16 17:30:05
Wednesday
Time Zone(Local) : UTC+08:00

3、配置console口空閒時間爲20分鐘0秒

[R1]user-interface console 0

[R1-ui-console0]idle-timeout 20 0

 

4、 配置登陸信息

[R1]header ?
  login  Specify the login authentication banner
  shell  Specify the start banner of session

[R1]header login information "wlecome to login R1"

這一句信息在設置密碼後,輸入登陸密碼前會提示。

 

[R1]header shell information "think twice before you do "

這一句在登陸命令行前顯示

5、配置登陸密碼

[R1]user-interface console 0
[R1-ui-console0]authentication-mode password 
Please configure the login password (maximum length 16):******

6、保存配置

<R1>save

7、配置IP地址

[R1]int g0/0/0

[R1-GigabitEthernet0/0/0]ip address 10.0.13.1 24
Oct 17 2019 02:35:49+08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. 

[R3]int g0/0/0

[R3-GigabitEthernet0/0/0]ip address 10.0.13.3 24

 

8、測試連通性

<R1>ping 10.0.13.3
  PING 10.0.13.3: 56  data bytes, press CTRL_C to break
    Reply from 10.0.13.3: bytes=56 Sequence=1 ttl=255 time=70 ms
    Reply from 10.0.13.3: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 10.0.13.3: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 10.0.13.3: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 10.0.13.3: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 10.0.13.3 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/32/70 ms

[R3]ping 10.0.13.1
  PING 10.0.13.1: 56  data bytes, press CTRL_C to break
    Reply from 10.0.13.1: bytes=56 Sequence=1 ttl=255 time=30 ms
    Reply from 10.0.13.1: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 10.0.13.1: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 10.0.13.1: bytes=56 Sequence=4 ttl=255 time=10 ms
    Reply from 10.0.13.1: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 10.0.13.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/22/30 ms

 

9 重啓設備

<R1>reboot
Info: The system is comparing the configuration, please wait.
Warning: All the configuration will be saved to the next startup configuration. Continue ? [y/n]:y
  It will take several minutes to save configuration file, please wait......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
System will reboot! Continue ? [y/n]:y
Info: system is rebooting ,please wait...
 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章