AIX 配置etherchnnel多主一备模式
三种典型的配置方式
1、双通道或者多通道的共同active模式,这个模式下,所有的网卡都处于active状态,也就是每个网卡都处于工作状态,他们共有一个IP地址与MAC地址,但是,所有网卡的目标必须在同一个交换机上,并且交换机的对应端口也要绑定。
这样做最大的好处就是,当其中一个网卡失效,或者一根网线失效的时候,不影响整个网络的工作,只有当所有的网卡通道失效的时候,网络才失效。而且,多个网卡的同时工作,可以增加网络带宽,不过,要注意,默认的分配方式是根据目标机器的Ip来分配使用哪个网卡,如果目标机器只有一台,不适合使用默认设置。这种模式下,最大的问题就是所有的网卡目标必须在同一个交换机上,并且绑定在一起,不能防止目标交换机故障。
2、active/standby模式,这样的模式下,一个网卡接到主交换机,一个网卡接到备用交换机,当active通道失效的时候,自动切换到standby通道,当主通道恢复正常的时候,再自动切换到主通道(这里是否切换回去,是可以配置的)。这种方式最大的好处就是可以防止交换机的故障。
3、复合式配置,在这种配置中,结合以上2种方式的优点。如一个3块网卡的环境中,我们可以把其中2片网卡配置成双active模式,以增加网络带宽以及网络的可靠性,另外一块网卡作为后备模式,接在另外一个交换机上,当前面2个网卡都失效,或者前面2个网卡接的交换机失效的时候,切换到后备网卡上
https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/network/etherchannel_overview.html
For example, ent0 and ent1 can be configured as the main EtherChannel adapters, and ent2 as the backup adapter, creating an EtherChannel called en3. Ideally, ent0 and ent1 are connected to the same EtherChannel-enabled switch, and ent2 is connected to a different switch. In this example, all traffic sent over en3 (the interface of EtherChannel) is sent over ent0 or ent1 by default (depending on the packet distribution scheme of EtherChannel), whereas ent2 is idle. If at any time both ent0 and ent1 fail, all traffic is sent over the backup adapter ent2. When either ent0 or ent1 recover, they are again used for all traffic.
1.etherchannel 配置 2 网卡的 active-standby 模式时,交换机无需额外配置(无论是否级联)
2.etherchannel 配置 2 网卡的 active-active 模式时,交换机需要做 lacp 配置(无论是否级联)
3.etherchannel 配置多网卡的 active-active-standby 模式时,交换机除了所有 primary 网口要做 lacp , backup adapter 的网口也需要单独做一组 lacp ,并且配置 mode lacp-dynamic 模式。
## etherchannel 切换测试
测试 SRV1_SC_A18_7U_DB_CS1
100.92.16.124
(观察主机 ent20 聚合端口的状态, ent17 接口处于备份状态还是主活状态)
Etherchannel 的 mode 有 standard 、 round_robin 、 8023.ad 三种模式
交换机网口聚合也有 lacp-static 、 lacp-dynamic 、 manual load-balance 三种模式
我们测试了 4 种组合,其中只有一种组合测试成功。
switch | etherchannel(2+1) | 测试结果 |
lacp-static | 8023.ad | 无法切回主卡 |
lacp-static | standard | ping不通 |
lacp-dynamic | standard | 测试成功 |
lacp-dynamic | 8023.ad | 无法切回主卡 |
round_robin | 未测试 |
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞2
添加新评论0 条评论