Cisco EtherChannel 思科以太通道/链路聚合

请自行完成:

    1,两台交换机Switch1和Switch2分别创建vlan5和vlan10;

    2,端口f0/4设置为access模式,并关联到vlan5

    3,端口f0/5设置为access模式,并关联到vlan10

    4,设置4台PC的ip地址。

Switch1(config)#interface port-channel 1

//创建以太通道,指定通道号,范围:1-6(对端通道号可以不一样)

Switch1(config-if)#exit

Switch1(config)#interface range f0/1-3  //配置端口f0/1-f0/3

Switch1(config-if-range)#channel-group 1 mode on //端口关联到以太通道

Switch1(config-if-range)#switchport trunk encapsulation dot1q //封装

Switch1(config-if-range)#switchport mode trunk  //端口模式为trunk

Switch1(config-if-range)#exit

Switch1(config)#port-channel load-balance dst-ip  //负载模式选择

Switch1(config)#interface port-channel 1 //再次进入以太通道1

Switch1(config-if)#switchport trunk encapsulation dot1q //封装

Switch1(config-if)#switchport mode trunk  //端口模式为trunk

Switch2(config)#interface port-channel 1

//创建以太通道,指定通道号,范围:1-6(对端通道号可以不一样)

Switch2(config-if)#exit

Switch2(config)#interface range f0/2-4  //配置端口f0/2-f0/4

Switch2(config-if-range)#channel-group 1 mode on //端口关联到以太通道

Switch2(config-if-range)#switchport trunk encapsulation dot1q //封装

Switch2(config-if-range)#switchport mode trunk  //端口模式为trunk

Switch2(config-if-range)#exit

Switch2(config)#port-channel load-balance dst-ip  //负载模式选择

Switch2(config)#interface port-channel 1 //再次进入以太通道1

Switch2(config-if)#switchport trunk encapsulation dot1q //封装

Switch2(config-if)#switchport mode trunk  //端口模式为trunk

Switch1#sh etherchannel summary  //查看以太通道信息

验证:在同一vlan的两台PC相互ping(ping 192.168.5.2 -n 100)的过程中,断开交换机三条线路中的一条或两条,看看pc的通讯是否中断。

  • 9
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值