</p> 在基于CLI的交流机上设置装备摆设静态VLAN:5 t0 z5 ^* L! _- M6 q- _
switch(enable) set vlan vlan-num [name name]$ ?5 q3 D* G, E0 q
switch(enable) set vlan vlan-num mod-num/port-list
2 P6 Y; |5 K3 T& X K9 a! D 9. 在基于IOS的交流机上设置装备摆设VLAN中继线:
9 r: C1 y3 o6 g switch(config)# interface interface mod/port
3 L* k _% t' p0 f2 K4 j9 j switch(config-if)# switchport mode trunk
7 _5 y( h0 M* R' \* r' F switch(config-if)# switchport trunk encapsulation {isl|dotlq}6 o; Y$ E9 Q% v6 c% u
switch(config-if)# switchport trunk allowed vlan remove vlan-list R/ I9 [2 W( C, v, k8 K
switch(config-if)# switchport trunk allowed vlan add vlan-list
9 w, S3 D/ P: m5 r$ s8 u 在基于CLI的交流机上设置装备摆设VLAN中继线:- W3 a9 K1 ?2 n+ U, H" m: j
switch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate]1 X. `0 @% L$ f: F9 X( H" x. b% D* q
Vlan-range [isl|dotlq|dotl0|lane|negotiate]0 v+ \7 M9 i. t+ m( w: M, ^6 c9 f
10.在基于IOS的交流机上设置装备摆设VTP打点域:: R+ P+ q! v: d/ o
switch# vlan database
: K8 w: D* U" ~1 h switch(vlan)# vtp domain domain-name( l8 f' M: D8 f! ~9 m7 N/ g
在基于CLI的交流机上设置装备摆设VTP打点域:
+ w' I% o$ L9 i switch(enable) set vtp [domain domain-name]
0 r9 d, c; L! b0 H1.在基于IOS的交流机上设置主机名/系统名:
! s0 n& r3 z m* `0 Q( f5 F- c switch(config)# hostname hostname
+ _4 J2 S3 t0 V; `, Y, ~; N' V 在基于CLI的交流机上设置主机名/系统名:' M: X8 z. {+ m( n# f# w( k
switch(enable) set system name name-string; l4 b9 h) {4 H! _" W" Z' t
2.在基于IOS的交流机上设置登录口令:$ p) b7 ^' d3 E, K0 o
switch(config)# enable password level 1 password7 s7 \- \" N @5 u2 c1 M
在基于CLI的交流机上设置登录口令:
0 q. |" o9 q! n! c4 s: j switch(enable) set password
# Z1 U! {" q2 e% [8 Y switch(enable) set enalbepass
8 T: a5 m% w4 E 3.在基于IOS的交流机上设置远程访谒:( h7 r0 | H% _4 o0 v
switch(config)# interface vlan 14 Z- f" W, P1 @( a" G- m! h) U) g- C
switch(config-if)# ip address ip-address netmask" k7 i$ {% Y) D' t2 e6 }* {& j
switch(config-if)# ip default-gateway ip-address
5 a+ N: O- S+ B0 b4 l6 a* ]' O 在基于CLI的交流机上设置远程访谒:
4 @) @; M& D0 V4 u, H; W switch(enable) set interface sc0 ip-address netmask broadcast-address
: O$ V' }6 A5 W" \9 o% ^# v# A switch(enable) set interface sc0 vlan6 v% f. n# X9 ~
switch(enable) set ip route default gateway+ s8 {# J: n3 {' B7 r
4.在基于IOS的交流机上启用和浏览CDP信息:
- m4 F. ], E0 S0 l# ~ switch(config-if)# cdp enable
6 W5 Z Y$ X5 M: i f* ? switch(config-if)# no cdp enable
# o+ N# q8 q' N, v5 @, n 为了查看Cisco邻人设备的CDP书记信息:/ G" T5 s, n0 R/ ^" o
switch# show cdp interface [type modle/port]
h3 S! g" q: n* l! Z# D switch# show cdp neighbors [type module/port] [detail]
7 b3 E6 M# Y! I4 l" p4 { 在基于CLI的交流机上启用和浏览CDP信息:
! r4 z0 n% j1 D0 _0 Z4 R switch(enable) set cdp {enable|disable} module/port
7 B' N' g7 E" F+ C: N' T8 |: f5 F 为了查看Cisco邻人设备的CDP书记信息:4 _, Z$ v4 y+ W' A8 v) `0 g
_3 [8 A& `1 L) j0 `5 }
switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] |