a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 164|回复: 1

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

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

使用道具 举报

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

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

------- ---------------------------------------------------------------------! G" k) _4 i/ T3 {4 a
  1/1 1
! i' r6 }7 Y" {/ p. N2 ?* X  1/2 18 m3 L& [% Z3 o2 ]/ g. `
  2/1-2 1+ i9 v6 p. G; Y2 i& H4 f: b
  5/1 1
+ u: ?4 D' k: E- W' L5 K( y. B& {  5/2 1* Q0 l; e6 g* Y" n0 d
  5/3 1) A' E0 x! b; T6 ~$ O: ~, g
  5/4 1
! n6 y& r+ @2 Z& ]; c, u! Z  5/5 1- \7 `4 e5 \6 Y* j1 n
  5/6 1' e( D8 p' q; Q: T& U
  5/7 1
* X/ i0 d# M  }& [* @7 J  5/8 1* P# u5 u: ~& k- F4 h1 ?
  5/9 1: B' T) N  p3 A
  5/10 18 F& f! @- A( \: j& a* ^# U' T1 f
  5/11 1$ t  |* v* O, d+ O
  5/12 1
" r( a" a" a+ M1 F$ v. U; `# R$ F" V! h" c, _( ?
  注重: DISL在Cisco IOS软件中不撑持.
& E! H4 w8 h( D4 r' L! f9 }$ w' O; G! q
  --------------------------------------------------------------------------------
, k# Y/ N7 l9 r! u. |% ?  分配VLAN到端口
7 e' S: p! V) \! I$ {$ N  Cat5001> (enable) set vlan 2 3/2-202 B+ p: V# R2 E3 I
  VLAN 2 modified.
# m* q# ], ?1 k7 R/ ?: b! Y  VLAN 1 modified.
+ O" G5 L. O( J3 b( u  VLAN Mod/Ports
) S- B% Z# R, Y& c5 T* v: T  ---- -----------------------
" ?- C. Q4 T; c. z' V) [' |  2 1/1
% A( i- p  W# t" L, s" A: k  3/2-20 6 D5 T& Q3 t# r& A

# ~$ r( ~% z* s5 N, P1 Z  Cat5001> (enable) set vlan 20 5/1-6
* }3 C5 P, M/ N' |  VLAN 20 modified.+ e) x7 d/ ~- H3 N7 g6 Z' R
  VLAN 1 modified.
* |% Y& F1 T" g+ X2 _$ r9 @  VLAN Mod/Ports
" z. B8 U4 W) I! }3 \9 K7 k  ---- -----------------------
9 {3 j! T/ i) S4 W4 D' K! o/ b  20 1/1: l) J7 Y6 F' [  D
  5/1-6
" ?3 M2 z2 G4 X* d, ^8 N
1 P6 j& {3 l0 m  Configure additional information for VLAN 20. 2 G4 G' B0 c( L& E: k
  On the other Catalyst 5000 :
1 L! u7 U* z$ f7 d
4 N/ b  E0 G+ W9 V9 p2 [  Cat5002> (enable) set vlan 2 4/1-2,5/6-12
$ }+ ~0 P: a, ?0 r& b/ g" q. }1 P( l  VLAN 2 modified.) ~) Z# c: L6 k, k- K; V
  VLAN 1 modified.
/ e: |: t! p4 A5 ~- ]  VLAN Mod/Ports- e8 `. ~' J" O0 |
  ---- -----------------------; t, k5 @/ k* G6 j+ Y% |
  2 1/2
5 o' f0 h2 z% ?( ~  4/1-3,4/5-23/ q  G) @! V6 k3 H8 d
  5/6-12
& C$ s; O2 N& Q$ L- }
/ S/ L- S9 Z( x) A  Configure additional information for VLAN 20.
8 l9 p: ~  S. a5 C) b. L; ?: F8 Z! M& C# i) t" o" }% E
  Cat5002> (enable) set vlan 20 5/1-5/ [. W. l5 b# {2 |" \7 H
  VLAN 20 modified.- u; j! V+ g1 d* R1 @7 A( f
  VLAN 1 modified.
6 o) _3 b0 Z; F, R% V+ S  VLAN Mod/Ports
/ J4 a' ?, i/ C9 _9 J3 t  ---- -----------------------6 |. ^8 [/ I; S
  20 1/2
# ]6 J. k. m5 k- j. I7 m7 d' C- W  5/1-5
# U( v5 m! \/ _0 T; |. I
9 a! d/ J- F5 T+ a" s, t  Configure VLAN 20 on a VTP server. , N6 g& J' V" L& j) Y/ w' @5 A
: {, O' @! @# d. A0 M
  --------------------------------------------------------------------------------
, y* r- c2 ^1 J0 h$ y' u1 n  显示端口设置装备摆设
$ q6 ^2 \5 [$ I  u# q  Cat5001> (enable) show port 4 C+ Z1 I: `; F0 H8 r7 T; ]7 |
  Port Name Status Vlan Level Duplex Speed Type9 v" f' _. J3 a0 W& j6 j2 N
  ---- -------------------- ---------- ---------- ------ ------ ----- -----------
4 V5 \9 F5 @4 B/ @8 j# s  1/1 connected 1 normal half 100 100BaseTX
- B6 D" Y3 N5 X8 H# U3 e  1/2 connected trunk normal half 100 100BaseTX& u. ]" T9 \: f1 w! l: z+ p; U
  2/1 connecting 1 normal half 100 FDDI) G7 ]) L, a+ W6 E1 X" f$ N& i
  2/2 connected 1 normal half 100 FDDI6 d$ u  G, m, z
  4/1 inactive 2 normal half 10 10BaseT
! _  v( \4 l, \2 w3 o# t  4/2 inactive 2 normal half 10 10BaseT2 f# t: Y+ r: B7 {7 m
  4/3 inactive 2 normal half 10 10BaseT
* l+ J. Q) M8 G0 w8 ^  4/4 notconnect 1 normal half 10 10BaseT
5 {" k2 F6 O  U+ B' H  4/5 inactive 2 normal half 10 10BaseT2 O0 P0 Q; ^0 m
  4/6</p>
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-13 02:07 , Processed in 0.382518 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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