a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 71|回复: 0

[综合] CISCO常用配置命令及参数3

[复制链接]
发表于 2012-8-3 20:03:30 | 显示全部楼层 |阅读模式
Telnet使用:8 v8 G3 t4 \. Y& U
) ~2 A- I0 u1 u1 @" ?
routerA# terminal monitor  routerA# telnet IP-Address [ Router-Name ]  routerB# [ exit | logout ]  routerB# ++再按  routerA# show sessions  routerA# Connect-Number  routerA# disconnect IP-Address [ Router-Name ]  routerA# show user  routerA# clear line [ 0 | 1 | 2 | 3 | 4 ]  禁止任何Telnet到本机:$ r8 F7 Q1 ^- ?/ R1 i2 J

9 @7 t! Y, G, R8 N+ Trouter(config)# line vty 0 4  router(config-line)# access-class ACL-Number  router(config)# ^z 设置主机名:
6 M' v! A9 g  f' ^5 T8 r1 M
- w  x3 u; C& b  a4 l7 h8 K4 [router(config)# hostname Set-Hostname  router(config)# ^z  router(config)# ^z 设置用户模式密码:; U/ n7 {+ J5 h# x+ _: |7 H

. k- \3 d+ n5 K2 B. F& lrouter(config)# line console 0  router(config-line)# login  router(config-line)# password Set-Password  router(config-line)# ^z 设置Telnet密码:
" \6 A$ k: U- o. @: y
$ _# |( W- p# X- K+ `router(config)# line vty 0 4  router(config-line)# login  router(config-line)# password Set-Password  router(config-line)# ^z 设置特权模式密码:  Q+ m' C6 b$ L6 @) O* ]3 F7 ?/ M
. J; V0 g: l$ D4 A1 Q/ k. a+ L
router(config)# enable password Set-Password  router(config)# enable secret Set-Password  router(config)# ^z 给所有密码加密:
$ Q# E# S: m# L9 I4 C; A, b9 y4 }, _1 N* t: e% E0 _8 r
router(config)# service password-ancryption Set-Password-Here  router(config)# no service password-ancryption  router(config)# ^z 设置登录Banner:
+ i6 @3 n- T5 \4 w, @( H/ E6 O; V# f. |0 M
router(config)# banner motd 分隔符 Set-Banner-Information-Here 分隔符  设置接口的描述信息:1 E# K+ S% S( B( Y
3 B% s' F/ k( d, A( J" q" ~
router(config-if)# description Set-Port-Information-Here  router(config)# ^z CDP的控制:$ N% r# H3 d% J8 `
# G! a6 u6 ^6 M- c, O1 g) X" E
router(config-if)# cdp enable  router(config-if)# no cdp enable  router(config)# cdp run  router(config)# no cdp run  Ping的使用:! [) `. b- T  h5 }6 g9 L) Z. k. ~
$ L% b7 c0 [# }
router# ping IP-Address  router# ping  Protocol [ip]:[ Protocol-Type ]  Target IP address:IP-Address  Repeat count [5]:  Datagram size [100]:  Timeout in seconds [2]:  Extended commands [n]:y  Sweep range of sizes [n]: Tracke的使用:
+ @; X* Q2 N1 v0 f! Y" ]5 ]; K4 v0 i( B# Y4 B
router# trace IP-Address [ Host-Name ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-14 21:58 , Processed in 0.571764 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表