PortChannel配置.doc

上传人:scccc 文档编号:12513323 上传时间:2021-12-04 格式:DOC 页数:2 大小:57.50KB
返回 下载 相关 举报
PortChannel配置.doc_第1页
第1页 / 共2页
PortChannel配置.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《PortChannel配置.doc》由会员分享,可在线阅读,更多相关《PortChannel配置.doc(2页珍藏版)》请在三一文库上搜索。

1、Port Channel 举例案例1:以lacp 方式配置 port channel图 13*2 ri LACP tuK配艸 Pg Ch即Ml在下面说明中用switchl和switch2 来分别表示上图中的si与s2。如图所示,交换机switchl上的1,2,3端口都是access 口,并且都属于vlan 1,将这三个端口以active 方式加入gr oup 1,switch2 上6,7,8端口为trunk 口,并且是allow all ,将这三个端口以 passive 方式加入group 2,将以上对应端 口分别用网线相连。(图中连线 4根)配置步骤如下:switch1#configswit

2、ch1 (config)#interface eth 0/0/1-3switch1 (config-port-range)#port-group 1 mode activeswitch1 (config-port-range)#exitswitch1 (config)#interface port-channel 1switch1 (config-if-port-channel1)#switch2#configswitch2 (config)#port-group 2switch2 (config)#interface eth 0/0/6-8switch2 (config-port-range

3、)#port-group 2 mode passiveswitch2 (config-port-range)#exitswitch2 (config)#interface port-channel 2switch2 (config-if-port-channel2)#配置结果:过一段时间后,shell提示端口汇聚成功,此时 switch1的端口 1, 2, 3汇聚成一个汇聚端口,汇聚端口名为port-channel1,switch2的端口 6,7, 8汇聚成一个汇聚端口,汇聚端口名为port-channel2 ,并且都可以进入汇聚接口配置模式进行配置。案例2:以on方式配置port chann

4、el库 13*3 b. ON 方氏配N Port Channel如图所示,交换机switchl上的1, 2, 3端口都是access 口,并且都属于vlan 1,将这三个端口以on方式加入group1,在switch2 上6, 7,8端口为trunk 口,并且是 allow all,将这三个端口以 on方式加入group 2。配置步骤如下:switch1#configswitch1 (config)#interface eth 0/0/1switch1 (config-ethernet0/0/1)# port-group 1 mode onswitch1 (config-ethernet0/0

5、/1)#exitswitch1 (config)#interface eth 0/0/2switch1 (config-ethernet0/0/2)# port-group 1 mode onswitch1 (config-ethernet0/0/2)#exitswitch1 (config)#interface eth 0/0/3switch1 (config-ethernet0/0/3)# port-group 1 mode onswitch1 (config-ethernet0/0/3)#exitswitch2#configswitch2 (config)#port-group 2swi

6、tch2 (config)# interface eth 0/0/6-8switch2 (config-port-range)#port-group 2 mode onswitch2 (config-port-range)#exit配置结果:将交换机switch1上的1,2,3三个端口依次加入port-group1后我们可以看到,以on方式加入一个组完全是强制性的,两端的交换机并不会通过交换lacp pdu来完成汇聚,汇聚也是触发式的,当敲入将 2号端口加入port-group1的命令时,1和2马上汇聚在一起形成 ort-channel1,当将3号端口加入port-group1 时,1和2汇聚成的port-channel1被拆散,马上1, 2, 3三个端口又重新汇聚成port-channel1(需要说明的是,当有一个新的端口要加入已经汇聚成功的组时,必须先拆散原先的组,然后再能汇聚成一个新的组)。结果是 switch1和switch2上的三个端口都以on模式汇聚起来,各自形成一个汇聚 端口。

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


经营许可证编号:宁ICP备18001539号-1