- 积分
- 0
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 最后登录
- 1970-1-1
- 阅读权限
- 0
- 听众
- 收听
游客
|
发表于 2011-7-27 18:08:32
|
显示全部楼层
最近813中的LACP实验有部分变化
% Z O5 b! Y; n, u4 c" K1) Distribution Switch (SwitchB)" B7 I! l6 K$ E% V3 w* g c) G
1) Do not change VTP and STP settings
9 P4 f) d0 [9 s. g7 h: w2) Switch needs to be spanning-tree root for VLAN 11-13,21-23. Other VLAN’s can have default STP priority
- [4 m: B; c$ s5 s2 |3) VLAN’s allowed on the trunk are 1,21-23" P2 N/ t, k' M2 r; f0 q: A% A
Access Switch (SwitchA)
3 N6 c" b0 m* |8 |# S" i2 A1) STP and VTP settings should be identical to SwitchB+ r5 e& B! w" r; i" ^
2) Configure VLAN’s as per diagram
4 }4 h4 d7 d+ n9 R6 H7 Q% B K8 Y3) VLAN 1,21-23 needs to be tagged when traversing the link
: K$ H5 w/ h& j6 Z- w" I2 c# ? |4) No routing needed on SwitchA. \, [- i' f5 e5 o4 P
5) VLAN 1 needs to be configured with IP – 192.168.1.11/24
' I1 I* Q! Q) ?# W. N下面提更答案供大家参考
* @8 H1 h7 v6 S' t! v: ^' Q7 r本帖隐藏的内容
- T( j/ {- [9 b6 pSwitchB#show cdp neighbors detail —> Get the IP address of the Router (needed to ping at the end-192.168.1.1)* P* B) o# R, Q4 T9 p
SwitchB#show vtp status —>Write down the VTP mode (was set to Transparent)
9 S8 J* t5 N1 ? `6 z+ n2 f9 @SwitchB#show spanning-tree —>Write down the STP mode (was set to RSTP)
6 T8 F4 K' v' B' Q- O b2 tSwitchB#show vlan —> Check if any VLAN is assigned to FastEthernet 0/3 and 0/4 (VLAN 98 was assigned)
" T5 D( H" R N: f9 [SwitchB#show vlan —>Check whats the native VLAN (can be identified by the name “TrunkNative”, VLAN 99)+ Y" ]; ]) `# @4 V$ S' }* O
SwitchB(config)#vlan 213 z- n6 B+ `6 z# }- ^; l
SwitchB(config-vlan)#name Marketing# v. m3 v( Y( N* m( G: ?7 H
SwitchB(config)#vlan 22
1 r( n! C3 N/ L' ~: JSwitchB(config-vlan)#name Sales
! v( C# q# e' ~5 V, LSwitchB(config)#vlan 23
A u5 I4 A+ q/ [/ n1 M gSwitchB(config-vlan)#name Engineering4 l. T! ~) _: [7 p5 O7 l
SwitchB(config)#spanning-tree vlan 11-13,21-23 root primary3 }0 F. q* Y% V. J1 m
***This completes VLAN configuration***
# F# @" [: i, d! ASwitchB(config)#int range fa0/3 – 4 –> Make sure you put a space between “3 – 4″ for it to accept the command 
4 T! W/ ]1 {* Y! h: e: W
SwitchB(config-int-range)#no shutdown
5 e. D# a7 d: g" tSwitchB(config-int-range)#no switchport access vlan 98 —> remove VLAN 98
( F; m1 L# f( t) ~' T$ [( Y. ]1 E# ^SwitchB(config-int-range)#switchport mode trunk
$ ]. k5 ^1 r% Z3 [) eSwitchB(config-int-range)#switchport trunk encapsulation dot1q —> System might not accept this command, but type it anyway8 L" s6 U6 O/ Q$ x% L
SwitchB(config-int-range)#switchport trunk native vlan 99

+ ]+ a3 ~# b2 u3 c* N: BSwitchB(config-int-range)#switchport trunk allowed vlan 1,21-23( ~' P* `" ]( p3 f0 }% k$ G
SwitchB(config-int-range)#channel-protocol lacp
' q: z( ` q' L4 {8 F& X; S3 S* {
SwitchB(config-int-range)#channel-group 1 mode active –> Distribution switch needs to be ACTIVE
 p' \. l6 G9 F! i% ~! [/ d
SwitchB(config-int-range)#exit1 G. t7 G1 _3 P6 e$ }" l
SwitchB(config-if)#int port-channel 1( l4 h# T0 p, e1 f, b
SwitchB(config-if)#switchport mode trunk —> System might not accept this command, but type it anyway! L" G6 K% r% K _: [) m% N) d
SwitchB(config-if)#switchport trunk encapsulation dot1q- B: v4 O4 ^5 \! v$ q, {$ g
SwitchB(config-if)#switchport trunk native vlan 99
+ W. a: Q: q K. W4 X! x: c( u; h7 QSwitchB(config-if)#switchport trunk allowed vlan 1,21-230 } ` {+ }/ ^' F7 t
***This complete’s Etherchannel configuration***5 ]+ q. b5 u# T: K# o
Move on to SwitchA (Access Switch)
! G: R3 K1 B' E. z% w B1 I! P+ kSwitchA#show vlan —> check if any of the required VLAN’s are pre-configured (Need to configure 21-23,99)
* ]# G6 y% J& Q& }SwitchA#show vtp status —> Check VTP mode of switch (Switch is in Server mode, need to change to Transparent)# b- \) r8 f+ m% {
SwitchA#show spanning-tree —> Check STP mode (Change to RSTP)
# h$ A( H+ R6 Q$ E6 O% ]8 HSwitchA(config)#vtp mode transparent
2 \# p. [9 m. a: f# lSwitchA(config)#spanning-tree mode rstp0 W! W* `9 r+ {3 E+ O& Y! s2 t
***This complete’s STP and VTP configuration***
. T" g0 P: k& }) wSwitchA(config)#vlan 21
) L g* @& u, \/ R) v# Z; ySwitchA(config-vlan)#name Marketing (This are the actual Vlan names I got on my test); [- @1 ^4 ?3 h* E0 V
SwitchA(config)#vlan 22
9 n# U0 W% y8 F1 x8 N6 M; \SwitchA(config-vlan)#name Sales
9 X; v& f4 G+ k; r( C6 dSwitchA(config)#vlan 236 s# b# S' ?1 G
SwitchA(config-vlan)#name Engineering
; f/ [* e2 N0 J) g4 y2 w6 z8 LSwitchA(config)#vlan 99
4 @0 P; d ]# j. e6 wSwitchA(config-vlan)#name TrunkNative
+ E+ B2 @$ W W( m' s* |***This completes VLAN configuration***) f; w! y5 P/ |7 `
SwitchA(config)#int range fa 0/9 – 10

# d: ~2 T- P6 L; }) t: O* _4 u5 c
SwitchA(config-int-range)#switchport mode access

& @, N+ w1 d2 {: h3 N3 G; `4 w: i9 OSwitchA(config-int-range)#switchport access vlan 21
. ` G' m$ J3 _, j, F' T
SwitchA(config-int-range)#spanning-tree portfast* n. L0 Y/ M9 S6 O$ E# ]( a
SwitchA(config-int-range)#no shutdown
( y% F) m3 C5 b* s. g6 t; o! {SwitchA(config)#int range fa 0/13 – 14

0 ^, ~- k, _- n$ ?3 ySwitchA(config-int-range)#switchport mode access
1 O9 g0 x! G5 [5 Q
SwitchA(config-int-range)#switchport access vlan 22
2 H* T2 v; a* l: e1 ~* \# ~
SwitchA(config-int-range)# spanning-tree portfast& f+ ^+ V& Y' w# x4 T# T; K1 x6 ^
SwitchA(config-int-range)#no shutdown
5 k p& W/ j( S, t7 R' VSwitchA(config)#int range fa 0/15 – 16

7 F1 H3 ^* D/ F _3 dSwitchA(config-int-range)#switchport mode access

* p$ W9 w# @; oSwitchA(config-int-range)#switchport access vlan 23
& F+ b: T, ~ W/ `: U7 H
SwitchA(config-int-range)# spanning-tree portfast1 S9 ?4 i6 A1 u
SwitchA(config-int-range)#no shutdown
0 x( H8 u3 |$ `$ C r; H: lSwitchA(config)#int vlan 1. t) }2 y% M2 E, M0 k( H
SwitchA(config-if)#ip address 192.168.1.11 255.255.255.0
1 k8 l7 k1 ^5 T3 Y( y$ vSwitchA(config)#ip default-gateway 192.1.68.1.1 —> You shouldn’t require this command, but i typed it anyway1 L7 `0 g8 W2 P8 `2 Y) N
***This completes access ports configuration***
i9 v3 v! O$ f! vSwitchA(config)#int range fa0/3 – 4

5 A' [) i _$ N' f4 b2 iSwitchA(config-int-range)#no shutdown
7 ]1 {7 q2 D1 V0 O7 S& _# T
SwitchA(config-int-range)#switchport mode trunk
5 V5 M3 s) i; O3 w; GSwitchA(config-int-range)#switchport trunk encapsulation dot1q M, g) @ n; ^( R- ^! |/ X: a
SwitchA(config-int-range)#switchport trunk native vlan 99

2 v6 i) m" A7 ?! \SwitchA(config-int-range)#switchport trunk allowed vlan 1,21-234 ]" k" {# N( ?' Q' M
SwitchA(config-int-range)#channel-protocol lacp

0 X* w% [- {/ CSwitchA(config-int-range)#channel-group 1 mode passive –> Access switch needs to be PASSIVE

" r( E% b- x" l2 ? \$ J+ CSwitchA(config-int-range)#exit. F# C M* T" r9 b
SwitchA(config-if)#int port-channel 1
- ^5 e& a) I, p/ T! VSwitchA(config-if)#switchport mode trunk —> System might not accept this command, but type it anyway
9 J8 L0 S5 E) s' b+ i" n. a8 ^SwitchA(config-if)#switchport trunk encapsulation dot1q
; E: S7 p0 T" P* ~2 b! bSwitchA(config-if)#switchport trunk native vlan 994 |" V& x, T. f( \' V8 W( S! K
SwitchA(config-if)#switchport trunk allowed vlan 1,21-23+ c2 B6 [4 U- d
***This complete’s Etherchannel configuration***# z9 y$ E9 {7 b& Y, j
SwitchA#ping 192.168.1.1; i' c6 n/ c$ J) k- [# V
最后别忘了保存 |
178#
2011-7-27 18:08:32
回复(0)
收起回复
|