基本配置命令
基本配置命令
目录 目录 第1章系统管理命令 11配置文件管理命令 1.1.1 copy 1.1.2 delete 1.1.3 dir 1.1.4 download cO 11123345 1.1.5 eraserom 1.1.7 upload co 1.1. 8 download 1.1.9 upload... 12基本系统管理命令 1.2.1 boot flash 1.2.2cd 1.2.3 chram 1.2.4 date 1.25md. 1.27rd. 1.2.8 rename 1.2.9 reboot 1.2.10aias 1.2.11 boot system flash 1.2.12 help 1.2.13 history 1214jo 1.2. 15 debug job 1.2.16 job 1.2. 17 show alias 00123344566780022334 1.2.18 show tech-support 13HTTP配置命令 1.3.1iphttpaccess-class 1.3.2iphttpport 1.3.3iphttpserver 第2章终端服务配置命令 21 Telnet配置命令 2.1.1 telnet. 2.1.2 ip telnet 213c-sh6+(挂起当前 telnet连接) 2. 1. 4 where 2.1.5 resume
目录 目 录 第 1 章 系统管理命令.................................................................................................................................................... 1 1.1 配置文件管理命令.......................................................................................................................................... 1 1.1.1 copy........................................................................................................................................................... 1 1.1.2 delete......................................................................................................................................................... 2 1.1.3 dir .............................................................................................................................................................. 3 1.1.4 download c0 .............................................................................................................................................. 3 1.1.5 eraserom................................................................................................................................................... 4 1.1.6 more .......................................................................................................................................................... 5 1.1.7 upload c0................................................................................................................................................... 6 1.1.8 download................................................................................................................................................... 6 1.1.9 upload........................................................................................................................................................ 7 1.2 基本系统管理命令.......................................................................................................................................... 8 1.2.1 boot flash................................................................................................................................................... 9 1.2.2 cd............................................................................................................................................................. 10 1.2.3 chram ...................................................................................................................................................... 10 1.2.4 date ......................................................................................................................................................... 11 1.2.5 md ........................................................................................................................................................... 12 1.2.6 pwd.......................................................................................................................................................... 13 1.2.7 rd ............................................................................................................................................................. 13 1.2.8 rename .................................................................................................................................................... 14 1.2.9 reboot ...................................................................................................................................................... 14 1.2.10 alias....................................................................................................................................................... 15 1.2.11 boot system flash................................................................................................................................... 16 1.2.12 help........................................................................................................................................................ 16 1.2.13 history.................................................................................................................................................... 17 1.2.14 job.......................................................................................................................................................... 18 1.2.15 debug job............................................................................................................................................... 20 1.2.16 jobd........................................................................................................................................................ 20 1.2.17 show alias.............................................................................................................................................. 21 1.2.18 show tech – support .............................................................................................................................. 22 1.3 HTTP 配置命令 ................................................................................................................................................ 23 1.3.1 ip http access-class................................................................................................................................. 23 1.3.2 ip http port ............................................................................................................................................... 24 1.3.3 ip http server............................................................................................................................................ 25 第 2 章 终端服务配置命令 ......................................................................................................................................... 26 2.1 Telnet 配置命令 ................................................................................................................................................ 26 2.1.1 telnet........................................................................................................................................................ 26 2.1.2 ip telnet.................................................................................................................................................... 28 2.1.3 ctrl-shift-6+x(挂起当前 telnet 连接)............................................................................................... 30 2.1.4 where....................................................................................................................................................... 31 2.1.5 resume .................................................................................................................................................... 32 - I -
目录 2.1.6 disconnect 2.1.7 switchkey.. 2.1.8 switches 3455 2.1.10 clear telnet 2.1.11 show telnet 2.1.12 debug telnet 22Rogn配置命令 2.2. 1 rlogin 23终端配置命令 2.3.1 attach-port 2.3.2 autocommand 2.3.3 clear line 2.3.4 connect 23.5 disconnect.… 2.3.6 exec-timeout 2.3.7 length.... 2.3.8 line 2.3.9 location 2.3. 11 monitor 2. 3. 12 no debug all 2.3.13 password 4455664788890 2. 3. 14 resume 2.3. 15 printer enable 2.3.16 printer start 2.3.17 printer stop 2.3. 18 script activation 2.3.19 script callback 52 2.3.20 script connection 52 2.3.21 script dialer. 2.3.22 switchkey 2.3. 23 script reset 2.3. 24 script startup 2.3.25 s equence-chaI 23.26 show debu 2.3.27 show line 2.3. 28 show ty-statug 2.3.29 switchmsg 2. 3. 30 terminal leng 2.3 31 terminal monitor 2.3. 32 terminal width 2.3. 33 terminal-type 4455657789500 2. 3. 34 where 第3章网络管理配置命令…… 62
目录 2.1.6 disconnect ............................................................................................................................................... 33 2.1.7 switchkey................................................................................................................................................. 34 2.1.8 switchmsg................................................................................................................................................ 35 2.1.9 sequence-char......................................................................................................................................... 35 2.1.10 clear telnet............................................................................................................................................. 37 2.1.11 show telnet ............................................................................................................................................ 38 2.1.12 debug telnet........................................................................................................................................... 39 2.2 Rlogin 配置命令................................................................................................................................................ 40 2.2.1 rlogin........................................................................................................................................................ 40 2.3 终端配置命令................................................................................................................................................. 41 2.3.1 attach-port ............................................................................................................................................... 42 2.3.2 autocommand.......................................................................................................................................... 43 2.3.3 clear line.................................................................................................................................................. 44 2.3.4 connect.................................................................................................................................................... 44 2.3.5 disconnect ............................................................................................................................................... 45 2.3.6 exec-timeout............................................................................................................................................ 45 2.3.7 length....................................................................................................................................................... 46 2.3.8 line........................................................................................................................................................... 46 2.3.9 location.................................................................................................................................................... 47 2.3.10 login authentication ............................................................................................................................... 47 2.3.11 monitor................................................................................................................................................... 48 2.3.12 no debug all........................................................................................................................................... 48 2.3.13 password............................................................................................................................................... 48 2.3.14 resume .................................................................................................................................................. 49 2.3.15 printer enable ........................................................................................................................................ 50 2.3.16 printer start ............................................................................................................................................ 50 2.3.17 printer stop ............................................................................................................................................ 51 2.3.18 script activation...................................................................................................................................... 51 2.3.19 script callback........................................................................................................................................ 52 2.3.20 script connection ................................................................................................................................... 52 2.3.21 script dialer............................................................................................................................................ 53 2.3.22 switchkey............................................................................................................................................... 53 2.3.23 script reset............................................................................................................................................. 54 2.3.24 script startup.......................................................................................................................................... 54 2.3.25 s equence-char...................................................................................................................................... 55 2.3.26 show debug........................................................................................................................................... 55 2.3.27 show line ............................................................................................................................................... 56 2.3.28 show tty-status ...................................................................................................................................... 56 2.3.29 switchmsg.............................................................................................................................................. 57 2.3.30 terminal length....................................................................................................................................... 57 2.3.31 terminal monitor..................................................................................................................................... 58 2.3.32 terminal width ........................................................................................................................................ 59 2.3.33 terminal-type.......................................................................................................................................... 59 2.3.34 where..................................................................................................................................................... 60 2.3.35 width...................................................................................................................................................... 60 第 3 章 网络管理配置命令 ......................................................................................................................................... 62 - II -
目录 31SNMP配置命令 3.1.1 snmp-server community 3.1.2 snmp-server contact 3.13 snmp-server host.…… 64 3.1.4 snmp-server location.... 3.1.5 snmp-server packetsize 3. 1.6 snmp-server queue-length 3.1.7 snmp-server trap-source 3.1.8 snmp-server trap-timeout 3.1.9 snmp-server view 3.1.10 show snmp 3.1.11 debug snmp 32RMON配置命令 3.2.1 rmon alarm 3.2.2 rmon event 56780013566739 3.2.3 rmon collection stat 3.2.4 rmon collection history 3.2.5 show rmon 33PDP配置命令 3.3. 1 pdp enable 3.3.2 pdp holdtime.... 3.3. 4 pdp tim 399908828 3.3.5 show pdp traffic 3.3.6 show pdp neighbor 第4章维护与调试工具命令 41网络测试工具命令 4.1.1 42故障诊断命令 4.2.1 4.2.2 logging buffered 4.2.3 logging console 4.2. 4 logging facility 4.2.5 logging monitor 426 logging on.… 4.2.7 logging trap 4.2.8 service timestamps 4.2.9 clear logging 886888992999880 4.2.10 show break 4.2. 11 show controller 4.2.12 show debug 4.2. 13 show logging
目录 3.1 SNMP 配置命令 ............................................................................................................................................... 62 3.1.1 snmp-server community.......................................................................................................................... 62 3.1.2 snmp-server contact................................................................................................................................ 63 3.1.3 snmp-server host..................................................................................................................................... 64 3.1.4 snmp-server location............................................................................................................................... 65 3.1.5 snmp-server packetsize .......................................................................................................................... 66 3.1.6 snmp-server queue-length ...................................................................................................................... 67 3.1.7 snmp-server trap-source ......................................................................................................................... 68 3.1.8 snmp-server trap-timeout ........................................................................................................................ 69 3.1.9 snmp-server view.................................................................................................................................... 70 3.1.10 show snmp ............................................................................................................................................ 71 3.1.11 debug snmp........................................................................................................................................... 73 3.2 RMON 配置命令............................................................................................................................................... 75 3.2.1 rmon alarm.............................................................................................................................................. 76 3.2.2 rmon event .............................................................................................................................................. 76 3.2.3 rmon collection stat ................................................................................................................................. 77 3.2.4 rmon collection history............................................................................................................................. 78 3.2.5 show rmon............................................................................................................................................... 79 3.3 PDP 配置命令 .................................................................................................................................................. 79 3.3.1 pdp enable............................................................................................................................................... 79 3.3.2 pdp holdtime............................................................................................................................................ 80 3.3.3 pdp run .................................................................................................................................................... 81 3.3.4 pdp timer ................................................................................................................................................. 81 3.3.5 show pdp traffic ....................................................................................................................................... 82 3.3.6 show pdp neighbor.................................................................................................................................. 83 第 4 章 维护与调试工具命令..................................................................................................................................... 85 4.1 网络测试工具命令........................................................................................................................................ 85 4.1.1 ping.......................................................................................................................................................... 85 4.2 故障诊断命令................................................................................................................................................. 86 4.2.1 logging..................................................................................................................................................... 86 4.2.2 logging buffered....................................................................................................................................... 87 4.2.3 logging console ....................................................................................................................................... 88 4.2.4 logging facility.......................................................................................................................................... 90 4.2.5 logging monitor........................................................................................................................................ 91 4.2.6 logging on................................................................................................................................................ 92 4.2.7 logging trap.............................................................................................................................................. 94 4.2.8 service timestamps.................................................................................................................................. 95 4.2.9 clear logging............................................................................................................................................ 96 4.2.10 show break............................................................................................................................................ 96 4.2.11 show controller ...................................................................................................................................... 98 4.2.12 show debug......................................................................................................................................... 100 4.2.13 show logging ....................................................................................................................................... 101 - III -
01-基础配置命令 第1章系统管理命令 1.1配置文件管理命令 配置文件管理命令包括: ● delete download eraserom more ● download 1.1.1co 使用copy命令可以从TFTP服务器读取文件到路由器,也可以将路由器文件系统中的某 个文件写到TFTP服务器 Copy (tftp< filename>I flash<: filename>] flash filename> titp< filename>] 参数 参数 参数说明 titp< filename> 当其作为第一个参数时表示从tp服务器读取文件作为第二个参数时表示 向tp服务器写文件。 Filename指明相应的文件名,若没有指定,copy命 令执行后将提示用户将文件名输入 flash <filename> 当其作为第一个参数时表示从路由器闪存中读取文件:作为第二个参数时 表示向路由器闪存中写文件。 Filename指明相应的文件名,若没有指定 copy命令执行后将提示用户将文件名输入 blksize 指定tp传输过程的块大小
01-基础配置命令 第1章 系统管理命令 1.1 配置文件管理命令 配置文件管理命令包括: z copy z delete z dir z download co z eraserom z more z upload c0 z download z uplodad 1.1.1 copy 使用 copy 命令可以从 TFTP 服务器读取文件到路由器,也可以将路由器文件系统中的某 个文件写到 TFTP 服务器。 Copy {tftp<:filename> | flash<:filename>} {flash <:filename> | tftp<:filename>} <blksize> 参数 参数 参数说明 tftp<:filename> 当其作为第一个参数时表示从tftp服务器读取文件作为第二个参数时表示 向tftp服务器写文件。Filename指明相应的文件名,若没有指定,copy命 令执行后将提示用户将文件名输入。 flash <:filename> 当其作为第一个参数时表示从路由器闪存中读取文件;作为第二个参数时 表示向路由器闪存中写文件。Filename指明相应的文件名,若没有指定, copy命令执行后将提示用户将文件名输入。 blksize 指定tftp传输过程的块大小。 - 1 -