- 积分
- 0
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 最后登录
- 1970-1-1
- 阅读权限
- 0
- 听众
- 收听
游客
|
发表于 2011-7-27 18:08:32
|
显示全部楼层
最近813中的LACP实验有部分变化( y2 O- A; m0 `
1) Distribution Switch (SwitchB)# |2 {/ q, P& }
1) Do not change VTP and STP settings2 l3 n3 |' Z3 {; T# k/ N! {8 G0 \
2) Switch needs to be spanning-tree root for VLAN 11-13,21-23. Other VLAN’s can have default STP priority$ I0 t. T9 q9 l a0 |6 ~9 f0 I
3) VLAN’s allowed on the trunk are 1,21-23* a/ H4 w, t6 ~* u8 m6 N
Access Switch (SwitchA)
# R3 ~: J% X! N1) STP and VTP settings should be identical to SwitchB0 ?+ i# y; f, R( H/ o( n \
2) Configure VLAN’s as per diagram
- S! g) Z7 v7 ^5 {! E9 T2 |- a3) VLAN 1,21-23 needs to be tagged when traversing the link1 e$ g0 s: j _8 s, h+ h
4) No routing needed on SwitchA O# R- t2 p+ K2 {
5) VLAN 1 needs to be configured with IP – 192.168.1.11/24
! K( \4 S! }+ }' X下面提更答案供大家参考
6 Z% F" `# Q* M/ `7 \8 n本帖隐藏的内容! o7 R0 _* M7 S' J- ~6 o
SwitchB#show cdp neighbors detail —> Get the IP address of the Router (needed to ping at the end-192.168.1.1)
( }% ~( l" R, d V& e1 TSwitchB#show vtp status —>Write down the VTP mode (was set to Transparent)
: L) n$ g% u. l7 NSwitchB#show spanning-tree —>Write down the STP mode (was set to RSTP)
( \4 i$ r7 R2 _4 }, QSwitchB#show vlan —> Check if any VLAN is assigned to FastEthernet 0/3 and 0/4 (VLAN 98 was assigned)
& N( U7 Z! I% p, ?& g/ ?( M% hSwitchB#show vlan —>Check whats the native VLAN (can be identified by the name “TrunkNative”, VLAN 99)
8 z3 s' S. v2 HSwitchB(config)#vlan 21* L: v. H' j% V- s8 j( _2 q
SwitchB(config-vlan)#name Marketing
! n8 V% e2 l% h& a+ ESwitchB(config)#vlan 22
9 P- K/ Y/ {" wSwitchB(config-vlan)#name Sales
; N" w+ g) n) H( H5 ^: @SwitchB(config)#vlan 23
6 _& {3 L5 z2 A& R- q( r' x+ S7 KSwitchB(config-vlan)#name Engineering
) _1 c. s% E3 U0 c) bSwitchB(config)#spanning-tree vlan 11-13,21-23 root primary+ v2 c% @, w. S: C; h
***This completes VLAN configuration***. N7 q- p4 |) b0 v1 f
SwitchB(config)#int range fa0/3 – 4 –> Make sure you put a space between “3 – 4″ for it to accept the command 

- l$ H' h+ a5 o; _! |SwitchB(config-int-range)#no shutdown
- I+ T6 r1 u1 @( W+ H% T# _3 `$ bSwitchB(config-int-range)#no switchport access vlan 98 —> remove VLAN 98
) E; f5 x# H& o7 ?8 L- }3 oSwitchB(config-int-range)#switchport mode trunk
k- A, w9 W) Q/ DSwitchB(config-int-range)#switchport trunk encapsulation dot1q —> System might not accept this command, but type it anyway
# h( i% D( u0 `# F6 kSwitchB(config-int-range)#switchport trunk native vlan 99

9 t: Q/ `/ Y. y7 r) c( X, E- d2 ZSwitchB(config-int-range)#switchport trunk allowed vlan 1,21-23
, o$ h. [8 }; r2 KSwitchB(config-int-range)#channel-protocol lacp

$ s" _( N$ ~- bSwitchB(config-int-range)#channel-group 1 mode active –> Distribution switch needs to be ACTIVE
# j7 y+ x1 L( V7 C3 C
SwitchB(config-int-range)#exit
1 E' V( t2 f( N+ @! tSwitchB(config-if)#int port-channel 1+ R3 K* B# @0 P7 N9 i7 o6 `
SwitchB(config-if)#switchport mode trunk —> System might not accept this command, but type it anyway* R7 q! ? w, U8 ^8 x( j; W
SwitchB(config-if)#switchport trunk encapsulation dot1q5 V$ y- p# u9 T1 W
SwitchB(config-if)#switchport trunk native vlan 99: w+ r* k/ p8 b+ v# p
SwitchB(config-if)#switchport trunk allowed vlan 1,21-239 x. q5 ~- z3 }4 _" |9 G
***This complete’s Etherchannel configuration***
" Y' A5 |. \8 iMove on to SwitchA (Access Switch)
: v, o+ U, r3 q0 J% |1 {3 t6 vSwitchA#show vlan —> check if any of the required VLAN’s are pre-configured (Need to configure 21-23,99)
- X' C0 ]# O# S3 R" X' XSwitchA#show vtp status —> Check VTP mode of switch (Switch is in Server mode, need to change to Transparent)
2 _+ D: ~9 {' G0 n1 B5 z ]SwitchA#show spanning-tree —> Check STP mode (Change to RSTP)
% ?4 } e$ v- S6 @# z$ dSwitchA(config)#vtp mode transparent
" e/ `! ~0 ]* x( W+ t+ _SwitchA(config)#spanning-tree mode rstp
( J. C8 o x0 w& X# o5 W***This complete’s STP and VTP configuration***
5 L2 L% \$ D5 u6 u) dSwitchA(config)#vlan 21; t3 s2 Q7 y5 U: Z' a( ]1 L) q
SwitchA(config-vlan)#name Marketing (This are the actual Vlan names I got on my test)% Q5 S' }! e2 H# F) B
SwitchA(config)#vlan 22
7 B6 k: Z0 T$ c6 \SwitchA(config-vlan)#name Sales
" D( ]8 ]6 p9 vSwitchA(config)#vlan 236 d; f& o( d. Q; ?; q
SwitchA(config-vlan)#name Engineering1 ?, n! l+ D' V
SwitchA(config)#vlan 99% t* |* {& L4 j) f3 `# Y
SwitchA(config-vlan)#name TrunkNative) w$ [& ~6 M' d
***This completes VLAN configuration***8 ^0 @8 D5 w( c. c" r
SwitchA(config)#int range fa 0/9 – 10


- O* T9 @! d# \7 P. GSwitchA(config-int-range)#switchport mode access

) c$ ]2 W, o) o3 {% T6 J4 rSwitchA(config-int-range)#switchport access vlan 21
 s/ T0 O, S! l- z& V( A- ?5 S3 m
SwitchA(config-int-range)#spanning-tree portfast
6 }) T# z# Q2 M$ R" LSwitchA(config-int-range)#no shutdown
& D# N4 G! z: R9 ^7 l0 R% kSwitchA(config)#int range fa 0/13 – 14

) }& W% t/ C. o: ^' I' LSwitchA(config-int-range)#switchport mode access
$ `! F" k; b$ D8 b; P
SwitchA(config-int-range)#switchport access vlan 22
1 A: _6 ^3 p5 N+ r# v8 X
SwitchA(config-int-range)# spanning-tree portfast
2 {3 R+ j; h* `" O. o; k2 W6 ZSwitchA(config-int-range)#no shutdown% w7 r8 @1 }1 s$ N. e1 w
SwitchA(config)#int range fa 0/15 – 16

- f) \& b D! |) f, i( m4 DSwitchA(config-int-range)#switchport mode access

& ]! `+ u, w( zSwitchA(config-int-range)#switchport access vlan 23

! U4 M3 N0 ~+ f- U' t' K$ rSwitchA(config-int-range)# spanning-tree portfast
9 W$ [* |( d! ?9 i* n6 GSwitchA(config-int-range)#no shutdown2 u( s! _5 E6 {* U( J
SwitchA(config)#int vlan 1! @& m% k- V8 x5 o
SwitchA(config-if)#ip address 192.168.1.11 255.255.255.03 W9 Y9 e$ x \4 D
SwitchA(config)#ip default-gateway 192.1.68.1.1 —> You shouldn’t require this command, but i typed it anyway
( D+ M; \6 w( u$ e! M# M0 V# j***This completes access ports configuration***, z% {2 n5 I1 D5 F+ V
SwitchA(config)#int range fa0/3 – 4

% r; a! ]' m) [3 \SwitchA(config-int-range)#no shutdown
+ R; n$ L7 J/ s8 A# y( _4 }
SwitchA(config-int-range)#switchport mode trunk
% h2 z" d: ?1 U8 K' Z' R3 P# F; PSwitchA(config-int-range)#switchport trunk encapsulation dot1q1 J# R, w- E/ ?1 s+ m' x& p
SwitchA(config-int-range)#switchport trunk native vlan 99

2 l: N: w o( W0 R. YSwitchA(config-int-range)#switchport trunk allowed vlan 1,21-23, D, t- l3 T+ e& B7 C1 g: j A
SwitchA(config-int-range)#channel-protocol lacp

' R$ q1 O2 O6 q0 y2 LSwitchA(config-int-range)#channel-group 1 mode passive –> Access switch needs to be PASSIVE

! j2 _- p7 Z5 I# B# JSwitchA(config-int-range)#exit/ o+ w/ G# |9 g7 e
SwitchA(config-if)#int port-channel 16 h6 ~* b& ^8 s. x. Q0 X
SwitchA(config-if)#switchport mode trunk —> System might not accept this command, but type it anyway8 W+ i3 {( y; m4 g3 i
SwitchA(config-if)#switchport trunk encapsulation dot1q
; H2 o2 X4 x1 i2 y* i4 [3 TSwitchA(config-if)#switchport trunk native vlan 991 o* I3 n6 S# Q7 m; U1 V! I% L6 Z
SwitchA(config-if)#switchport trunk allowed vlan 1,21-234 u2 v; e' b# ~: f
***This complete’s Etherchannel configuration***
8 u2 p2 C& {& s) }- P( hSwitchA#ping 192.168.1.1
6 |5 J4 g% f9 g最后别忘了保存 |
|