1.清空配置文件
reset saved-configuration
2.进入和退出接口视图
[AR1] interface Ethernet 0/0/0
[AR1-Ethernet0/0/0]
[AR1-Ethernet0/0/0]quit
[AR1]
3.为设备命名
[Huawei]sysname AR1
[AR1]
4.设置telnet密码
[AR1]user-interface vty 0 4
[AR1-ui-vty0-4]authentication-mode password
[AR1-ui-vty0-4]set authentication password cipher yeslab
[AR1-ui-vty0-4]user privilege level 3
5.显示系统运行配置信息
[AR1]displaycurrent-configuration
#
sysname R1
#
6.配置IP地址
[AR1] interface Ethernet0/0/0
[AR1-Ethernet0/0/0]ip address 12.1.1.1 255.255.255.0
[AR2] interface Ethernet0/0/0
[AR2-Ethernet0/0/0]ip address 12.1.1.2 255.255.255.0
7.显示接口状态
[AR1]display interface Ethernet 0/0/0
Ethernet0/0/0 current state : UP
Line protocol current state : UP
Last line protocol up time : 2013-05-14 11:47:52 UTC-08:00
Description:
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 12.1.1.1/24
Broadcast: 1 packets
Output:
Unicast: 11 packets, Multicast: 0 packets
Broadcast: 0 packets
Input bandwidth utilization : 0%
Output bandwidth utilization : 0%
8.测试网络连通性
[AR1]ping 12.1.1.2
9.跟踪路径
[AR1]tracert 12.1.1.2
traceroute to 12.1.1.2(12.1.1.2), max hops: 30 ,packet length: 40,press CTRL_C to break
1 12.1.1.2 30 ms 50 ms 30 ms
10.查看路由表
[AR1]display ip routing
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 4 Routes : 4
11.设置空闲超时时间为20分钟,默认为10分钟。
[R1]user-interface console 0
[R1-ui-console0]authentication-mode password
[R1-ui-console0]set authentication password simple huawei
[R1-ui-console0]idle-timeout 20 0
12.使用display this命令检查配置结果.
[R1-ui-console0]display this
[V200R001C01SPC300]#
user-interface con 0
authentication-mode password
set authentication password simple huaweiidle-timeout 20 0
13.使用display interface命令查看接口详细信息。
[R1-Serial1/0/0]display interface Serial1/0/0
14.从R1使用Telnet方式登录到R2。
<R1>telnet 10.0.12.2
Press CTRL_]to quit telnet mode
Trying 10.0.12.2 ...
Connected to 10.0.12.2 ...
Login authentication
Username:huawei
Password:
15.R2配置为FTP服务器。在R2上启用FTP服务器功能。
[R2]ftp server enable
Info:Succeeded in starting the FTP server
[R2]set default ftp-directory sd1:/
[R2]aaa
[R2-aaa]local-user ftpuser password cipher huawei
[R2-aaa]local-user ftpuser service-type ftp
[R2-aaa]local-user ftpuser privilege level 15
尝试从R1用FTP工具登录到R2。
<R1>ftp 10.0.12.2
Trying 10.0.12.2 ...
Press CTRL+K to abort
Connected to 10.0.12.2.220
FTP service ready.
User(10.0.12.2:(none)):ftpuser
331 Password required for ftpuser.
Enter password:
230 User logged in.[R1-ftp]
15.将文件“file-from-r1.bak”从R2下载到R1,并更名为“file-from-r2.bak”。
[R1-ftp]get file-from-r1.bak file-from-r2.bak200 Port command okay.
16.删除R2上的文件“file-from-r1.bak”。
<R2>delete /unreserved file-from-r1.bak
17.保存当前的配置文件。
<R1>save
18.显示以保存的配置文件。
<R1>display saved-configuration
[V200R001C01SPC300]
19.显示当前生效的配置信息。
<R1>display current-configuration
[V200R001C01SPC300]
#sysname R1
#
board add 0/1 1SA
board add 0/2 1SA
board add 0/3 2FE
······output omit······
20.清除存储的配置文件。
<R1>reset saved-configuration
This will delete the configuration in the flash memory.The device configurations will be erased to reconfigure.Are you sure? (y/n)[n]:y
Clear the configuration in the device successfully.
<R1>
21.使用reboot命令重启路由器。
<R1>reboot