a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 165|回复: 1

[CCNP] CCNP指导:路由选择原理(8)

[复制链接]
发表于 2012-8-3 20:20:19 | 显示全部楼层 |阅读模式
交流机虚拟网(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  
回复

使用道具 举报

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

CCNP指导:路由选择原理(8)

------- ---------------------------------------------------------------------+ ]. p* y" B3 v# v6 j9 R4 k/ O1 m
  1/1 1, p1 E% P  h; U7 y) V: n1 J5 A
  1/2 1( X3 E  ], }0 N$ a, F9 T
  2/1-2 1
$ n5 l/ G: C# M  5/1 1
1 j! D4 P& O' g) k3 A) R  5/2 1* U) T6 y- [3 @  s0 T% W3 S! t
  5/3 1
: f, d8 M- q% w: G8 j: Z  5/4 1  c1 H, ^" ]4 }
  5/5 1
5 P$ |* Z( V# y6 E- Y2 ^+ i' M  5/6 1
) M( k3 _7 V7 o$ @  p4 g  5/7 1
1 ?$ G5 t5 C9 ?6 L  5/8 1
2 Z9 ^+ K" t' Q( w  5/9 1$ d5 M. M0 E: Z1 _, n$ i& u
  5/10 11 f7 t" g8 j$ @; ]  j0 P' E
  5/11 14 @1 D2 y& z* _& o, V3 ?; K. ^( k
  5/12 1
: }& Z9 J4 C3 c, o. L+ l( ?. W; x: g
( g! r# C# b: Z: V- s  注重: DISL在Cisco IOS软件中不撑持.
* ]4 ~# ~: i' v# Y* }3 Q# j' A4 c  L% s4 t4 W7 M& ?% M; n' W$ c: h
  --------------------------------------------------------------------------------# i6 g6 ~  g% C7 P" t
  分配VLAN到端口% a6 }1 d6 M8 M# e
  Cat5001> (enable) set vlan 2 3/2-20
, w7 t0 M7 L3 y& `% b  VLAN 2 modified.
5 i& e0 r/ p7 d  VLAN 1 modified.8 ?/ c5 |  }: F( x' W& W
  VLAN Mod/Ports
3 y6 w4 Y3 O  ~" }3 O  ---- -----------------------
9 V9 i7 a: q. a" c  2 1/1
  G3 M' J/ O) t  3/2-20 : e8 ]" P4 p# U8 F: S0 a. L

2 e" S+ P- ^/ c1 U; E$ e7 B  Cat5001> (enable) set vlan 20 5/1-6/ w) {8 k4 t$ X
  VLAN 20 modified.( W% j5 d6 \* L" Q
  VLAN 1 modified.: }# _* ?- I8 N) e' o8 G
  VLAN Mod/Ports
" v- Z1 F7 s+ i+ w  ---- -----------------------3 d, q7 r" X# m6 k+ R5 k
  20 1/1
0 W' g3 \* b0 v* ]% f  5/1-6
  f8 a7 x6 F/ ]" B- B+ F& ?4 U4 u1 e% m
  Configure additional information for VLAN 20.
- F5 f5 ~$ v  T2 Y! a/ v  On the other Catalyst 5000 :
; E6 V/ T3 P' L& ^: o. w7 S. K9 M& U* N
  Cat5002> (enable) set vlan 2 4/1-2,5/6-12
$ @$ |) v" }6 S% Q; }# Y6 z  VLAN 2 modified.
& X' M2 A3 L& n7 G7 q4 D" O3 x' ]& c  VLAN 1 modified.
( H7 u- t2 O  g  VLAN Mod/Ports, e' h/ i. n( p+ M( `, O4 M, V  D4 \4 K' J
  ---- -----------------------$ A- C/ w' t- j4 `7 {
  2 1/2$ A- L$ M0 X2 Y$ g
  4/1-3,4/5-231 Q' I! q% W$ K% k2 G
  5/6-12
) k6 J7 E: m$ i. p8 L" N, p
& a% {  S/ R4 Z% b, O  Configure additional information for VLAN 20.
: ~7 K: C# R; M/ M6 C) i8 Y" ~
. f, N: `4 i- z  Cat5002> (enable) set vlan 20 5/1-5
& W4 `9 N) U' n/ e  VLAN 20 modified.
' E& e- X& u# y/ x; m; w6 Z; f  VLAN 1 modified.( y( o( ?4 `* c: X
  VLAN Mod/Ports
6 }# Y+ L' `' @$ m9 |  ---- -----------------------
* W: ~. c7 K5 ], B  20 1/25 T: S7 R. Q# S) M# L
  5/1-5 % D& i+ w5 A: Y. a# Y
! K0 @2 a& g5 V4 S
  Configure VLAN 20 on a VTP server.
0 ~- A% ~- F7 v
7 y  C3 B; o4 J8 }7 }2 Q, O9 R& i  --------------------------------------------------------------------------------
2 j$ y* [8 w+ z/ R/ g  显示端口设置装备摆设: z5 U% e; a( ^) o6 _7 f9 ~# s
  Cat5001> (enable) show port $ M3 T0 m: {4 t: f. t' n+ ]. U/ B; C/ z
  Port Name Status Vlan Level Duplex Speed Type
) m- i2 P4 F" |1 {' r" v2 ^  ---- -------------------- ---------- ---------- ------ ------ ----- -----------; j/ n" _, e: [6 [( S8 Q
  1/1 connected 1 normal half 100 100BaseTX+ g5 C( Y! J+ C2 m. I4 G: V
  1/2 connected trunk normal half 100 100BaseTX& {/ m4 D+ P5 g( }  c
  2/1 connecting 1 normal half 100 FDDI
5 L! u( |0 e) n; M/ [8 s  2/2 connected 1 normal half 100 FDDI
& }( l% ~4 {; ?: O- }  K) L6 ~1 m  4/1 inactive 2 normal half 10 10BaseT+ Y5 g; o0 [' {8 G3 B" j
  4/2 inactive 2 normal half 10 10BaseT+ @$ `4 R1 \  ]  ]" p+ h5 p. l
  4/3 inactive 2 normal half 10 10BaseT( v+ k0 |1 z' Y" ?3 t
  4/4 notconnect 1 normal half 10 10BaseT) N5 M& f7 B1 Q: ~
  4/5 inactive 2 normal half 10 10BaseT
) K% o1 c8 B) I( b' m  4/6</p>
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-14 10:41 , Processed in 0.246998 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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