H3CNE实验手册
- 格式:doc
- 大小:59.50 KB
- 文档页数:16
实验1 网络设备的基本操纵之袁州冬雪创作
1.1 实验内容与方针
完成实验,您应该可以:
使用Console口登录设备
使用Telnet终端登录设备
掌握基本系统操纵饬令的使用
掌握基本文件操纵饬令的使用
使用FTP、TFTP上传下载文件
1.2 实验组图
图1-1 实验组网图
1.3 实验过程
本实验以一台MSR路由器作为演示设备,使用交换机亦可.
实验任务一:通过Console登录
本实验的主要任务是熟悉并掌握通过Console电缆毗连停止设备配置的方法.
步调一:毗连配置电缆
将PC的串口通过尺度Console电缆与路由器的Console口毗连.电缆的RJ-45头一端毗连路由器的Console口;9针RS-232接口一端毗连计算机的串行口.
步调二:启动PC,运行超等终端
在PC桌面上运行“开端/程序/附件/通信/超等终端”.填入一个任意称号,点击“确定”.如图所示:
从“毗连时使用”下拉列表框选择合适的COM口,并点击“确定”.如图所示:
这时弹出COM属性页面,点击“还原为默许值”,可以看见每秒位数为9600bps、8位数据位、1位停止位、无奇偶校验和无流量节制,点击“确定”.如图所示:
步调三:进入Console配置界面
再键入回车,即可见:“H3C_”提示符.
实验任务二:使用系统操纵及文件操纵的基本饬令
步调一:进入系统视图
完成实验任务一时,配置界面处于用户视图下,此时执行system-view饬令进入系统视图.
system-view
System View: return to User View with Ctrl+Z. [H3C]
此时提示符变成[***]形式,说明用户已经处于系统视图.
在系统视图下,执行quit饬令可以从系统视图切换到用户视图.
[H3C]quit
步调二:学习使用帮忙特性和补全键
H3C Comware平台支持对饬令行的输入帮忙和智能补全功能.
输入帮忙特性:在输入饬令时,如果忘记某一个饬令的称号,可以在配置视图下仅输入该饬令的前几个字符,然后键入,系统则会自动列车以刚才输入的前几个字符开首的所有饬令.当输入完一个饬令时,也可以用来检查紧随该饬令的下一个饬令参数.
[H3C]sys
[H3C]sysname
[H3C]sysname?
TEXT Host name (1 to 30 characters)
智能补全功能:在输入饬令时,不需要输入一条饬令的全部字符,仅输入前几个字符,再键入Tab键,系统会自动补全该饬令.如果有多个饬令都具有相同的前缀字符的时候,持续键入Tab,系统会在这几个饬令之间切换.
步调三:更改系统称号
使用sysname饬令更改系统称号.
[H3C]sysname AHPTC
[AHPTC]
步调四:显示系统运行配置
使用display current-configuration饬令显示系统当前运行的配置,由于使用的设备及模块分歧,操纵时显示的详细内容也会有所分歧.在如下配置信息中,请注意检查刚刚配置的sysname AHPTC饬令,同时请查阅接口信息,并与设备的实际接口和模块停止比对.
display current-configuration
#
version 5.20, Release 1509P01, Basic
#
sysname AHPTC
#
domain default enable system
#
vlan 1
# domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
interface Aux0
async mode flow
link-protocol ppp
#
interface Serial5/0
--------More---------
用空格键可以继续翻页显示,回车键停止翻行显示,或使用Ctrl+C竣事显示.
步调五:保管配置
使用save饬令保管配置.
save
The current configuration will be written to the device.
Are you sure? [Y/N]:y
选择Y,确定将当前运行配置写进设备存储介质中.
Please input the file name(*.cfg)[cf:/startup.cfg]
系统提示请输入保管配置文件的文件名,注意文件名的格式为*.cfg.该实验中系统默许将配置文件保管在CF卡中,保管后文件名为config.cfg,如果不更改系统默许保管的文件名,请按回车键.
Validating file. Please wait...
Now saving current configuration to the device.
Saving configuration cf:/config.cfg. Please wait...
.
Configuration is saved to cf successfully.........
这是第一次保管配置文件的过程.如果以后再次以config.cfg保管配置文件,则显示如下:
save
The current configuration will be written to the device.
Are you sure? [Y/N]:y
Please input the file name(*.cfg)[cf:/config.cfg]
cf:/config.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Now saving current configuration to the device. Saving configuration cf:/config.cfg. Please wait...
.
Configuration is saved to cf successfully.
显示保管的配置:
display saved-configuration
#
version 5.20, Release 1509P01, Basic
#
sysname AHPTC
#
domain default enable system
#
vlan 1
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
interface Aux0
async mode flow
link-protocol ppp
#
interface Serial5/0
link-protocol ppp
#
interface Serial5/1
link-protocol ppp
#
interface Serial5/2
link-protocol ppp
#
interface Serial5/3
link-protocol ppp
#
interface NULL0
# interface GigabitEthernet0/0
port link-mode route
#
interface GigabitEthernet0/1
port link-mode route
#
user-interface con 0
user-interface aux 0
user-interface vty 0 4
#
Return
由于执行了save饬令,保管配置与运行配置一致.
步调六:删除和清空配置
当需要删除某条饬令时,可使用undo饬令停止逐条删除.例如删除sysname饬令后,系统称号恢复成H3C.
[AHPTC]undo sysname
[H3C]
当需要恢复到出厂默许配置时,首先在用户视图下执行reset
saved-configuration饬令用于清空保管配置(只是清除保管配置,当前配置还是存在的),再执行reboot重启设备后,配置恢复到出厂默许配置.
[AHPTC]quit
reset saved-configuration
The saved configuration file will be erased. Are you sure?
[Y/N]:y
Configuration file in cf is being cleared.
Please wait ...
........
Configuration file in cf is cleared.
reboot
Start to check configuration with next startup
configuration file, please wait.........DONE!
This command will reboot the device. Current
configuration may be lost in next startup if you continue.
Continue? [Y/N]:Y
步调七:显示文件目次
使用dir饬令显示CF卡上所有文件列表.
dir