H3C实验报告大全【含18个实验】0-基本命令_第1页
H3C实验报告大全【含18个实验】0-基本命令_第2页
H3C实验报告大全【含18个实验】0-基本命令_第3页
H3C实验报告大全【含18个实验】0-基本命令_第4页
H3C实验报告大全【含18个实验】0-基本命令_第5页
已阅读5页,还剩5页未读 继续免费阅读

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、目录在最后面进入各个视图的命令1.设置时间-用户视图下<H3C>clock datetime ? TIME Specify the time (HH:MM:SS)<H3C>clock datetime 19:29:00 ? DATE Specify the date from 2000 to 2035 (MM/DD/YYYY or YYYY/MM/DD)<H3C>clock datetime 19:29:00 2010/11/11<H3C>display clock19:29:08 UTC Thu 11/11/2010<H3C>2.

2、配置主机名-系统视图H3Csysname H3Cwang3.查看历史命令-用户以上H3Cwangdisplay history-command sys sysname H3C sysname H3Cwang display history-command quit display history-command Sys4. 配置历史命令缓冲大小-接口视图(console为准)wanguser-interface console 0wang-ui-console0history-command max-size 30 /配置缓冲区大小wang-ui-console0undo history-co

3、mmand max-size /还原默认值5.配置Header进入用户视图的提示信息-系统视图 incoming:登录终端用户界面时的提示信息。Header 3种类型 login:登录验证时的提示信息。 Vty模式 shell:进入用户视图时的提示信息。 Console口此处介绍shellH3Cheader shell %Da jia hao .wo shi gao chengwang!% /“%”为TEXT 的起始字符H3Cquit* Copyright (c) 2004-2007 Hangzhou H3C Tech. Co., Ltd. All rights reserved. * Wit

4、hout the owner's prior written consent, * no decompiling or reverse-engineering shall be allowed. *User interface con0 is available.Please press ENTER.Da jia hao .wo shi gao chengwang!-上面设置的信息<H3C>系统支持两种输入方式:一种方式为所有内容在同一行输入,此时包括命令关键字在内总共可以输入255 个字符;另一种方式为所有内容可以通过按<回车>键分多行输入,此时不包括命令关键

5、字在内总共可以输入1004 个字符(包括不可见字符)。6. 配置热键-hotkey-系统视图Hotkey作用hotkey 命令用来为某一快捷键指定相应的命令行。undo hotkey 命令用来恢复系统的默认值。 查看热键hotkeyH3Cdisplay hotkey /显示热键 - HOTKEY - =Defined hotkeys= /系统默认定义的3个热键 Hotkeys Command CTRL_G display current-configuration 显示当前配置CTRL_L display ip routing-table 显示路由表信息CTRL_O undo debuggin

6、g all 停止所有调试信息的输出 =Undefined hotkeys= /没有定义的2个热键,我们可以自己设定Hotkeys Command CTRL_T NULL 这才是我们需要定义的热键,只有两个,不过上面3个可以修改CTRL_U NULL =System hotkeys= /系统热键Hotkeys FunctionCTRL_A Move the cursor to the beginning of the current line.CTRL_B Move the cursor one character left.CTRL_C Stop current command functio

7、n.CTRL_D Erase current character.CTRL_E Move the cursor to the end of the current line.CTRL_F Move the cursor one character right.CTRL_H Erase the character left of the cursor.CTRL_K Kill outgoing connection.CTRL_N Display the next command from the history buffer.CTRL_P Display the previous command

8、from the history buffer.CTRL_R Redisplay the current line.CTRL_V Paste text from the clipboard.CTRL_W Delete the word left of the cursor.CTRL_X Delete all characters up to the cursor.CTRL_Y Delete all characters after the cursor.CTRL_Z Return to the User View.CTRL_ Kill incoming connection or redire

9、ct connection.ESC_B Move the cursor one word back.ESC_D Delete remainder of word.ESC_F Move the cursor forward one word.ESC_N Move the cursor down a line.ESC_P Move the cursor up a line.ESC_< Specify the beginning of clipboard.ESC_> Specify the end of clipboard.# 将命令display tcp status 与快捷键CTRL

10、_T 关联。H3C hotkey CTRL_T display tcp status7. 保存当前配置-用户图示(console)以上<H3C>save /此种保存只默认保存为Startup.cfg ,系统默认是加载此文件 The current configuration will be written to the device. Are you sure? Y/N:y Please input the file name(*.cfg)cf:/startup.cfg /默认保存为cf:/startup.cfg(To leave the existing filename unc

11、hanged, 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.<H3C><H3C>save 123.cfg /保存为123.cfg,系统启动不会加载此文件The current configuration will be saved

12、 to cf:/123.cfg. Continue? Y/N:yNow saving current configuration to the device.Saving configuration cf:/123.cfg. Please wait.Configuration is saved to cf successfully.<H3C>save saved-configuration /保存当前的设置 8.查看、删除已经保存配置文件-用户图示(console)以上<H3C>display saved-configuration /显示已经保存的内容<H3C&

13、gt;reset saved-configuration /删除已经保存的内容1<H3C>delete startup.cfg /删除已经保存的内容2Delete cf:/startup.cfg?Y/N:y %Delete file cf:/startup.cfg.Done.删除文件-delete删除目录-rmdir9. 配置console口密码方法一:H3Cuser-interface console 0H3C-ui-console0authentication-mode passwordH3C-ui-console0set authentication password sim

14、ple 123456方法二:H3Cuser-interface console 0H3C-ui-console0authentication-mode schemeH3Clocal-user wnt H3C-luser-wntpassword cipher 123 H3C-luser-wntservice-type ? dvpn DVPN service type ftp FTP service type lan-access LAN-ACCESS service type pad X25-pad service type ppp Specify user type to ppp ssh Se

15、cure Shell service type telnet TELNET service type terminal TERMINAL service typeH3C-luser-wntservice-type terminalH3C-luser-wntlevel 1H3Csuper password level 3 cipher 32110. 破解console口密码破解路由器console密码破解交换机console密码11.指定下次启动的配置文件-用户视图<H3C>startup saved-configuration wang.cfg12.查看启动配置文件-用户视图<

16、;H3C>display startup 13.指定下次启动加载的应用程序文件<H3C>boot-loader file wang.bin14.显示下次启动加载的应用程序文件<H3C>display boot-loader15. 命令调试debugging-用户视图<H3C>terminal debugging /使用debugging必须使用的命令-打开调试信息的屏幕输出开关<H3C>display debugging / 查看哪些调试信息开关是开着的IP packet debugging is on <H3C>termina

17、l monitor /开启控制台对系统信息的监视功能,默认已开启16. 使用ping命令-用户视图完整的ping命令,用于下面参考<H3C>ping PING : 56 data bytes, press CTRL_C to break Reply from : bytes=56 Sequence=1 ttl=255 time=10 ms Reply from : bytes=56 Sequence=2 ttl=255 time=16 ms Reply from : bytes=56 Sequence=3 tt

18、l=255 time=20 ms Reply from : bytes=56 Sequence=4 ttl=255 time=15 ms Reply from : bytes=56 Sequence=5 ttl=255 time=1 ms - ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet lossround-trip min/avg/max = 1/12/20 ms<H3C>ping ? -a指定源地址 例:<H3C>pi

19、ng -a 源地址 目的地址 -c指定发送报文的次数 例:<H3C>ping -c 2 /ping两次 -h指定报文的TTL值,1255,默认为255 -m指定发送报文的时间间隔,165535,默认200毫秒 -r 记录路由,默认是不记录路由的 -s指定所发送报文的长度,默认为56字节,208100 -t 指定超时时间,默认200毫秒,16553517.使用tracert命令-用户视图<H3C>tracert ? -a指明源地址 -f指定一个初始TTL值,默认为1 -m指定一个最大TTL值,默认为30 -p指明目的设备的UDP端口号,默

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论