</p> 5.基于IOS的交流机的端口描述:! R, H$ y, D+ T7 f$ Y8 t
switch(config-if)# description description-string
R: o- s/ e$ T/ l# Z5 l6 W 基于CLI的交流机的端口描述:* P4 C+ U8 q0 q8 Y5 _1 }3 h
switch(enable)set port name module/number description-string. p! s+ T! ]7 j; S3 e
6.在基于IOS的交流机上设置端口速度:: j+ T o% o% q# Z2 j
switch(config-if)# speed{10|100|auto}
' I9 }/ J1 J* F6 H1 N1 J( l 在基于CLI的交流机上设置端口速度:* Q& S2 N6 a1 ]+ ?6 z+ V5 Q
switch(enable) set port speed moudle/number {10|100|auto}
U) j% ~0 L# O. z+ g; G switch(enable) set port speed moudle/number {4|16|auto}
) j! i ?" r# O, X+ q5 W; n0 X) G 7.在基于IOS的交流机上设置以太网的链路模式:
5 w& E1 Y3 |5 T R$ N2 h# h switch(config-if)# duplex {auto|full|half}
4 t( P2 G. l j' u; I) g 在基于CLI的交流机上设置以太网的链路模式:5 H8 B; }! ~( b& C& r" p2 s$ f
switch(enable) set port duplex module/number {full|half}
# Z+ G V& O$ M) a! Z$ J 8.在基于IOS的交流机上设置装备摆设静态VLAN:# D I6 z" `0 T. I. S3 p- ^
switch# vlan database$ p& U+ M2 E: K4 b
switch(vlan)# vlan vlan-num name vla
1 O$ U/ S( ^- P7 I switch(vlan)# exit
; H u+ Q8 o/ I3 B6 b; \! R6 ] switch# configure teriminal7 _# S" l. J, s- E1 F1 z
switch(config)# interface interface module/number9 [% v2 o' G1 J! U- g! X
switch(config-if)# switchport mode access5 m7 `! @0 ?: t# Z4 `
switch(config-if)# switchport access vlan vlan-num
7 w. J3 `* I, { T1 p1 K switch(config-if)# end
4 y. O. v" v3 ]: Q: @% Z5 { 在基于CLI的交流机上设置装备摆设静态VLAN:' K; K1 t3 Q, ~: i8 O3 e8 B
switch(enable) set vlan vlan-num [name name]
. B; V( s1 \# F/ A& B switch(enable) set vlan vlan-num mod-num/port-list
( c5 U8 a4 ` Q4 K 9. 在基于IOS的交流机上设置装备摆设VLAN中继线:3 K" C% M9 V6 Z0 T# G3 Q
switch(config)# interface interface mod/port
B: ]8 G) q7 d- B# k switch(config-if)# switchport mode trunk
; S' M$ V9 Y$ b6 d switch(config-if)# switchport trunk encapsulation {isl|dotlq}
* L* ^+ u# s" d2 Z switch(config-if)# switchport trunk allowed vlan remove vlan-list) D$ y0 P7 H3 L' R' Z" C- e9 z
switch(config-if)# switchport trunk allowed vlan add vlan-list2 \7 j; w6 w4 }4 q0 \3 _
在基于CLI的交流机上设置装备摆设VLAN中继线:# d8 P! L% h+ Q( P/ m1 i
switch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate]% N; k e% Z, X3 U6 r
Vlan-range [isl|dotlq|dotl0|lane|negotiate]
4 k* R; k/ K# z7 s& R4 }0 _1 ] 10.在基于IOS的交流机上设置装备摆设VTP打点域:
: v, b/ P! u/ c) ~& k switch# vlan database1 T/ h2 z. j% M( s2 ~
switch(vlan)# vtp domain domain-name) s% w! A I' G: s' J" o* {7 @
在基于CLI的交流机上设置装备摆设VTP打点域:! @4 h+ v* a8 v: d
switch(enable) set vtp [domain domain-name]
' m% p+ y4 U9 yswitch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority; ?( }8 u" g8 o6 a, M0 p4 o d
在基于CLI的交流机上调整端口ID:9 \6 P4 _* U# t. N# K |& o
switch(enable) set spantree portpri {mldule/port}priority7 ]' R: P- o6 | L5 i7 \
switch(enable) set spantree portvlanpri {module/port}priority [vlans]
" n% Q! I$ R+ S, d1 j& d( s3 f 17. 在基于IOS的交流机上改削STP时钟:
5 q8 _) J# m+ H0 D9 M; U" r( y r5 u( e switch(config)# spanning-tree [vlan vlan-list] hello-time seconds- ?" p3 z+ V. _; O$ [* H# [
switch(config)# spanning-tree [vlan vlan-list] forward-time seconds
% R4 q" s/ J" g5 O8 T switch(config)# spanning-tree [vlan vlan-list] max-age seconds7 x. e+ S$ x8 @4 t
在基于CLI的交流机上改削STP时钟:( i8 s+ ]( h& y- N
switch(enable) set spantree hello interval[vlan]
: o" ^0 c5 |) o% G switch(enable) set spantree fwddelay delay [vlan]
1 }% V( C0 j# z c( h! { switch(enable) set spantree maxage agingtiame[vlan]
0 a1 J( q) L7 f, i- J 18. 在基于IOS的交流机端口上启用或禁用Port Fast 特征:1 |/ L. E+ z N% W( l6 c
switch(config-if)#spanning-tree portfast1 a8 t% u7 |4 R7 Q3 l ?
在基于CLI的交流机端口上启用或禁用Port Fast 特征:) `! ?! g. _% z y2 k6 j
switch(enable) set spantree portfast {module/port}{enable|disable}9 [# Q! M, }6 \
19. 在基于IOS的交流机端口上启用或禁用UplinkFast 特征:
0 W, J; |8 H4 k1 B$ s a& p switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]
4 r/ v& \$ w% j' l7 G 在基于CLI的交流机端口上启用或禁用UplinkFast 特征:, D- c, ]6 ~ X9 B( w' k* r3 o
switch(enable) set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on]& G' T& G! |; J% m& E- T% O
20. 为了将交流机设置装备摆设成一个集群的呼吁交流机,首先要给打点接口分配一个IP地址,然后使用下列呼吁: switch(config)# cluster enable cluster-name cv |