聪明文档网

聪明文档网

最新最全的文档下载
当前位置: 首页> 网络设备基本操作

网络设备基本操作

时间:2014-11-14 09:42:50    下载该word文档

网络设备基本操作

通过Console登录

本实验的主要任务是练习通过Console电缆连接进行设备配置的方法。试验前请保证路由器(交换机)的所有配置已经清空。

连接配置电缆

启动PC,运行超级终端

PC桌面上运行【开始】->【程序】->【附件】->【通信】->【超级终端】。填入一个任意名称,点击【确定】。

每秒位数为9600bps8位数据位、1位停止位、无奇偶校验和无流量控制

进入Console配置界面

用户视图的提示符为<系统名>

使用系统操作及文件操作的基本命令

进入系统视图

执行system-view命令进入系统视图。系统视图的提示符为[系统名]。执行quit命令可以从系统视图切换到用户视图。

练习使用帮助特性和补全

s? sysname ?

更改系统名称

[H3C]sysname YourName

[YourName]

更改系统时间

[YourName]display clock

17:28:07 UTC Mon 09/08/2008

[YourName]quit

clock datetime 10:20:30 10/01/2008

display clock

10:20:32 UTC Wed 10/01/2008

显示系统运行配置

display current-configuration

显示保存的配置

display saved-configuration

此时尚未保存配置,因此不存在saved-configuration

保存配置

默认配置文件名通常startup.cfg,某些版本为config.cfg

save

The current configuration will be written to the device. Are you sure? [Y/N]:

Please input the file name(*.cfg)[cf:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Now saving current configuration to the device.

Saving configuration cf:/startup.cfg. Please wait...

.

Configuration is saved to cf successfully.........

save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[cf:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

cf:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...

Now saving current configuration to the device.

Saving configuration cf:/startup.cfg. Please wait...

.

Configuration is saved to cf successfully.

由于执行了save命令,保存配置与运行配置一致。

删除和清空配置

[YourName]undo sysname

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

......

This command will reboot the device. Current configuration may be lost in next

startup if you continue. Continue? [Y/N]:Y

显示文件目录

pwd

cf:

dir

Directory of cf:/

0 drw- - Jan 19 2007 18:26:34 logfile

1 -rw- 16337860 Aug 03 2007 17:59:36 msr30-cmw520-r1206p01-si.bin

2 -rw- 739 Oct 01 2008 10:15:54 startup.cfg

249852 KB total (221648 KB free)

File system type of cf: FAT32

显示文本文件内容

more命令

改变当前工作路径

使cd命令

文件删除

savedirdeletedir命令

虽然删除了该文件,但是在删除该文件前后,为什么CF卡的可用内存空间却没有变化呢。那是因为使用delete命令删除文件时,被删除的文件被保存在回收站中,仍会占用存储空间。如果用户经常使用该命令删除文件,则可能导致设备的存储空间不足。如果要彻底删除回收站中的某个废弃文件,必须在文件的原归属目录下执行reset recycle-bin命令,才可以将回收站中的废弃文件彻底删除,以回收存储空间。

dir /all命令显示内容包括隐藏文件、隐藏子文件夹以及回收站中的原属于该目录下的文件的信息,回收站里的文件会以方括号“[ ]”标出。文件myconfig.cfg应该仍然存在于CF卡的回收站中。

reset recycle-bin命令清空回收站后,可发现文件列表中已经找不到myconfig.cfg文件,并且可用内存空间已经增加。

使用delete /unreserved命令删除一个文件,则该文件将被彻底删除,不能再恢复。其效果等同于执行delete命令之后,再在同一个目录下执行了reset recycle-bin命令。

通过Telnet登录

通过Console口配置Telnet用户

[YourName]local-user test

[YourName-luser-test] password simple 12345

[YourName-luser-test] service-type telnet

[YourName-luser-test] authorization-attribute level 0

[YourName-luser-test] quit

配置super口令

[YourName] super password level 3 simple H3C

配置登录欢迎信息

[YourName]header login

Please input banner content, and quit with the character '%'.

Welcome to H3C world!%

[YourName]

配置对Telnet用户使用缺省的本地认证

[YourName]user-interface vty 0 4

[YourName-ui-vty0-4]authentication-mode scheme

进入接口视图,配置以太口和PC网卡地址

[YourName]interface GigabitEthernet 0/1

[YourName-GigabitEthernet0/1]ip add 192.168.0.1 255.255.255.0

[YourName-GigabitEthernet0/1]

打开Telnet服务

[YourName]telnet server enable

% Telnet server has been started

使用Telnet登录

telnet 192.168.0.10

由于此时登录用户处于访问级别,所以只能看到并使用有限的几个命令。同时,超级终端上会有如下信息显示,表明源IP192.168.0.10的设备远程登入到路由器上。

%Oct 2 10:27:13:325 2008 YourName SHELL/4/LOGIN: test login from 192.168.0.10

更改登录用户级别

super 3

能使用的命令明显多于level0

保存配置,重新启动

使用savereboot命令

使用FTP上传下载系统文件

通过Console口配置FTP用户

[YourName]local-user test_ftp

[YourName-luser-test_ftp] password simple test_ftp

[YourName-luser-test_ftp] service-type ftp

[YourName-luser-test_ftp] level 3

打开FTP服务

[YourName]ftp server enable

Info: Start FTP server.

使用FTP登录

使用FTP上传文件

如果用户以Administrator登录PC,则默认的本地目录是C:\Documents and Settings\Administrator

使用FTP下载文件

dir 通常为startup.cfgconfig.cfg

使用TFTP上传下载系统文件

本实验以3CDaemon程序作为TFTP的服务器端。实际上任何支持TFTP服务的程序均可以使用。

启动TFTP服务器端程序

使用TFTP下载文件

tftp 192.168.0.10 get mysystem.sys

The file mysystem.sys exists. Overwrite it? [Y/N]:y

Verifying server file...

Deleting the old file, please wait...

File will be transferred in binary mode

Downloading file from remote tftp server, please wait...

TFTP: 913 bytes received in 0 second(s)

File downloaded successfully.

使用TFTP上传文件

tftp 192.168.0.10 put config.cfg

File will be transferred in binary mode

Sending file to remote tftp server. Please wait... \

TFTP: 940 bytes sent in 0 second(s).

File uploaded successfully.


实验1 网络设备基本操作 - 1 -

实验任务一: 通过Console登录 - 1 -

步骤一: 连接配置电缆 - 1 -

步骤二: 启动PC,运行超级终端 - 1 -

步骤三: 进入Console配置界面 - 1 -

实验任务二: 使用系统操作及文件操作的基本命令 - 1 -

步骤一: 进入系统视图 - 1 -

步骤二: 练习使用帮助特性和补全键 - 1 -

步骤三: 更改系统名称 - 1 -

步骤四: 更改系统时间 - 1 -

步骤五: 显示系统运行配置 - 1 -

步骤六: 显示保存的配置 - 2 -

步骤七: 保存配置 - 2 -

步骤八: 删除和清空配置 - 2 -

步骤九: 显示文件目录 - 2 -

步骤十: 显示文本文件内容 - 3 -

步骤十一: 改变当前工作路径 - 3 -

步骤十二: 文件删除 - 3 -

实验任务三: 通过Telnet登录 - 3 -

步骤一: 通过Console口配置Telnet用户 - 3 -

步骤二: 配置super口令 - 3 -

步骤三: 配置登录欢迎信息 - 3 -

步骤四: 配置对Telnet用户使用缺省的本地认证 - 4 -

步骤五: 进入接口视图,配置以太口和PC网卡地址 - 4 -

步骤六: 打开Telnet服务 - 4 -

步骤七: 使用Telnet登录 - 4 -

步骤八: 更改登录用户级别 - 4 -

步骤九: 保存配置,重新启动 - 4 -

实验任务四: 使用FTP上传下载系统文件 - 4 -

步骤一: 通过Console口配置FTP用户 - 4 -

步骤二: 打开FTP服务 - 4 -

步骤三: 使用FTP登录 - 4 -

步骤四: 使用FTP上传文件 - 4 -

步骤五: 使用FTP下载文件 - 5 -

实验任务五: 使用TFTP上传下载系统文件 - 5 -

步骤一: 启动TFTP服务器端程序 - 5 -

步骤二: 使用TFTP下载文件 - 5 -

步骤三: 使用TFTP上传文件 - 5 -

免费下载 Word文档免费下载: 网络设备基本操作

  • 29.8

    ¥45 每天只需1.0元
    1个月 推荐
  • 9.9

    ¥15
    1天
  • 59.8

    ¥90
    3个月

选择支付方式

  • 微信付款
郑重提醒:支付后,系统自动为您完成注册

请使用微信扫码支付(元)

订单号:
支付后,系统自动为您完成注册
遇到问题请联系 在线客服

常用手机号:
用于找回密码
图片验证码:
看不清?点击更换
短信验证码:
新密码:
 
绑定后可用手机号登录
请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系 在线客服