- 积分
- 0
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 最后登录
- 1970-1-1
- 阅读权限
- 0
- 听众
- 收听
游客
|
发表于 2011-7-27 18:08:32
|
显示全部楼层
最近813中的LACP实验有部分变化
/ z' N L4 R) I4 l, b1) Distribution Switch (SwitchB)
4 a/ j6 P. C7 A0 O, @- p# a2 x1) Do not change VTP and STP settings
& p& M9 Q9 j3 ~/ \% Q- p! l7 K2) Switch needs to be spanning-tree root for VLAN 11-13,21-23. Other VLAN’s can have default STP priority$ W5 H7 C3 e) G% B% {- p0 E
3) VLAN’s allowed on the trunk are 1,21-23
: K- Y: B* P1 G' J$ d0 g& mAccess Switch (SwitchA)
* ]* G& m8 B. W7 v: \1) STP and VTP settings should be identical to SwitchB- a& D# [, c( q" q5 {
2) Configure VLAN’s as per diagram2 J r5 w7 f$ E, T8 D/ ^" F
3) VLAN 1,21-23 needs to be tagged when traversing the link \! f3 H# n. R/ U; s
4) No routing needed on SwitchA
, R6 p& R( ?6 a5) VLAN 1 needs to be configured with IP – 192.168.1.11/24 J. g0 L- X( V0 w! O
下面提更答案供大家参考
- X" {0 J3 T- T/ ~- g2 ?, U本帖隐藏的内容% o1 j5 z h! C3 y& n0 |
SwitchB#show cdp neighbors detail —> Get the IP address of the Router (needed to ping at the end-192.168.1.1): ^! V( C* |! ?& @& R/ n; |! ?9 s
SwitchB#show vtp status —>Write down the VTP mode (was set to Transparent)
: X7 q; W& q4 kSwitchB#show spanning-tree —>Write down the STP mode (was set to RSTP)& r. c+ }$ W0 Z& C& U8 Z9 u
SwitchB#show vlan —> Check if any VLAN is assigned to FastEthernet 0/3 and 0/4 (VLAN 98 was assigned)
% e9 W, b6 k1 W. A6 xSwitchB#show vlan —>Check whats the native VLAN (can be identified by the name “TrunkNative”, VLAN 99)
! M8 O( V8 {8 |! SSwitchB(config)#vlan 21
" z# H9 Q6 v6 F( v# ?* W0 R4 iSwitchB(config-vlan)#name Marketing
. ~$ t, C0 d$ I- C% J1 @: B- J0 ISwitchB(config)#vlan 22
2 e( R; T5 k# xSwitchB(config-vlan)#name Sales, s8 `; Z4 K3 \& p
SwitchB(config)#vlan 23
& `* I& l, x% K2 }SwitchB(config-vlan)#name Engineering& A) x3 q) u6 _5 Y3 h0 _
SwitchB(config)#spanning-tree vlan 11-13,21-23 root primary
: @7 e& `3 ?; \, s0 _0 y/ Z: r& ?***This completes VLAN configuration***3 ~9 P9 t" P% O2 S
SwitchB(config)#int range fa0/3 – 4 –> Make sure you put a space between “3 – 4″ for it to accept the command 

! c) S; D7 I1 QSwitchB(config-int-range)#no shutdown' I! U$ Q1 ~) c8 V: I% ~. _
SwitchB(config-int-range)#no switchport access vlan 98 —> remove VLAN 98
8 E" L+ u% o: w- K2 ZSwitchB(config-int-range)#switchport mode trunk
, t+ a7 w3 d/ P- R9 ASwitchB(config-int-range)#switchport trunk encapsulation dot1q —> System might not accept this command, but type it anyway: }2 z, C W; v0 z/ Q8 F
SwitchB(config-int-range)#switchport trunk native vlan 99

s: t- A1 v( ESwitchB(config-int-range)#switchport trunk allowed vlan 1,21-23" I& g1 M& C' m1 W- l
SwitchB(config-int-range)#channel-protocol lacp
- N( a; ?( ]( ]% u1 L1 V
SwitchB(config-int-range)#channel-group 1 mode active –> Distribution switch needs to be ACTIVE

/ Z, s) s4 y8 x% ]/ \SwitchB(config-int-range)#exit
+ g/ a O$ {: H5 N: o2 USwitchB(config-if)#int port-channel 1% e' Z/ p- M8 s' R/ N" u
SwitchB(config-if)#switchport mode trunk —> System might not accept this command, but type it anyway
0 l j( m! E. E- eSwitchB(config-if)#switchport trunk encapsulation dot1q5 ]7 }2 g, c0 o8 F2 @: y
SwitchB(config-if)#switchport trunk native vlan 990 T- J/ o2 D0 Z. [, u! q' X% W
SwitchB(config-if)#switchport trunk allowed vlan 1,21-23
; |1 {+ t z& Z***This complete’s Etherchannel configuration***0 q. P1 `2 M; z
Move on to SwitchA (Access Switch)6 ?( p2 R. k: r5 {9 h4 W# d! `
SwitchA#show vlan —> check if any of the required VLAN’s are pre-configured (Need to configure 21-23,99)6 u0 a) z4 w# }; z
SwitchA#show vtp status —> Check VTP mode of switch (Switch is in Server mode, need to change to Transparent)
: Q7 M! v, o/ ~9 N# p+ SSwitchA#show spanning-tree —> Check STP mode (Change to RSTP)* Z4 r) T* W% I/ J- A/ e9 O8 K+ Q0 [
SwitchA(config)#vtp mode transparent
+ g2 N# A! f. v+ vSwitchA(config)#spanning-tree mode rstp
( O& A. i" T/ @ A; _3 D! L***This complete’s STP and VTP configuration***
" K2 H8 B" W u$ @2 d+ h- DSwitchA(config)#vlan 21
$ Q- `; E3 i/ N1 sSwitchA(config-vlan)#name Marketing (This are the actual Vlan names I got on my test)+ C* Y, Y) L# J# m4 Z" Z# J$ I; S
SwitchA(config)#vlan 22
9 j& Q- ^" q7 R! eSwitchA(config-vlan)#name Sales* v9 p# {7 r/ ]1 i2 z3 L" n6 J
SwitchA(config)#vlan 23! t( e& c2 y+ D
SwitchA(config-vlan)#name Engineering
9 p, Y3 K! C% I1 RSwitchA(config)#vlan 996 d$ F, \( }* _$ ]$ ^( C
SwitchA(config-vlan)#name TrunkNative9 |% p7 E, f4 c9 S3 ^8 N& z7 k% A' @
***This completes VLAN configuration***# T. T2 ]9 X# K# r+ v ]
SwitchA(config)#int range fa 0/9 – 10

4 z3 [4 M& @+ O/ T. h
SwitchA(config-int-range)#switchport mode access

8 u0 R' b9 y, G$ B. [4 ]) USwitchA(config-int-range)#switchport access vlan 21
5 x4 }, H0 T$ B# w
SwitchA(config-int-range)#spanning-tree portfast. a/ [; i: ~0 U/ Y' k
SwitchA(config-int-range)#no shutdown; f! B- h9 w9 _" O: L8 i1 F
SwitchA(config)#int range fa 0/13 – 14

+ N) i" ?( K# fSwitchA(config-int-range)#switchport mode access

& u( s- ?! v/ U/ f+ QSwitchA(config-int-range)#switchport access vlan 22
9 \. M6 S. A* ?0 y+ {- L; @
SwitchA(config-int-range)# spanning-tree portfast* t3 a( ^8 s/ E0 H& V
SwitchA(config-int-range)#no shutdown
4 Y5 E0 D7 M1 {" z) K. \SwitchA(config)#int range fa 0/15 – 16
2 f! u0 P6 R$ M& V9 @; n8 o
SwitchA(config-int-range)#switchport mode access

; X& y4 j0 X" G- j oSwitchA(config-int-range)#switchport access vlan 23
+ K8 E, N) [4 l9 ~
SwitchA(config-int-range)# spanning-tree portfast
4 ~- h6 G+ r1 f n9 N1 m4 xSwitchA(config-int-range)#no shutdown9 \4 b* ]+ i3 X% {0 m. K0 A$ \$ i
SwitchA(config)#int vlan 1
4 N9 G i5 r5 y" F# K O' Z' e3 vSwitchA(config-if)#ip address 192.168.1.11 255.255.255.01 g* a+ I$ N( U' y* |- Z# F
SwitchA(config)#ip default-gateway 192.1.68.1.1 —> You shouldn’t require this command, but i typed it anyway
! b$ ^6 ~3 ~" y2 K***This completes access ports configuration***9 _% T0 `7 d! M2 d: r
SwitchA(config)#int range fa0/3 – 4
0 b- I+ ~- q- F$ V* Z) z/ M
SwitchA(config-int-range)#no shutdown

{6 d: W4 ~( q4 _4 K5 iSwitchA(config-int-range)#switchport mode trunk
4 F- ]" ?7 r4 S& q/ O0 hSwitchA(config-int-range)#switchport trunk encapsulation dot1q$ s0 m, z% y7 Y# p! e' B9 X
SwitchA(config-int-range)#switchport trunk native vlan 99

/ N9 H( g/ h! \7 Q* e' K2 aSwitchA(config-int-range)#switchport trunk allowed vlan 1,21-23' z- l, V% L( B
SwitchA(config-int-range)#channel-protocol lacp
0 i2 e4 P$ t4 Q: R' Q0 b9 k
SwitchA(config-int-range)#channel-group 1 mode passive –> Access switch needs to be PASSIVE

, [4 r! ? Y6 R# u3 USwitchA(config-int-range)#exit
P: ~- v4 q( p! DSwitchA(config-if)#int port-channel 1
5 o. p7 B9 T; I9 k3 R, S: rSwitchA(config-if)#switchport mode trunk —> System might not accept this command, but type it anyway5 X; u# m2 W5 N# @/ H, i
SwitchA(config-if)#switchport trunk encapsulation dot1q
, B5 k; d ?; tSwitchA(config-if)#switchport trunk native vlan 99
! }" l! X5 b. e+ M8 Z( K7 xSwitchA(config-if)#switchport trunk allowed vlan 1,21-23( o$ q4 M% o7 u! u
***This complete’s Etherchannel configuration***6 f* N0 o6 y! t2 E! P4 [( G7 E
SwitchA#ping 192.168.1.12 Z& r+ X6 V( \, V
最后别忘了保存 |
|