交流机虚拟网(VLANs)的设置
* ?8 N: ~* O9 h3 N+ B0 X6 N
2 g5 r* \) l6 L( ?. }0 ^8 K 交流机虚拟网(Virtual LANs)的设置:5 U. A/ s6 l; q4 P, M0 t
Catalyst 5000上实现VLAN划分及外部VLAN路由设置 5 k# x3 ^# y, ~8 M1 ~
分配VTP域(a VTP Domain) . e) \) U% F9 O; f9 R" _$ |9 A7 E
将Cat5000插手域
2 w9 i6 k- k$ `* e7 p4 S2 g 指定中继端口(a Trunk) 7 ~# a) }0 C& K# r9 P! \) X& P
Dynamic ISL
" j- c; ^; R' D+ P# c, ~3 `) ?: p8 r( W 分配VLAN到端口 / w9 B: w' Q7 v& u6 c `) Q% w
设置VLAN 20 # J1 C; H1 n' X" X
设置装备摆设Router
! ^# C7 {- D0 `2 B5 U' b; p; } ------------------------------------------------------------------- 1 b& H+ v4 _4 W/ w0 }$ [/ m3 {
* P7 l' p, G- m- j
注:存在三个VLAN,在VLAN之间经由过程Router做路由.
- B; A( w3 L* d' N+ y6 y x -----------------------------------------------------------------" Y G, ^$ u5 t4 u) y0 M
分配VTP域
" M# @+ c6 p( r0 n: r' G1 c, n 什么是VTP?
& b! s8 U% z- |4 v2 r% [ VTP是VLAN Trunk Protocol的简写,它供给每个设备 (router 或 LAN-switch)在中继端口(trunk ports)发送广播. 这些广播被发送到一个组播地址,并被所有相邻设备领受. 这些广播列出了发送设备的打点域,它的设置装备摆设修订号,已知的VLAN, 及已知VLAN简直定参数.经由过程听这些广播,在不异打点域的所有设备都可以进修到在发送设备上设置装备摆设的新的VLAN.使用这种方*,新的 VLAN只需要在打点域内的一台设备上成立和设置装备摆设.信息会自动被不异打点域内的其它设备学到.) s, x0 u4 |$ D8 O+ H
( t& |4 t; v- @% n9 ^+ z# h- \$ y 分配VTP域8 K4 t. @2 i, `
首先分配VTP域名(a VTP domain name),在不异打点域内的交流机可以经由过程VTP和谈互相进修VTP信息.
( q, k h9 I; | g2 e) u/ Q0 S+ E( s: B% A3 _
Cat5001> (enable) sho vtp domain
9 H4 `, B- [3 z! j% u, p Y Domain Name Domain Index VTP Version Local Mode
$ g* \5 j# u6 j1 M4 y }1 ^* |6 O -------------------------------- ------------ ----------- ----------- e1 b5 U7 c7 ~- k+ q
1 1 server
9 i# B& c# Y8 V# N' b! F Advt Interval Vlan-count Max-vlan-storage Config Revision SNMP Traps* Y) ]1 `0 v, `3 n; F
------------- ---------- ---------------- --------------- -----------
, F1 F0 j4 f- P, s1 K 300 5 256 0 disabled
' C5 B4 P: q6 {' y Last Updater
) f5 p) _6 \: p8 _+ g6 m# `2 O ---------------* f' J# v5 g K% e, W; ?1 |' W2 V
0.0.0.0
; _9 L8 {+ D) q" e( A7 n4 [ Cat5001> (enable)
% F8 U0 q F" K' A) M Cat5001> (enable) set vtp domain cisco ! H; T n1 |! ]; o, U; U
VTP domain cisco modified/ i" G P9 b- F& c6 Q
Cat5001> (enable) sho vtp domain* q: z$ a7 d2 t* ]& U* E ~
Domain Name Domain Index VTP Version Local Mode+ D5 B$ x N+ w" n1 I) X( J
-------------------------------- ------------ ----------- -----------
+ K' m4 u2 L/ K- u8 U4 Z9 E( k cisco 1 1 server
4 I# n( g2 }$ G1 M Advt Interval Vlan-count Max-vlan-storage Config Revision SNMP Traps
2 d* J4 m: f; ^% M( i" { ------------- ---------- ---------------- --------------- -----------2 ^' Z7 U3 J/ q$ k. f# B
300 5 256 0 disabled
3 p& A) X" {/ p- p- ~ O! s6 i4 { Last Updater0 v+ D1 E V- d5 d/ ]7 u
---------------
D- s6 ~7 X% W! w: U; L 0.0.0.0
% K; ?8 A; a7 W; Z, o Cat5001> (enable) % q! m/ \* W5 `5 I7 Z0 ?
. L4 s5 Z/ m" f+ b9 o+ k+ t! u --------------------------------------------------------------------------------
5 [" s9 h# P7 Z5 { 将Catalyst 5002插手域
# C; S L* P' r 需要将Catalyst 5002插手名为cisco的VTP打点域, 并设为VTP client,它将领受来自VTP server 的VTP设置装备摆设及更新.
8 b/ u" K! G. V6 | 注重:Catalyst 5000系列交流机默认为VTP server. 9 h7 k+ G1 L3 k7 A0 v
$ U. E' r% |2 s0 m, K4 q cat5002> (enable)( h* g B+ F4 w
cat5002> set vtp domain cisco mode client 7 |& v3 e, |# }0 j
/ U5 J; d- ~( L) t- w1 f! O. m/ Y 指定中继端口(Trunk ports)0 Y. [) t$ g: r
VLAN Trunk和谈(VTP)只在中继口(ISL , LANE 和802.10)上传输,应在二个Catalyst50008 Y0 f0 u& a: C3 m1 o
交流机间界说哪个口作为中继端口(Trunk port). 2 X+ D$ `3 B& Y% I0 i; a. A7 y' K
Inter-Switch Link (ISL) 中继用于Fast Ethernet和Gigabit Ethernet端口
( e/ u( U' Y3 ~4 u; s IEEE 802.10中继用于FDDI/CDDI端口 - ]- e8 \& ^+ \2 R
LAN Emulation (LANE) 中继用于ATM 端口
% P; x' W4 I/ Y* } Cat5001> (enable) set trunk 1/1 on' a9 k3 t9 a6 \+ {
Port 1/1 mode set to on.
+ W% V8 b, [/ ^6 q+ X Cat5001> (enable)
# \8 G2 B8 L. Y& F% h6 X1 x0 G Wed Jun 19 1996, 15:00:02 Port 1/1 has become trunk.; O& z7 F6 w/ a9 n
$ m- d1 u$ f7 [8 g G) J" K+ J) M) f' P
Dynamic ISL
( H! W- N% }' w. U/ O 有了DISL(Dynamic ISL), 你不需要改削远端的Catalyst 5000;以下信息将显示在远端的Catalyst 5000.
& _: M9 {* t/ m1 a1 b5 |3 }+ z- g; K
Wed Jun 19 1996, 15:51:59 Port 1/2 has become trunk.# t2 |9 G2 d; ^
Cat5001> (enable) sho trunk
7 g/ B2 E6 f1 n# b) Y2 t Port Mode Status
5 \4 J8 k, a5 x# w, W' { ------- --------- ------------
* H* X6 @) p8 k% y 1/1 on trunking
9 r" k2 b% F9 r4 E$ H 1/2 auto not-trunking : t1 h8 L8 P+ R1 [$ M2 j- K
2/1-2 off not-trunking . d+ r% ~0 ~& a% Y. D- M' z
5/1 auto not-trunking
6 _! W! s4 W7 I9 p5 b/ ~' Q 5/2 auto not-trunking ; n/ a" \4 S2 F
5/3 auto not-trunking 9 r1 z2 p9 q3 n: {5 N
5/4 auto not-trunking
9 @1 w% p1 J9 @6 x: M; b' R: A: ] 5/5 auto not-trunking
+ z4 Z: v7 e7 U& f% J) R m' ` 5/6 auto not-trunking / _* Y* r6 O; K
5/7 auto not-trunking 6 G) W( a/ F# L9 q( y" \, g
5/8 auto not-trunking ; q, {3 n# ~7 J% A
5/9 auto not-trunking
) p! H1 Z& o$ E 5/10 auto not-trunking + S; `/ Q' G1 f9 v# r* V
5/11 auto not-trunking 5 P( X2 q1 [, M+ z
5/12 auto not-trunking ' W/ V3 x9 z5 Z+ ~% Q3 c5 l, X5 _/ q
Port Vlans allowed
# e; d y1 ~4 V7 c0 o! j) y ------- ---------------------------------------------------------------------
" Z5 I( s# L, U( i( z6 X4 w+ } 1/1 1-1000- [% \0 i0 h$ J' L* v1 |
1/2 1-1000
* Y* K. ^5 s, m9 p 2/1-2 1-1000
: Z S, n9 M9 }- h 5/1 1-1000
4 g! p5 D0 `- R% h6 C 5/2 1-1000+ y& g, w6 d9 u
5/3 1-10009 X; E+ e& n4 V3 Z; ^& t& p0 L# t
5/4 1-1000
2 e8 U- i- @; O( I2 [2 o0 N- b 5/5 1-10000 _9 v) U" [# F" {4 ~: I& D# t
5/6 1-1000
3 Z3 K7 w! r, N _! @& O 5/7 1-1000
7 [ {- D# n- X; a8 G 5/8 1-1000" k1 t3 H& l9 G
5/9 1-1000
* J3 d" t1 L1 l, Z/ z9 m 5/10 1-1000: E. M5 s3 I* M8 K6 s
5/11 1-10004 C s# r0 ^, q' Z1 z
5/12 1-1000
/ F. m' J+ u# \' c' w% u Port Vlans active. K! C5 c0 y) f
|