|
[q]做以太通道的一个问题
着个是我在xici提问的,大体解决的差不多了,现将整个解决过程share,还有一个遗留问题(在最后),希望版主解决
作者: evenliu 发表日期: 2003-02-20 08:10:47 返回《路由与交换》 快速返回
请问做3 layer FEC后,需要给fec 分配一个ip地址,这个地址起什么作用,实际应用中3L fec是如何使用的?
--------------------------------------------------------------------------------
回应人: 国有企业下岗职工 发表日期: 2003-02-20 09:40:59
加大带宽,对于你说的分配地址,它是个链路啊,怎么分配啊,又不是interface
FEC是二层的,不是三层的
人在旅途
--------------------------------------------------------------------------------
回应人: evenliu 发表日期: 2003-02-20 14:38:12
那篇cisco配置文章有如下描述
To configure Layer 3 EtherChannels, you create the port-channel logical interface and then put the Ethernet interfaces into the port-channel as described in the next two sections.
Creating Port-Channel Logical Interfaces
-------------------------------------------------------------
Note To move an IP address from a physical interface to an EtherChannel, you must delete the IP address from the physical interface before configuring it on the port-channel interface
在配置案例里是如下
This example shows how to create the logical port channel (5) and assign 172.10.20.10 as its IP address:
Switch# configure terminal Switch(config)# interface port-channel 5 Switch(config-if)# no switchport Switch(config-if)# ip address 172.10.20.10 255.255.255.0 Switch(config-if)# end 但我觉得它在配置channel ip前,该channel应该已经存在
补充日期: 2003-02-20 14:39:46
具体文章可见
http://www.cisco.com/en/US/products...008007e72d.html
兄台,刚开头我也觉得莫名其妙
--------------------------------------------------------------------------------
回应人: 国有企业下岗职工 发表日期: 2003-02-20 15:04:23
我觉得可能是我英文不够好
FEC是2层的
至于把端口加进去或不加进去和2,3层没什么关系,它只是做FEC的一个步骤
给捆绑过的端口加地址是另外一回事
这里面是两件事
当然你在给捆绑过的端口加地址之前要删除原来的单一端口上面的地址
人在旅途
--------------------------------------------------------------------------------
回应人: evenliu 发表日期: 2003-02-20 17:43:18
我就是不明白给捆绑后的端口加个地址是什么意思?
--------------------------------------------------------------------------------
回应人: 瓶子里的风 发表日期: 2003-02-21 01:07:29
我好象看到过,就是一时想不起来了……………………
天空之城早已飞远,
只剩下了白云寂寞地飘着。
即使窗外白雪皑皑,
眼前浮现的依然是18岁夏天。
再见了,18岁。
--------------------------------------------------------------------------------
回应人: 我是皮皮 发表日期: 2003-02-21 13:53:32
大哥,你建立了一个逻辑接口,当然得分个IP地址给它了。
麦太对麦兜说:“阿仔,拣女朋友就好似拣厕纸,一定要又白又滑。”
麦兜说:“噢……咁,究竟是白D紧要D呢,定系滑D紧要D呢?”
“最紧要平。”麦太回答。
--------------------------------------------------------------------------------
回应人: pop_wang 发表日期: 2003-02-21 23:16:35
希望大家看东西一定要仔细,其实上面写的实在清楚!!
For Layer 3 EtherChannels, assign the Layer 3 address to the port-channel logical interface, not to the physical interfaces in the channel.
还有一些要注意:
The MAC address of a Layer 3 EtherChannel is the MAC address of the first interface in the port-channel.
using source addresses or IP addresses might result in better load balancing.
Layer 3 EtherChannel 是一个逻辑上(logical interface)的接口,所以需要有地址标识呀~~要不怎么工作哦:)
欢迎大家多提问题!!
我天天都来!
--------------------------------------------------------------------------------
回应人: 瓶子里的风 发表日期: 2003-02-22 13:15:09
那我不明白了,我记得负载均衡是源地址和目标地址相与实现的吧?
如果有4条就是最后的两位与,8条就是最后的3位与,那么这个逻辑端口的地址是什么时候需要用到呢?
小弟学艺不精,还请大哥们指教
天空之城早已飞远,
只剩下了白云寂寞地飘着。
即使窗外白雪皑皑,
眼前浮现的依然是18岁夏天。
再见了,18岁。
--------------------------------------------------------------------------------
回应人: evenliu 发表日期: 2003-02-22 16:17:37
我按照文章解释做了一遍实验,可以确认,第一先做port channal是逻辑上的L3,然后将物理interface 放入port channel内,
configure terminal
interface range fa0/23 -24
no ip address
channel-group 5 mode desirable
然后channel可以正常up,但是这种L3 channel不能起trunk和划分vlan,而且配置完毕后,我的vlan1上的ip自动给disable掉了,很奇怪,并且我实际上也ping不同我配给channel的ip
补充日期: 2003-02-22 16:19:34
sorry,仔细看后,发现放入channel的两个fa 是up的,但是channel 是down的
补充日期: 2003-02-22 16:33:06
做好channel后,将物理interface放入L3 channel 出现如下warning,请大家说明为什么?
jifei-3550-level2(config)#interface range fa0/23 -24
jifei-3550-l(config-if-range)#no ip address
jifei-3550-l(config-if-range)#channel-group 10 mode desirable
Command rejected (Port-channel10): Either port is L2 and port-channel is L3, or vice-versa
Command rejected (Port-channel10): Either port is L2 and port-channel is L3, or vice-versa
jifei-3550-l(config-if-range)#end
--------------------------------------------------------------------------------
回应人: pop_wang 发表日期: 2003-02-23 14:10:09
我现在做市场很久了,基本上没有机会在设备上实践。3550都没有用过,呵呵。不过我还算忘记的不多。
我有个疑问是,你是不是就在3550上做的实验啊?你在应该上联的交换机上配置了没?????????
我天天都来!
--------------------------------------------------------------------------------
回应人: evenliu 发表日期: 2003-02-24 13:04:30
我的确是在2台3550上做的,这两台3550没有和其他网络相联系,不过我觉得有问题的是,为什么cisco文档上说3L的channal可以放入物理端口,为什么具体做有出错
Either port is L2 and port-channel is L3, or vice-versa
--------------------------------------------------------------------------------
回应人: superworm 发表日期: 2003-02-24 13:30:12
我记得3550的端口可以设成二层普通交换口或者三层接口。如果作为一个三层接口的话,就可以为该接口配置上IP Address。而Channel是个逻辑上的概念。我想,如果你先将那些端口转换为三层模式,然后再加入到你建立的这个L3的Port-Channel中因该是可以的。
端口模式的转换要在接口配置模式下用switchport和no switchport命令来做。
--------------------------------------------------------------------------------
回应人: 逗你玩4455 发表日期: 2003-02-25 10:17:16
EtherChannel是二层的概念,目的很简单,通过把几个不同端口绑定到一起,实现上下连接通路的带宽扩大,逻辑上看作是一个端口使用,同时,可以避免由于其中一个端口损坏造成上下连的中断,有一定的备份作用。不管三层还是二层,用到EC无非就是这样的2个作用了。
所以EtherChannel本身应该是没有IP地址问题的。在实际配置中,只要不启用三层功能,只要确认哪些端口绑定就OK了。
因为现在的很多交换机包括3550这样的设备都具有了三层功能,所以,在为这些交换机配置EC时,就要确认需要用在二层用还是三层用。如果时三层就要配置IP了
3550交换机的默认配置应该时所有端口都是二层交换的吧。
如有错位望指正。
--------------------------------------------------------------------------------
回应人: evenliu 发表日期: 2003-02-25 17:30:26
谢谢superworm 的意见,
如果L2的端口要转为L3的模式,需要在接口方式下no switchport,
现在将我的配置发布
interface Port-channel5
switchport trunk encapsulation isl
switchport mode trunk
no ip address
!
interface Port-channel10
no switchport
ip address 192.1.28.98 255.255.255.0
!
interface FastEthernet0/1
switchport trunk encapsulation isl
switchport mode trunk
no ip address
channel-group 5 mode desirable
!
interface FastEthernet0/23
no switchport
no ip address
channel-group 10 mode desirable
!
interface FastEthernet0/24
no switchport
no ip address
channel-group 10 mode desirable
!
其中channel5为L2类型的channel
channel10为L3类型的channel,配有IP地址,是否这个IP地址可以设置为管理用的IP或者网关什么的,实际应用中有什么案例吗? |
|