- 积分
- 0
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 最后登录
- 1970-1-1
- 阅读权限
- 0
- 听众
- 收听
游客
|
发表于 2011-7-27 18:08:32
|
显示全部楼层
最近813中的LACP实验有部分变化5 S4 g* b! s# L0 _9 x
1) Distribution Switch (SwitchB)4 n! k. m# k e2 i. I
1) Do not change VTP and STP settings: @1 d# R& {/ ^# J5 B8 }
2) Switch needs to be spanning-tree root for VLAN 11-13,21-23. Other VLAN’s can have default STP priority+ ^8 k" Y: F6 q0 y
3) VLAN’s allowed on the trunk are 1,21-23
! \( S0 K* E9 V/ F2 g! U2 DAccess Switch (SwitchA)
3 k/ n w6 g) C2 V' P1) STP and VTP settings should be identical to SwitchB/ `# T [ t {4 c6 |
2) Configure VLAN’s as per diagram
6 J# a* y# _5 v' `% O3) VLAN 1,21-23 needs to be tagged when traversing the link
/ A7 e4 J( {, m; y4) No routing needed on SwitchA$ V( K( E: p+ b. Y
5) VLAN 1 needs to be configured with IP – 192.168.1.11/24. A0 |1 x; @2 ?3 f0 |0 ?
下面提更答案供大家参考& j; P2 `9 Q$ R1 n! k) _
本帖隐藏的内容
0 q! R' B3 Q$ f- _. L! ^+ GSwitchB#show cdp neighbors detail —> Get the IP address of the Router (needed to ping at the end-192.168.1.1)
0 {* x" G8 B* X9 T% USwitchB#show vtp status —>Write down the VTP mode (was set to Transparent)
: P9 G1 u3 ^6 A1 ySwitchB#show spanning-tree —>Write down the STP mode (was set to RSTP)0 A# k" L, U1 m5 o- v ?
SwitchB#show vlan —> Check if any VLAN is assigned to FastEthernet 0/3 and 0/4 (VLAN 98 was assigned)- q+ Y) A( W. S, f2 R# i( A
SwitchB#show vlan —>Check whats the native VLAN (can be identified by the name “TrunkNative”, VLAN 99)# c" ?7 V, L2 O9 b; w) q
SwitchB(config)#vlan 21
+ h# C5 L; s# [9 @0 L# MSwitchB(config-vlan)#name Marketing
8 n+ E- X1 h9 K/ K+ h0 ~SwitchB(config)#vlan 221 a* X/ y+ L3 J3 p
SwitchB(config-vlan)#name Sales$ x* m8 a0 j" a3 V
SwitchB(config)#vlan 23
5 B% O: o' t/ XSwitchB(config-vlan)#name Engineering; G8 Q& N3 j/ t t1 f
SwitchB(config)#spanning-tree vlan 11-13,21-23 root primary
+ _- B+ l. j) x" J***This completes VLAN configuration***
% ?/ h7 M5 ]" H; G8 X5 CSwitchB(config)#int range fa0/3 – 4 –> Make sure you put a space between “3 – 4″ for it to accept the command 

7 B7 I4 d8 v# @6 C8 bSwitchB(config-int-range)#no shutdown
( G* d; U/ C' J8 _SwitchB(config-int-range)#no switchport access vlan 98 —> remove VLAN 98
1 g: _ d$ n4 g1 z" ]8 b5 WSwitchB(config-int-range)#switchport mode trunk
: p; F0 J3 t- ZSwitchB(config-int-range)#switchport trunk encapsulation dot1q —> System might not accept this command, but type it anyway
B2 P$ a' O" @: cSwitchB(config-int-range)#switchport trunk native vlan 99

- B3 J- H- K# B- P4 ]. ySwitchB(config-int-range)#switchport trunk allowed vlan 1,21-23- T! F. P9 G3 U/ S/ I
SwitchB(config-int-range)#channel-protocol lacp

( H$ U* _ @3 @4 o5 a* tSwitchB(config-int-range)#channel-group 1 mode active –> Distribution switch needs to be ACTIVE

! z/ D! r- w0 I6 Y0 |8 A& gSwitchB(config-int-range)#exit
( g- G3 Z7 R6 V8 o$ J. oSwitchB(config-if)#int port-channel 15 Q# ^# m ?8 F
SwitchB(config-if)#switchport mode trunk —> System might not accept this command, but type it anyway
4 ^. ^2 n/ _; F" z: x3 YSwitchB(config-if)#switchport trunk encapsulation dot1q
; x8 X0 t* D- j8 lSwitchB(config-if)#switchport trunk native vlan 996 u' T K7 b/ L6 [
SwitchB(config-if)#switchport trunk allowed vlan 1,21-23
( H( I, j% [0 s& F# K3 s5 r0 H***This complete’s Etherchannel configuration***4 I, [7 M% g" \1 c( W6 W( t
Move on to SwitchA (Access Switch)
& L; r( P& X3 f; d; lSwitchA#show vlan —> check if any of the required VLAN’s are pre-configured (Need to configure 21-23,99)
# O9 E( ]0 z$ I( ySwitchA#show vtp status —> Check VTP mode of switch (Switch is in Server mode, need to change to Transparent)( v1 g3 k4 ^: m/ S$ O# E
SwitchA#show spanning-tree —> Check STP mode (Change to RSTP)% g5 |5 m1 M: N) q) B
SwitchA(config)#vtp mode transparent7 S% F$ T9 T0 L. n( R* r' P
SwitchA(config)#spanning-tree mode rstp/ A: y2 K- k7 W8 s4 [9 x
***This complete’s STP and VTP configuration***
& N) U$ |8 |5 X/ M& i, \# wSwitchA(config)#vlan 21
+ S& w6 I; S6 p xSwitchA(config-vlan)#name Marketing (This are the actual Vlan names I got on my test)
% r( G1 @" S5 i. b8 M& USwitchA(config)#vlan 22
5 E4 p C" h2 S( I# OSwitchA(config-vlan)#name Sales# J2 v9 D o2 F* i
SwitchA(config)#vlan 23
6 `" T2 m7 B# A# B& ^+ N' eSwitchA(config-vlan)#name Engineering3 r1 S7 O" R2 Y8 H4 K0 u; }
SwitchA(config)#vlan 99
& d! J3 a4 _. ^! |, d% V+ K JSwitchA(config-vlan)#name TrunkNative* V& R: z0 O+ W
***This completes VLAN configuration***
* a3 t- u9 K" t2 p& P WSwitchA(config)#int range fa 0/9 – 10


6 p1 Q0 t- B1 H! q9 g4 j) cSwitchA(config-int-range)#switchport mode access

, N+ G) o1 l# D! p. O/ ASwitchA(config-int-range)#switchport access vlan 21
/ v, i7 x5 v2 \9 h1 a; l/ A, F8 F2 P
SwitchA(config-int-range)#spanning-tree portfast9 m, G8 ], r0 I( d: B) k3 d
SwitchA(config-int-range)#no shutdown
; W4 Q& s/ j' s+ Q$ i- g" S% \SwitchA(config)#int range fa 0/13 – 14
4 m6 B; O' Y$ a& S( J. N
SwitchA(config-int-range)#switchport mode access

6 E( B1 V5 d, ASwitchA(config-int-range)#switchport access vlan 22

! Q. s3 @' Q, a& N% ESwitchA(config-int-range)# spanning-tree portfast
( B( P, A2 y4 A: Y, f8 K, QSwitchA(config-int-range)#no shutdown4 K8 T" l( ]; i. F2 n
SwitchA(config)#int range fa 0/15 – 16

; u& ]" y3 f6 G3 S* xSwitchA(config-int-range)#switchport mode access
) Y' z1 W( s7 z& s. s7 Y
SwitchA(config-int-range)#switchport access vlan 23
! K' `. `6 |4 |$ m: v1 `
SwitchA(config-int-range)# spanning-tree portfast
9 s" r, i& W6 ?: MSwitchA(config-int-range)#no shutdown' Q2 h7 G- v+ t9 r+ D
SwitchA(config)#int vlan 1
: w& S; i+ ~5 |$ hSwitchA(config-if)#ip address 192.168.1.11 255.255.255.0
% q" `+ x H5 f' e( g+ ~SwitchA(config)#ip default-gateway 192.1.68.1.1 —> You shouldn’t require this command, but i typed it anyway$ u/ s7 Y8 E1 F% ?
***This completes access ports configuration***- }; d' Z, f1 {& c
SwitchA(config)#int range fa0/3 – 4
- m, N# s" P+ E4 }) }1 L6 Q
SwitchA(config-int-range)#no shutdown

" I! g q, ?# O" M {( oSwitchA(config-int-range)#switchport mode trunk! y2 [) J; c& b4 g9 E, a
SwitchA(config-int-range)#switchport trunk encapsulation dot1q4 L% Q8 s7 v, o6 n5 z
SwitchA(config-int-range)#switchport trunk native vlan 99
/ J& x5 [8 \ B D/ t# K, v( x- R
SwitchA(config-int-range)#switchport trunk allowed vlan 1,21-23
" `- l2 r; w/ QSwitchA(config-int-range)#channel-protocol lacp
( Q: q5 @2 P- e2 H X! r# n
SwitchA(config-int-range)#channel-group 1 mode passive –> Access switch needs to be PASSIVE
$ ]% u, d6 S0 a3 V" o5 @/ T) ~9 G
SwitchA(config-int-range)#exit- T* G( F, b0 J' M# g% k. ^
SwitchA(config-if)#int port-channel 18 T; d E/ s+ n+ s
SwitchA(config-if)#switchport mode trunk —> System might not accept this command, but type it anyway. Z; A/ j. a% S8 Z+ Y @
SwitchA(config-if)#switchport trunk encapsulation dot1q* D1 \# _4 t4 }: R
SwitchA(config-if)#switchport trunk native vlan 99
) i! O/ u v% p: K. LSwitchA(config-if)#switchport trunk allowed vlan 1,21-23
2 \& ?% [; [% W Q+ j***This complete’s Etherchannel configuration***
9 Q8 ^% e6 u: \* pSwitchA#ping 192.168.1.1$ G$ B5 l; r, O+ b* H2 d
最后别忘了保存 |
178#
2011-7-27 18:08:32
回复(0)
收起回复
|