交流机虚拟网(VLANs)的设置
- y; @% U2 T' k, F# E
: p' p$ a9 e+ x 交流机虚拟网(Virtual LANs)的设置:
- {3 t5 H8 D# l% F) V/ ], W Catalyst 5000上实现VLAN划分及外部VLAN路由设置 . W" A0 @7 A6 m- t/ L1 a+ t) e" r
分配VTP域(a VTP Domain) $ i, s0 [3 b2 ~! W) t2 I
将Cat5000插手域 A& j6 |3 x2 b# B' @# R" r* t( U- E
指定中继端口(a Trunk)
0 W4 F9 h3 c0 c4 Q+ b0 \# h, ~ Dynamic ISL
) S; W3 D U( v" C( v+ N7 @ 分配VLAN到端口 " j; A3 \/ w5 |1 c, h# ^
设置VLAN 20
: e1 R9 ?/ _% l- X 设置装备摆设Router
; L' }' ]/ U7 | ------------------------------------------------------------------- $ ~- o3 s+ H- R( Q
9 {4 c+ ~0 q5 x0 G8 t4 V 注:存在三个VLAN,在VLAN之间经由过程Router做路由.; o; i* B, s4 B. z/ Z% H5 q
-----------------------------------------------------------------
5 L M. L' b% F" G7 }1 e- J* d. J 分配VTP域
3 W9 U' O5 ?2 O; \# w% E4 `3 ^# j% i 什么是VTP?
B5 a) ]6 ]: Z: @3 i, A VTP是VLAN Trunk Protocol的简写,它供给每个设备 (router 或 LAN-switch)在中继端口(trunk ports)发送广播. 这些广播被发送到一个组播地址,并被所有相邻设备领受. 这些广播列出了发送设备的打点域,它的设置装备摆设修订号,已知的VLAN, 及已知VLAN简直定参数.经由过程听这些广播,在不异打点域的所有设备都可以进修到在发送设备上设置装备摆设的新的VLAN.使用这种方*,新的 VLAN只需要在打点域内的一台设备上成立和设置装备摆设.信息会自动被不异打点域内的其它设备学到.
* _1 e5 t' M @9 Z
+ s: ~# M! Y7 r6 F! P+ F7 s9 M 分配VTP域) K6 f9 Q) P# j6 P8 |0 x
首先分配VTP域名(a VTP domain name),在不异打点域内的交流机可以经由过程VTP和谈互相进修VTP信息.
! v G' D. a$ Y2 C- U, g) Q& H& |9 U
2 L- E7 l9 S1 n; d) V. Z Cat5001> (enable) sho vtp domain
& e7 p$ P/ `# ^9 ]4 @ Domain Name Domain Index VTP Version Local Mode4 V. b4 R+ x' g4 L$ g
-------------------------------- ------------ ----------- -----------
4 ~1 ~0 a* X+ I 1 1 server
l6 p# h2 V8 G& z5 D4 t Advt Interval Vlan-count Max-vlan-storage Config Revision SNMP Traps) x" X5 w3 E+ N3 _" U: ^
------------- ---------- ---------------- --------------- -----------3 j! z! D* W! I+ D2 b# ~& z
300 5 256 0 disabled
2 Y, N, J1 l2 K5 d. |7 ^/ G Last Updater
+ P! ^( G1 c% N$ c6 K: H3 W: V# B( _- v ---------------
$ P8 W$ b1 y9 U8 L$ N9 \ 0.0.0.0
+ P3 h( i* B3 c5 ]% V0 Y& K Cat5001> (enable) 2 [# x* {, X# d, O: a! j
Cat5001> (enable) set vtp domain cisco
) a$ L# `2 Y' M7 v$ v$ Q3 n9 W VTP domain cisco modified
4 q" j1 K/ Y, g2 M, J# V Cat5001> (enable) sho vtp domain
# Y/ f4 s T2 Q/ s$ i Domain Name Domain Index VTP Version Local Mode
% d* Y6 E3 {3 n3 u4 q7 H4 o8 x -------------------------------- ------------ ----------- -----------
4 ]# V. l V6 H3 ` cisco 1 1 server 3 M1 Z7 B" z5 r: ]' Z9 {
Advt Interval Vlan-count Max-vlan-storage Config Revision SNMP Traps
# P# `% w1 I7 b- [: w ------------- ---------- ---------------- --------------- -----------! r" Q* X- u0 B
300 5 256 0 disabled% F& \3 l) e; K7 B4 Z+ e6 ?
Last Updater
9 r @: {3 ?7 h- w5 L- v ---------------
# @. a! X+ `9 S6 i+ E 0.0.0.0 - f/ L4 n% q" I' \6 ~( Y* X
Cat5001> (enable)
& a, q, i4 `1 X( Z. u: _* e4 o- y% j4 L0 b
--------------------------------------------------------------------------------) \7 C" g! e) b5 Z4 {
将Catalyst 5002插手域
1 [. T5 r. A" Y" S+ ^+ p" } 需要将Catalyst 5002插手名为cisco的VTP打点域, 并设为VTP client,它将领受来自VTP server 的VTP设置装备摆设及更新.5 s* G2 b; R8 q3 j+ u
注重:Catalyst 5000系列交流机默认为VTP server.
& v" j8 U& Y b" @
) E1 N- Z4 G" p5 n5 {% {- F cat5002> (enable)1 F0 B" a# `6 Y/ d* l3 T9 N z
cat5002> set vtp domain cisco mode client 9 Y% D+ i2 B/ ~- D" J2 l; Q
+ R. X- s* {' t8 g% U
指定中继端口(Trunk ports)
( u, T: R3 E/ Y2 M2 [6 x VLAN Trunk和谈(VTP)只在中继口(ISL , LANE 和802.10)上传输,应在二个Catalyst5000
6 p- x) K0 ?4 e! C 交流机间界说哪个口作为中继端口(Trunk port).
- f3 X9 N: u$ t. [2 A Inter-Switch Link (ISL) 中继用于Fast Ethernet和Gigabit Ethernet端口
1 t1 N* R2 w! h0 A IEEE 802.10中继用于FDDI/CDDI端口 : E. o `1 L' D1 `0 \' F
LAN Emulation (LANE) 中继用于ATM 端口 8 ` b# b# u6 m: q% `$ x
Cat5001> (enable) set trunk 1/1 on
9 M+ p9 i8 i E- q' W4 Q Port 1/1 mode set to on./ S8 C0 m* M* ~1 e0 p" G% u
Cat5001> (enable) 2 `) }; l, K3 p: ^* ~
Wed Jun 19 1996, 15:00:02 Port 1/1 has become trunk.
5 n, T8 l- f& M6 k+ h# X% T1 Y0 f+ l. h4 J
Dynamic ISL# a6 U8 N5 S( B8 Q0 v* o) D6 i
有了DISL(Dynamic ISL), 你不需要改削远端的Catalyst 5000;以下信息将显示在远端的Catalyst 5000. ( d& S) S& l7 `) a, g& j& V5 d
. g/ a+ r5 c1 v* b# ?% l
Wed Jun 19 1996, 15:51:59 Port 1/2 has become trunk.
3 i+ _; C7 I6 [# ?1 {" ] Cat5001> (enable) sho trunk
$ n; }* M0 V* x( w( X) g& x Port Mode Status
% }/ E+ v8 X6 z; b% {1 L ------- --------- ------------
1 ?3 V& |% n4 N Q6 b8 g 1/1 on trunking 2 N, F! o- z( J: L( |
1/2 auto not-trunking 6 ?; H- m7 U) G/ Y) z
2/1-2 off not-trunking & Y5 p- b9 ~# X& M, e
5/1 auto not-trunking
; Q: d _ x+ |% M 5/2 auto not-trunking
$ K* A* Y, P8 ^ 5/3 auto not-trunking
& m7 N: ]0 U8 I& f 5/4 auto not-trunking
3 g( S y2 V. z2 [5 u 5/5 auto not-trunking
7 q* t+ G0 S0 T: X; H; }7 M 5/6 auto not-trunking u2 E: R$ x6 l5 C" ^! [+ W5 r
5/7 auto not-trunking , b( L8 U4 v- b3 \0 y8 c& }
5/8 auto not-trunking 9 m9 P. [; o& A5 f8 y) G
5/9 auto not-trunking
. u( M; z$ q4 f& n( K 5/10 auto not-trunking
6 y# w* [( `# t 5/11 auto not-trunking : w" D! b, y0 n5 e j) L
5/12 auto not-trunking 8 I/ Q5 o# ~; h0 e! r
Port Vlans allowed% ?" M& B. v6 O# l
------- ---------------------------------------------------------------------
4 [; J% G) W5 d1 n 1/1 1-10009 x/ Z% q& ]! t7 Q) `
1/2 1-1000. u9 y) N" E6 d" d& s5 c
2/1-2 1-1000
6 S/ p+ K# G) b6 E 5/1 1-1000
3 `2 R* n( m+ o 5/2 1-10007 H% O* K1 \: Y( b7 O2 A4 v; t5 @
5/3 1-10004 F# z$ y* q, G" _$ A" I- a
5/4 1-1000
7 Q5 h) y3 P( O0 w2 Q, Z+ z/ V 5/5 1-1000) ~7 S+ Z, d9 n8 w9 ?: n
5/6 1-1000
) P- d* e/ i2 V2 R8 h" z2 b& f5 s 5/7 1-1000
) X4 Y2 f& j9 q j 5/8 1-1000
5 V/ @! P0 z# n. N; F 5/9 1-1000
0 z% {& T0 z" \& M! p( R% K+ R 5/10 1-1000+ h: m" A. i" g+ V
5/11 1-1000" L) ]! }& ^1 S# c3 u, C
5/12 1-1000
% c% E6 i& e2 V: @" R Port Vlans active
1 y7 _, |2 j) C+ s |