a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 128|回复: 1

[综合] 思科认证基础:Switching命令大全

[复制链接]
发表于 2012-8-3 20:03:30 | 显示全部楼层 |阅读模式
1. 在基于IOS的交换机上设置主机名/系统名:/ g4 W- M/ A* k- X" M/ `
switch(config)# hostname hostname) \% m/ V+ P9 [8 K- z7 c) W0 i! p
在基于CLI的交换机上设置主机名/系统名:
! P5 `' J" I/ L% [switch(enable) set system name name-string
: f( x& H: g3 S# M6 W' P2 g/ [5 Z2.在基于IOS的交换机上设置登录口令:) }) L1 D2 F4 v' B
switch(config)# enable password level 1 password
3 G+ z3 S3 c9 [' S. }在基于CLI的交换机上设置登录口令:
4 y3 B5 x( X2 q8 C1 dswitch(enable) set password: e% Q6 b+ S9 u* l3 c
switch(enable) set enalbepass
7 N+ [# F; ]* ?$ k' ^& g1 z. c3.在基于IOS的交换机上设置远程访问:
; M7 o6 z9 G9 g2 w, `switch(config)# interface vlan 1
- R3 B9 \5 I! ?) r9 ~- j' X: Hswitch(config-if)# ip address ip-address netmask! C% z) S& p+ F) @
switch(config-if)# ip default-gateway ip-address7 f* f% u5 ~5 f( R3 l! N
在基于CLI的交换机上设置远程访问:' k/ ]/ C  k0 @" g0 M/ z
switch(enable) set interface sc0 ip-address netmask broadcast-address
1 W4 V" v7 G* Y3 Q) Aswitch(enable) set interface sc0 vlan
8 |; O' O( A' p' C) c5 X- Y  }  `6 ~switch(enable) set ip route default gateway
  S* O9 L0 B7 a1 {4 p; Y4.在基于IOS的交换机上启用和浏览CDP信息:
' X6 P4 A/ G' C, fswitch(config-if)# cdp enable( L% R/ A$ h, c. D
switch(config-if)# no cdp enable5 T! h; q! k8 p
为了查看Cisco邻接设备的CDP通告信息:* A$ _8 N1 j& z$ V0 ~
switch# show cdp interface [type modle/port]( ]  @: j, Q3 T/ N/ b" `
switch# show cdp neighbors [type module/port] [detail]$ t, g% p! }. a4 f8 ?. ~$ u" f
在基于CLI的交换机上启用和浏览CDP信息:
) i6 P  A+ h) P3 n# p# Y* mswitch(enable) set cdp {enable|disable} module/port
" d5 a  h4 U4 z, W  I: c" B! {9 J为了查看Cisco邻接设备的CDP通告信息:9 A/ ~% `, t9 o
switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail]
( B5 F4 g" c% _+ Z+ {; U5.基于IOS的交换机的端口描述:
: t* I7 I. g( K; K" X3 @switch(config-if)# description description-string% I) O1 }. u8 {2 j+ Y! F
基于CLI的交换机的端口描述:
$ S; @7 a+ D& D6 k: S6 Xswitch(enable)set port name module/number description-string
0 L- E) q. C2 N9 p6 }* i' w6.在基于IOS的交换机上设置端口速度:3 ]& a8 _3 L' y) O) l& k
switch(config-if)# speed{10|100|auto}
: Q! v2 {) E: t9 e/ g1 c在基于CLI的交换机上设置端口速度:
0 w" G# o9 g. V1 j; Z: _switch(enable) set port speed moudle/number {10|100|auto}
: J+ G5 z# t9 E* sswitch(enable) set port speed moudle/number {4|16|auto}# c) G9 c/ L2 q( L% J
7.在基于IOS的交换机上设置以太网的链路模式:
  L/ V6 q: N$ y, k' Z9 Aswitch(config-if)# duplex {auto|full|half}6 @  z, ~% B; r4 u& O
在基于CLI的交换机上设置以太网的链路模式:
) v) ]1 u" Q# w$ ^" Pswitch(enable) set port duplex module/number {full|half}. x) U+ K( [: g
8.在基于IOS的交换机上配置静态VLAN:& y; S$ j7 X/ k8 r7 ?- w
switch# vlan database5 y7 X/ `& r$ _' O
switch(vlan)# vlan vlan-num name vla6 k" |( E8 O, n+ B; K( Y6 W( d
switch(vlan)# exit$ O, D" i$ l4 D( z# @$ I
switch# configure teriminal
! X3 t7 b- f. p8 |switch(config)# interface interface module/number* j) ~# Q: y9 v3 {0 K2 C! `0 E
switch(config-if)# switchport mode access
1 Q3 G# v% U- A4 U1 nswitch(config-if)# switchport access vlan vlan-num1 e5 |2 ]1 q" y5 K: d* I0 c
switch(config-if)# end
0 u9 z7 j* O9 m' x- }在基于CLI的交换机上配置静态VLAN:. z9 p, @% A  T0 ?+ x3 n1 |
switch(enable) set vlan vlan-num [name name]+ l( g0 p0 z( P$ l, P
switch(enable) set vlan vlan-num mod-num/port-list0 a# W2 o0 U1 |5 W, L
9. 在基于IOS的交换机上配置VLAN中继线:) f* j& ]. l  E$ i7 D" v, D
switch(config)# interface interface mod/port( V; c  C( i" P3 M* j4 a
switch(config-if)# switchport mode trunk
0 H' r+ |' P) uswitch(config-if)# switchport trunk encapsulation {isl|dotlq}
# r" h* C9 Y9 y1 a+ nswitch(config-if)# switchport trunk allowed vlan remove vlan-list# x3 {3 A! ?9 s) m- C' r
switch(config-if)# switchport trunk allowed vlan add vlan-list/ D; [/ q$ y" \: a2 d5 X' j+ b
在基于CLI的交换机上配置VLAN中继线:
8 ^" @: g: d; L  Eswitch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate]9 K  M1 j7 \/ B' V- n6 u7 t6 w8 i
Vlan-range [isl|dotlq|dotl0|lane|negotiate]# j1 n, n- I* P3 \' v
10.在基于IOS的交换机上配置VTP管理域:1 o$ ]$ N( K8 q* x
switch# vlan database/ V* {. Z4 Q; ~7 h( g1 k. W
switch(vlan)# vtp domain domain-name# [0 R- x- K! |0 k
在基于CLI的交换机上配置VTP管理域:2 f, J: g6 ^! C* V1 W
switch(enable) set vtp [domain domain-name]
1 G& m# g& G1 \& m11.在基于IOS的交换机上配置VTP 模式:
* I8 H6 o2 y0 o; Yswitch# vlan database& r6 w1 P5 M! i- A; r
switch(vlan)# vtp domain domain-name
# H% _; `( L8 p/ Q6 sswitch(vlan)# vtp {sever|cilent|transparent}
' @7 \* ]' b( }, a8 a) pswitch(vlan)# vtp password password
8 d! ]1 V" t- M6 N/ ?在基于CLI的交换机上配置VTP 模式:
; V0 C4 D. H2 pswitch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password]
& X" W0 ?8 m: b# n& D0 l0 h12. 在基于IOS的交换机上配置VTP版本:
4 }: n% n, U$ I0 K& T: Aswitch# vlan database
" M8 B7 ^- a7 p+ Uswitch(vlan)# vtp v2-mode
; k0 k" y0 A$ V, w" i在基于CLI的交换机上配置VTP版本:5 K! C' w" T0 Z4 m
switch(enable) set vtp v2 enable: m( I8 e8 I' \9 w
13. 在基于IOS的交换机上启动VTP剪裁:& e# W; e6 p5 A: |2 a* T: R* _
switch# vlan database
% g7 r/ O6 O5 f# Mswitch(vlan)# vtp pruning$ A9 L4 a+ w) p9 B
在基于CL I 的交换机上启动VTP剪裁:
" V3 _& \" F  @& W0 u# K- V; Qswitch(enable) set vtp pruning enable$ c, k3 r' S: i3 Q9 k0 e
14.在基于IOS的交换机上配置以太信道:2 }0 z- `2 f$ e; y0 N2 t. }
switch(config-if)# port group group-number [distribution {source|destination}]8 ~4 @# B- M: j: v0 [
在基于CLI的交换机上配置以太信道:
+ j) n9 V1 {1 q9 j3 ^switch(enable) set port channel moudle/port-range mode{on|off|desirable|auto}
) E2 f/ W+ s" Z( @15.在基于IOS的交换机上调整根路径成本:- E4 a, P- U6 X3 ]
switch(config-if)# spanning-tree [vlan vlan-list] cost cost- G4 k4 g( S0 Z7 l9 j" U, Q
在基于CLI的交换机上调整根路径成本:
4 ~, [- @3 M6 l9 P/ A( ^! Gswitch(enable) set spantree portcost moudle/port cost
- {3 Q* r8 C) i9 `; B! }switch(enable) set spantree portvlancost moudle/port [cost cost][vlan-list]
, H+ l7 l. y, S% z: C9 O/ x16.在基于IOS的交换机上调整端口ID:
3 o0 l8 Q- C7 H2 ]# ~8 o8 a8 y- Y# ^switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority& l# O3 D1 ^% t
在基于CLI的交换机上调整端口ID:1 K- g$ z: j! U
switch(enable) set spantree portpri {mldule/port}priority# k7 g" L( u) j: @' g3 a
switch(enable) set spantree portvlanpri {module/port}priority [vlans]% p/ l, Z/ J9 V7 \2 Y/ A( f' q
17. 在基于IOS的交换机上修改STP时钟:( G& s1 ~# ?& Y8 Y
switch(config)# spanning-tree [vlan vlan-list] hello-time seconds" q. K- ^6 h4 R. l$ i' L
switch(config)# spanning-tree [vlan vlan-list] forward-time seconds& a/ y, m  x! K- Z8 C8 t3 }; h0 e4 `
` switch(config)# spanning-tree [vlan vlan-list] max-age seconds
  v) Z1 |- ?! p( a在基于CLI的交换机上修改STP时钟:( j& y5 x9 N  x  {4 N. l; X
switch(enable) set spantree hello interval[vlan]
' J! [$ M! l& wswitch(enable) set spantree fwddelay delay [vlan]& |* @/ q. x4 Z3 T; Y9 Y; Q
switch(enable) set spantree maxage agingtiame[vlan]  N; c8 u$ {* P
18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征:
# I' Z, y9 u0 E. ^  d) j+ uswitch(config-if)#spanning-tree portfast) Q2 C. \, c( Q1 t
在基于CLI的交换机端口上启用或禁用Port Fast 特征:  s4 Y8 X' H6 S- _% M2 X, W: I
switch(enable) set spantree portfast {module/port}{enable|disable}2 }, g9 T6 Z( s1 z
19. 在基于IOS的交换机端口上启用或禁用UplinkFast 特征:
% N% V4 N& G: B* x9 v8 T# aswitch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]& Y# W4 x: G( {5 |" J
在基于CLI的交换机端口上启用或禁用UplinkFast 特征:
2 h% ?7 ?* u3 E: g- lswitch(enable) set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on]
6 |4 R7 M) }) C1 b; \20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name  e% q/ ?2 F1 J( k3 z7 z
21. 为了从一条中继链路上删除VLAN,可使用下列命令:
) r8 {6 i: ]) ]3 U) mswitch(enable) clear trunk module/port vlan-range
+ ^. }( w! d7 Q8 ]4 y! }3 @! N, b22. 用show vtp domain 显示管理域的VTP参数.
4 L1 `( F& r5 m& |0 I23. 用show vtp statistics显示管理域的VTP参数.
0 ?; h" _) W! P8 \3 c24. 在Catalyst交换机上定义TrBRF的命令如下:
) h6 J) v8 ~0 @5 F5 {& @2 L% Z8 Cswitch(enable) set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}]
& K4 L% \5 I, ?25. 在Catalyst交换机上定义TrCRF的命令如下:
5 }( H3 [' O  S. [6 Bswitch (enable) set vlan vlan-num [name name] type trcrf
, g2 I( C) }! D" s5 M0 T- c5 K{ring hex-ring-num|decring decimal-ring-num} parent vlan-num5 h7 E4 e) N- }
26. 在创建好TrBRF VLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口:& ?7 U  c: H: I- d
switch(enable) set vlan vlan-num mod-num/port-num# y. R+ q* T9 w2 Q7 Z
27. 命令show spantree显示一个交换机端口的STP状态.! i/ f" x% r; Q, F
28. 配置一个ELAN的LES和BUS,可以使用下列命令:
/ v, J$ M8 m) L3 v! C8 b/ P/ b; P* GATM (config)# interface atm number.subint multioint8 m1 \" A4 f+ Y
ATM(config-subif)# lane serber-bus ethernet elan-name
* J. O5 R% I( N$ s6 u29. 配置LECS:9 w* N. O$ g! t: O+ ]2 W; w( T* H
ATM(config)# lane database database-name
$ m# U) n: m0 k0 V  dATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap-address
7 {4 j$ Z2 x( k1 R: w- ^8 A6 ZATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-address
  Z- d( n! ?! F) ~8 MATM(lane-config-databade)# name …( D* u4 ~% ^. f
30. 创建完数据库后,必须在主接口上启动LECS.命令如下:
, _: W: v" S5 _  p2 QATM(config)# interface atm number
  m' m, z' x5 c6 }( N" fATM(config-if)# lane config database database-name8 {/ N: @  \' {9 P
ATM(config-if)# lane config auto-config-atm-address1 f) Z" T* C. e1 x% r# z
31. 将每个LEC配置到一个不同的ATM子接口上.命令如下:
3 K7 n( K& r& H4 o. F) _8 O. ]ATM(config)# interface atm number.subint multipoint& N! M' R# P6 q' e; [, p1 N
ATM(config)# lane client ethernet vlan-num elan-num
- z$ |' j/ ?8 I% z  F- a32. 用show lane server 显示LES的状态.
6 v, I! p, o" m' o$ C) I8 b33. 用show lane bus显示bus的状态.8 M: I" @* L# \9 ]
34. 用show lane database显示LECS数据库可内容.9 |6 h/ {7 U  u/ z& G
35. 用show lane client显示LEC的状态.
- r9 Y2 _% v. k. I& c36. 用show module显示已安装的模块列表.( [. {: z- Y+ y9 j
37. 用物理接口建立与VLAN的连接:
' S, `) u- ~( ]) a! }1 R9 H% ^router# configure terminal0 Z6 D/ }0 v; m) T% O7 p
router(config)# interface media module/port
. l+ H9 J+ @* I( M+ A9 Qrouter(config-if)# description description-string
. y2 C1 [1 o( n) q# d& u9 Vrouter(config-if)# ip address ip-addr subnet-mask
% Y0 m, Q4 E! hrouter(config-if)# no shutdown% _' D7 w  E0 X+ {, U5 h. a
38. 用中继链路来建立与VLAN的连接:
( a: Y1 L$ R7 d$ n1 m* F: E* S% N, jrouter(config)# interface module/port.subinterface# m2 x& [# A( n2 L
router(config-ig)# encapsulation[isl|dotlq] vlan-number8 |* u$ ?1 C  j3 ~. f
router(config-if)# ip address ip-address subnet-mask
4 h. k6 }" I: @, q/ l4 P7 K" J39. 用LANE 来建立与VLAN的连接:
9 h1 ]) L, x: h% m0 A4 y# t9 Qrouter(config)# interface atm module/port; a1 s: i0 p0 l
router(config-if)# no ip address
* B  B) h1 _5 y5 u3 {router(config-if)# atm pvc 1 0 5 qsaal
' {5 @7 w; g* I. q& ^router(config-if)# atm pvc 2 0 16 ilni7 V# n, n( }. N2 ~# W2 @# W
router(config-if)# interface atm module/port.subinterface multipoint
- I  b# g) N: mrouter(config-if)# ip address ip-address subnet-mask
# \* g, {% v/ g5 b, b8 frouter(config-if)# lane client ethernet elan-num
  p! L8 e' m) h2 _0 C3 Wrouter(config-if)# interface atm module/port.subinterface multipoint
, h5 [" R8 {4 n0 \router(config-if)# ip address ip-address subnet-name" s6 x% _- [; X
router(config-if)# lane client ethernet elan-name
3 L- V1 U0 h' erouter(config-if)# …% n7 B- N$ `$ _
40. 为了在路由处理器上进行动态路由配置,可以用下列IOS命令来进行:
% \. F: v! n! G! _; X; d: Vrouter(config)# ip routing% n( ~# t$ w0 ^
router(config)# router ip-routing-protocol
4 D1 k+ ]" a0 V& G( Mrouter(config-router)# network ip-network-number
# ?! a- |  z0 H4 w+ ~router(config-router)# network ip-network-number
- {4 F: t) E& Y% S0 w41. 配置默认路由:
0 n" }; A2 x# Qswitch(enable) set ip route default gateway6 _+ N4 q$ z/ |+ h; ?# g+ m- w
42. 为一个路由处理器分配VLANID,可在接口模式下使用下列命令:
6 [/ s& _2 k' t+ i% f- Prouter(config)# interface interface number
, H/ `$ v; F& M% F* B" A: brouter(config-if)# mls rp vlan-id vlan-id-num
5 O0 U, e8 ?, N8 x, y& P% E43. 在路由处理器启用MLSP:( t6 K3 O+ O0 A& d" o
router(config)# mls rp ip
. G1 N0 A( Q9 |% h' D. T1 @5 t44. 为了把一个外置的路由处理器接口和交换机安置在同一个VTP域中:8 l) J: X7 V1 ?) c" V
router(config)# interface interface number% A# l8 i* [! }" F% p
router(config-if)# mls rp vtp-domain domain-name
8 Y- Y- u' I* p& v45. 查看指定的VTP域的信息:' H8 t2 D+ k% @6 K0 b; [# d9 I5 l
router# show mls rp vtp-domain vtp domain name/ F1 `! J, j, k* o. {
46. 要确定RSM或路由器上的管理接口,可以在接口模式下输入下列命令:- ?" a+ J$ l0 m7 Q# z% D
router(config-if)#mls rp management-interface& W  V* [( c0 M! B3 p9 b9 ~- j
47. 要检验MLS-RP的配置情况:' y5 c2 c8 L" k  q6 w
router# show mls rp
- K& D( Q7 d7 A" M; u  Y* _3 O48. 检验特定接口上的MLS配置:
3 }: I  {/ ]1 C% n' u  Qrouter# show mls rp interface interface number8 e. @: ]5 [: d* K; z( S
49. 为了在MLS-SE上设置流掩码而又不想在任一个路由处理器接口上设置访问列表:
! v0 u$ n+ k. Z* R4 F2 Dset mls flow [destination|destination-source|full]
* d/ K2 a2 o8 Y50. 为使MLS和输入访问列表可以兼容,可以在全局模式下使用下列命令:) A. L) j5 l2 \  y
router(config)# mls rp ip input-acl2 c6 x/ z; v, n; x; S; m
51. 当某个交换机的第3层交换失效时,可在交换机的特权模式下输入下列命令:
4 I- _1 u5 W* M% I/ ?! \8 S+ Aswitch(enable) set mls enable
3 L+ X  u- Y6 u% W52. 若想改变老化时间的值,可在特权模式下输入以下命令:% H) L) Y# O" {; k5 \
switch(enable) set mls agingtime agingtime
回复

使用道具 举报

 楼主| 发表于 2012-8-3 20:03:31 | 显示全部楼层

思科认证基础:Switching命令大全

53. 设置快速老化:
4 P$ {4 g1 }0 Lswitch(enable) set mls agingtime fast fastagingtime pkt_threshold. U# G* P6 _% @; y+ q: a
54. 确定那些MLS-RP和MLS-SE参与了MLS,可先显示交换机引用列表中的内容再确定:
4 G* z% V6 l- q1 ]; \. ~switch(enable) show mls include, ?3 T/ S8 ^1 L" \. ]+ h  e, R$ L
55. 显示MLS高速缓存记录:1 J0 |8 ?* e5 Y7 J+ _% E# x% o
switch(enable) show mls entry
9 v5 y" f) @# \# Z6 |3 u56. 用命令show in arp显示ARP高速缓存区的内容。
3 C: v/ D# _; T2 U) z* e: [57. 要把路由器配置为HSRP备份组的成员,可以在接口配置模式下使用下面的命令:
) D$ L8 Q/ d, D, }+ ]router(config-if)# standby group-number ip ip-address6 O/ ~0 n0 _' K' Y) F. @3 \
58. 为了使一个路由器重新恢复转发路由器的角色,在接口配置模式下:6 S% |7 ]$ ]; B: Q
router(config-if)# standy group-number preempt
7 b+ C9 D! W* R' F& A59. 访问时间和保持时间参数是可配置的:
( L: K9 K' B/ b; qrouter(config-if)# standy group-number timers hellotime holdtime8 x* D; c" S9 b9 r# Z
60. 配置HSRP跟踪:4 Z4 ~* K- d' M/ b2 k) O5 Q% i
router(config-if)# standy group-number track type-number interface-priority1 \7 [& P/ W/ q2 Q6 P
61. 要显示HSRP路由器的状态:
) Q, x' p% q8 x; ?3 @/ _router# show standby type-number group brief
5 [% q6 S. T, n2 H+ G62. 用命令show ip igmp确定当选的查询器。7 ]1 K# }" O# z/ j4 @
63. 启动IP组播路由选择:
8 D1 K9 ^4 x1 _$ i; V! rrouter(config)# ip muticast-routing
- f. k7 {+ m" q) j$ z& z8 m64. 启动接口上的PIM:: h6 W( ^* S5 q3 s7 X
dalllasr1>(config-if)# ip pim {dense-mode|sparse-mode|sparse-dense-mode}: {) f8 Y8 Y1 r/ }  H! k# ]& [$ {
65. 启动稀疏-稠密模式下的PIM:3 m+ _6 @4 {5 c, }! I3 F* {
router# ip multicast-routing
" ]" E8 \6 D4 K2 [- e( Arouter# interface type number" `; b% y& m3 o
router# ip pim sparse-dense-mode
/ G2 d3 ~% @4 t5 Q66. 核实PIM的配置:
8 g; c* T! @# `/ I" Ydallasr1># show ip pim interface[type number] [count]1 J4 w' n+ F0 r; A
67. 显示PIM邻居:( ~; d1 u, G) r( c0 e/ o# P
dallasr1># show ip neighbor type number
( U/ y& _4 U+ W0 N68. 为了配置RP的地址,命令如下:
; o9 v2 {$ x: r. w$ \5 fdallasr1># ip pim rp-address ip-address [group-access-list-number][override]
3 z) X; y1 y4 A+ j69. 选择一个默认的RP:
/ \4 X: C  Z! r9 O- G$ Fdallasr1># ip pim rp-address
9 Y- @/ C  J/ o3 a, ~通告RP和它所服务的组范围:
) _* m  Q/ M1 X5 g5 ^3 fdallasr1># ip pim send-rp-announce type number scope ttl group-list access-list-number) m% Q( C5 `/ ^  P
为管理范围组通告RP的地址:
; u/ o$ W2 G( m$ i1 ^1 L8 udallasr1># ip pim send-rp-announce ethernet0 scope 16 group-list1/ i  ~& D, D+ c& P4 }2 R
dallasr1># access-list 1 permit 266.0.0.0 0.255.255.255
! y2 a! c  c* |" E设定一个RP映像代理:6 d. v; m) y* t. M& v
dallasr1># ip pim send-rp-discovery scope ttl
' y% J- q$ O) Y+ D" r/ N5 g* l核实组到RP的映像:
$ \+ v8 b9 O2 }6 D/ m( _dallasr1># show ip pim rp mapping5 L9 k5 R% f+ c- B7 _
dallasr1># show ip pim rp [group-name|group-address] [mapping]
* C* l# i/ o: M70. 在路由器接口上用命令ip multicast ttl-threshold ttl-value设定TTL阀值:
# T- t4 Q4 x, b/ e% m3 w, cdallasr1>(config-if)# ip multicast ttl-threshold ttl-value
2 M" m% p5 w+ a2 X! `71. 用show ip pim neighbor显示PIM邻居表。$ ^& a2 |5 C$ y& W9 Z4 A
72. 显示组播通信路由表中的各条记录:
' U$ y; E' ~/ [4 B! ?6 x( ?9 o1 gdallasr1>show ip mroute [group-name|group-address][scoure][summary][count][active kbps]( |2 @3 X' S. o& Z. H
73. 要记录一个路由器接受和发送的全部IP组播包:. I/ p% I* p, M$ B4 j1 f, C* K
dallasr1> #debug ip mpacket [detail] [access-list][group]2 h% F! M2 P& P8 g. o5 `) t6 I
74. 要在CISCO路由器上配置CGMP:+ a' I  c9 t0 O+ h, S! `+ R2 h7 x: H" l
dallasr1>(config-if)# ip cgmp  E5 [! H" V, J% R+ X0 c' m
75.配置一个组播路由器,使之加入某一个特定的组播组:6 e+ u4 O, H' i3 m: _
dallasr1>(config-if)# ip igmp join-group group-address
4 M1 `' Y/ @! U' F6 u# G76. 关闭 CGMP:
, K$ u3 |8 Y7 |* rdallasr1>(config-if)# no ip cgmp
' b' W0 q6 Y9 R  U8 f77. 启动交换机上的CGMP:
) X# v/ n6 P& i. ~dallasr1>(enable) set cgmp enable4 V/ T6 x2 H3 O- _' `% k. ^. E
78. 核实Catalyst交换机上CGMP的配置情况:
8 w$ [  r% c% q0 ^' \catalystla1>(enable) show config
' [) V. F9 i6 `! Q5 v& @2 \0 nset prompt catalystla1>
: ]% S% u) O  K. Aset interface sc0 192.168.1.1 255.255.255.0
+ S8 T6 k" E0 e0 ]6 p; c) z  c$ Dset cgmp enable9 g. m* X2 j* w6 _' d) |( i+ `2 |
79. CGMP离开的设置:
, p, w* D5 K$ \; g( {- |' vDallas_SW(enable) set cgmp leave7 v( t9 A. D8 t0 m
80. 在Cisco设备上修改控制端口密码:) z, s0 u, @# @
R1(config)# line console 0- i6 F2 \) {  l  f# |! B
R1(config-line)# login
! C4 Q! ]: s  C0 s# N2 }3 F4 t; X3 mR1(config-line)# password Lisbon
3 Q) i5 m/ X$ lR1(config)# enable password Lilbao8 d2 j; n' j2 o; u9 E& j6 O
R1(config)# login local
) ?# Q# _$ c/ N$ Z: w4 r/ c' N2 cR1(config)# username student password cisco4 W" h4 J' s8 ]; ]' W9 Y5 X
81. 在Cisco设备上设置控制台及vty端口的会话超时:
, l7 t1 y+ q$ Z5 ^3 Y& w: ^; A( \R1(config)# line console 0
6 V- o7 k4 G# ~3 Z- cR1(config-line)# exec-timeout 5 10
) L. _2 S& I6 ]! l4 R5 p, Z# oR1(config)# line vty 0 4' ]5 w$ U/ A  v
R1(config-line)# exec-timeout 5 2
4 g: j; L% Z+ X3 @3 w0 |* Q8 F4 e# I82. 在Cisco设备上设定特权级:, Q5 c$ V& @$ C  D9 t& M
R1(config)# privilege configure level 3 username
( D. i$ [; |' dR1(config)# privilege configure level 3 copy run start
$ c7 }3 z/ c4 K; ?: GR1(config)# privilege configure level 3 ping
7 {' Q' J" ~, @' {R1(config)# privilege configure level 3 show run
8 _* M, G, M" t7 M5 [: o' t( [% IR1(config)# enable secret level 3 cisco3 U- {& Q  R% ]+ a2 ]6 u
83. 使用命令privilege 可定义在该特权级下使用的命令:
0 V: T* ]6 C. N/ K  @( B3 ]) Krouter(config)# privilege mode level level command
, `2 s! a! v* c/ b; b6 o" [84. 设定用户特权级:
9 r' m3 y" Q3 _* h9 d+ L" t7 _router(config)# enable secret level 3 dallas4 L& k. F  F5 O. k# {* z
router(config)# enable secret san-fran
1 \7 L* u5 f% N  b3 F& T* Lrouter(config)# username student password cisco
; ~% T: F7 j  R  l85. 标志设置与显示:0 Z/ ]8 K& }8 I5 b2 e
R1(config)# banner motd ‘unauthorized access will be prosecuted!’: H; O3 R9 h. J+ w% G
86. 设置vty访问:$ d4 ~1 T) M& x, ^- T5 W& @: [( c
R1(config)# access-list 1 permit 192.168.2.5  U7 g$ }8 e8 d, d- H2 Q
R1(config)# line vty 0 46 W% B3 \: z0 v5 X
R1(config)# access-class 1 in
( O3 v7 m- F+ V  X5 i& a87. 配置HTTP访问:( ?, w8 [; i$ t
Router3(config)# access-list 1 permit 192.168.10.7
  `: K' C9 P; q9 O8 n0 k. G* MRouter3(config)# ip http sever
$ c: F4 y) B: m1 Y) X* H& \Router3(config)# ip http access-class 1; r) u0 j+ S* C# k! \+ Y
Router3(config)# ip http authentication local) ]' n0 N9 ?4 P% \( T
Router3(config)# username student password cisco
* z/ k3 B$ ~; I- W4 c88. 要启用HTTP访问,请键入以下命令:
; W& Z4 k9 A" `1 V5 Qswitch(config)# ip http sever
  @6 z9 ?4 [; o4 B4 z- K$ e5 t. l89. 在基于set命令的交换机上用setCL1启动和核实端口安全:
6 m% S: v  b1 }  \5 Q' C+ K, A* uswitch(enable) set port security mod_num/port_num…enable mac address0 s) W) H/ r. {+ ?- j" {
switch(enable) show port mod_num/port_num
% X( k$ V) l7 g& i  w在基于CiscoIOS命令的交换机上启动和核实端口安全:' N0 A+ T0 |* z6 Z- `" x' G. r
switch(config-if)# port secure [mac-mac-count maximum-MAC-count]
  v, A$ q- E' ~8 J# m6 P0 Kswitch# show mac-address-table security [type module/port]
1 A# U$ i" w. a; x1 H# n90. 用命令access-list在标准通信量过滤表中创建一条记录:0 y8 h2 f2 p/ d8 H! H" Y6 c' l; B
Router(config)# access-list access-list-number {permit|deny} source-address [source-address]
2 o. }0 i0 n$ k' b/ ?& N7 @91. 用命令access-list在扩展通信量过滤表中创建一条记录:$ T. F- V) s+ T
Router(config)# access-list access-list-number {permit|deny{protocol|protocol-keyword}}{source source-wildcard|any}{destination destination-wildcard|any}[protocol-specific options][log]
% a/ f% z- k6 {$ t% a) }. k92. 对于带内路由更新,配置路由更新的最基本的命令格式是:4 |5 Y6 }- ~& S- i
R1(config-router)#distribute-list access-list-number|name in [type number]
7 d$ F% Y' c# ?0 |& e93. 对于带外路由更新,配置路由更新的最基本的命令格式是:: [+ f# p: t% @  P, H4 u
R1(config-router)#distribute-list access-list-number|name out [interface-name] routing-process| autonomous-system-number3 j: x- B& x9 E! ~' F* ]  K1 p
94. set snmp命令选项:! K7 O8 r( r5 t# t6 u* B- L4 [
set snmp community {read-only|ready-write|read-write-all}[community_string]% Q2 z8 o1 `0 ~: t
95. set snmp trap 命令格式如下:
0 `* c7 }1 A  W; _( @. eset snmp trap {enable|disable}
8 P! |2 I, J% o# W, g[all|moudle|classis|bridge|repeater| auth|vtp|ippermit|vmps|config|entity|stpx]! I7 |* n" n2 [: S" W
set snmp trap rvcr_addr rcvr_community
9 w1 j% W4 Z5 Z2 q( U* N96. 启用SNMP chassis 陷阱:) G* L' E1 M6 z5 }- W  w
Console>(enable) set snmp trap enable chassis9 H& d4 v- M6 Q% _2 @! C
97. 启用所有SNMP chassis 陷阱:
0 B7 Z9 u. M9 P4 eConsole>(enable) set snmp trap enable
" x+ ]2 t: D: u* s98. 禁用SNMP chassis 陷阱:来自www.Examw.com
  T" A( u! i6 z# j1 y3 Q2 M* e' `+ AConsole>(enable) set snmp trap disable chassis. l4 o3 ^1 t0 R% g* g! i& H/ U
99. 给SNMP陷阱接收表加一条记录:
3 i  H% ?$ S7 K: lConsole>(enable) set snmp trap 192.122.173.42 public
3 n5 n; b3 G. E/ e) Z/ A2 v& E, T% \3 H100. show snmp 输出结果。0 L1 Z1 n0 X! D/ `. V( I' I
101. 命令set snmp rmon enable 的输出结果。
" [# A) Z( b0 f- N102. 显示SPAN信息:" X$ m+ ?: `' N5 R" \2 h/ [& g# l
Consile> show span
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-14 18:39 , Processed in 0.180015 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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