a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 88|回复: 0

[综合] 思科辅导:交换机链路聚合

[复制链接]
发表于 2012-8-3 20:03:30 | 显示全部楼层 |阅读模式
下面是局域网的焦点交流机(三层交流)和二层交流之间的端口聚合的操作实例:
3 t% ]  W6 W' F4 j4 n" N1 F0 p5 @/ k2 h2 B8 \0 q
  29500 }2 d) [/ K2 ~/ M6 S8 Q2 A
  Switch>en
8 O1 ?, ]+ S3 v9 r1 g( Q, z  Switch#conf t6 k% Q  w: e/ Q& }
  Enter configuration commands, one per line. End with CNTL/Z.5 `% y& q, U; G6 s6 S
  Switch(config)#int f0/17 S) W6 {7 M& j. h/ r# L
  Switch(config-if)#channel-group 1 mode on% J$ i8 _7 _: m! M' N
  %LINK-5-CHANGED: Interface Port-channel 1, changed state to up
7 W: r( u- a" g7 K, X  %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to upSwitch(config-if)#int f0/2
  L& e) v' W. g! P! [) ^4 E  u) k4 u  Switch(config-if)#channel-group 1 mode on: a' C2 z' b6 G2 F' B! I  d
  3560
7 s4 p$ h8 i) o4 X. z# o# ~6 }, X% ?( U  Switch(config)#int port-channel 16 w* d! ^. B) }" w0 |1 k
  Switch(config-if)#exit
7 D& W1 e  b# n9 a6 y! K  Switch(config)#ip routing(默认已经启用了路由功能)
* N7 x) ~1 K3 ^) G$ j9 O  Switch(config)#int port-channel 1
' l7 b! j) [! s  Switch(config-if)#no switchport, X3 S2 h& ^" G( ~' ?
  Switch(config-if)#ip add 1.1.1.1 255.0.0.0
: P) {/ A. W2 |! s  Switch(config-if)#no shut7 F, I! \; _5 ?0 p' {
  Switch(config-if)#exit
" V$ Q) Z7 b% `) Y2 X& Y. T  Switch(config)#int f0/1
5 {$ T1 Y* P7 C3 u4 y3 D& B* V, D  u* u; B. A  Switch(config-if)#no switchport- c- Q4 q" I8 p6 D- d1 c( `
  %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
/ I0 B8 J3 s' w* s  %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upSwitch(config-if)#
: W7 w2 V4 H5 a) k, b* s  Switch(config-if)#no ip add
9 Y6 b/ @7 _+ A9 L: h$ H$ ~  Switch(config-if)#channel-group 1 mode ?$ E* h! V" G( E* I2 }. s. u
  active Enable LACP unconditionally( a4 J7 W: @+ O3 Z* G% R
  auto Enable PAgP only if a PAgP device is detected: S: m( T1 V  d# p; \
  desirable Enable PAgP unconditionally) Y, a: J# o4 m( Q: A: Q# |. p
  on Enable Etherchannel only
$ D  x7 Z3 S7 r0 A$ g  passive Enable LACP only if a LACP device is detected+ r. s8 g2 M  x. w4 ?
  Switch(config-if)#channel-group 1 mode on
# B' j3 B- ?0 t6 d! O  %LINK-5-CHANGED: Interface Port-channel 1, changed state to up
. m, p6 O5 J9 V  %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to upSwitch(config-if)#
# z0 J  s$ f" [) x  Switch(config-if)#int f0/2/ I( ?% A# o0 S9 O; k6 B# t' v
  Switch(config-if)#no switchport2 T3 g4 ?4 n; H0 r, o! A2 r' o
  %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
6 C7 n, g" j- R* ]$ |0 v  %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to upSwitch(config-if)#no ip add  g4 L& C/ x- R/ e  D8 }9 e% c
  Switch(config-if)#no ip address
, @3 F5 m& T0 Z% ]  Switch(config-if)#channel-group 1 mode on
; {2 [7 b8 u) D0 v4 B9 A8 P  Switch(config-if)#exit
3 C6 u. n- R; M8 E$ }; z( e  Switch(config)#int f0/36 f5 v; z5 m. t! A4 {( G
  Switch(config-if)#no switchport2 Y. W! D/ Z/ B& W
  %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down& I6 h$ m1 X  Y$ `% Y$ o# F
  %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to upSwitch(config-if)#ip add 2.2.2.1 255.0.0.0# s9 l" C) e2 B, H
  Switch(config-if)#no shut
- h2 j: V4 |- ~2 r! i, `  端口聚合可使流量在多条物理链路上负载平衡,同时也起到了链路的备份浸染。可是在某些设备里,应注重聚合链路两头接口的速度,工作模式,例如在快以中,可将各个端口设置为speed 100,duplex full。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-14 07:17 , Processed in 0.498446 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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