Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1413648
  • 博文数量: 269
  • 博客积分: 3602
  • 博客等级: 中校
  • 技术积分: 4536
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:13
文章分类

全部博文(269)

文章存档

2014年(8)

2013年(139)

2012年(122)

分类: 系统运维

2013-01-22 14:30:12

三层EtherChannel

若欲在三层设备(如三层交换机)之间实现高速连接,可以采用三层EtherChannel方式,从而避免由路由连接而产生的瓶颈。

1.创建Port-Channel逻辑
当将从物理接口移动至EtherChannel时,必须先从物理接口中删除该。

第一步:进入全局配置模式。
# configure terminal

第二步:创建Port-Channel接口。port_channel_number取值范围为1~48。
Switch(config)# interface port-channel port_channel_number

第三步:将接口置于三层模式。
Switch()# no switchport

第四步:为该EtherChannel指定IP地址和子网掩码。
Switch(config-if)# ip address ip_address mask

第五步:退出配置模式。
Switch(config-if)# end

第六步:校验配置。
Switch# show running-config interface port-channel port_channel_number

2.配置为三层EtherChannel

第一步:进入全局配置模式。
Switch# configure terminal

第二步:选择欲配置的物理接口。
Switch(config)# interface {fastethernet | gigabitethernet} slot/port

第三步:创建三层路由端口。
Switch(config-if)# no switchport

第四步:确保该物理接口没有指定IP地址。
Switch(config-if)# no ip address

第五步:将接口配置至port-channel,并指定PAgP或LACP模式。
Switch(config-if)# channel-group channel-group-number mode {auto [non-silent] | desirable [non-silent] | on} | {active | passive}

第六步:退出配置模式。
Switch(config-if)# end

第七步:校验配置。
Switch# show running-config

3.实现负载均衡

第一步:进入全局配置模式。
Switch# configure terminal

第二步:配置Etherchannel负载均衡。
Switch(config)# port-channel load-balance {src-mac | dst-mac | src-dst-mac | src-ip | dst-ip | src-dst-ip | src-port | dst-port | src-dst-port}

其中,src-mac指源MAC地址;dst-mac指目的MAC地址;src-dst-mac指源和目的IP地址;src-ip指源IP地 址;dst-ip指目的IP地址;src-dst-ip指源和目的IP地址;src-port指源第四层端口;dst-port指目的第四层端 口;src-dst-port指源和目的第四层端口。

第三步:退出配置模式。
Switch(config-if)# end

第四步:校验配置。
Switch# show etherchannel load-balance

阅读(2670) | 评论(0) | 转发(0) |
0

上一篇:port channel 介绍

下一篇:Cisco 3550做dns中继

给主人留下些什么吧!~~