Bond4 配置超过 6 个网卡 - 需要帮助

Bond4 配置超过 6 个网卡 - 需要帮助

我需要在 RHEL5.4 上将 6 个网卡连接到一个绑定,其中 2 个网卡是 Broadcom,另外 4 个是 Intel。请问两个问题:
1. 这种配置是否可行,交换机和网卡的先决条件/配置是什么?
2. 配置此绑定后,查看 /proc/net/bonding/bond0(下面)时,我们会看到绑定中的 6 个 eth 设备。但是,其中只有两个具有聚合器 ID,因此只显示两个端口。这是什么意思?这是正常的吗?

# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008)

Bonding Mode: IEEE 802.3ad Dynamic link aggregation<br>
Transmit Hash Policy: layer2 (0)<br>
MII Status: up<br>
MII Polling Interval (ms): 150<br>
Up Delay (ms): 0<br>
Down Delay (ms): 0<br>

802.3ad info<br>
LACP rate: slow<br>
Active Aggregator Info:<br>
      Aggregator ID: 13<br>
      Number of ports: 2<br>
      Actor Key: 9<br>
      Partner Key: 17<br>
      Partner Mac Address: 00:01:81:28:84:00<br>

Slave Interface: eth0<br>
MII Status: up<br>
Link Failure Count: 0<br>
Permanent HW addr: 00:26:b9:49:ed:45<br>
Aggregator ID: 13<br>

Slave Interface: eth1<br>
MII Status: up<br>
Link Failure Count: 1<br>
Permanent HW addr: 00:26:b9:49:ed:47<br>
Aggregator ID: 13<br>

Slave Interface: eth4<br>
MII Status: up<br>
Link Failure Count: 0<br>
Permanent HW addr: 00:1b:21:4a:79:58<br>
Aggregator ID: 15<br>

Slave Interface: eth5<br>
MII Status: up<br>
Link Failure Count: 0<br>
Permanent HW addr: 00:1b:21:4a:79:59<br>
Aggregator ID: 14<br>

Slave Interface: eth8<br>
MII Status: up<br>
Link Failure Count: 0<br>
Permanent HW addr: 00:1b:21:4a:77:b0<br>
Aggregator ID: 17<br>

Slave Interface: eth9<br>
MII Status: up<br>
Link Failure Count: 0<br>
Permanent HW addr: 00:1b:21:4a:77:b1<br>
Aggregator ID: 18<br>

谢谢你,mku。

评论后:

#ifconfig:
bond1     Link encap:Ethernet  HWaddr 00:26:B9:49:ED:45  <br>
          inet6 addr: fe80::226:b9ff:fe49:ed45/64 Scope:Link<br>
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1<br>
          RX packets:519 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:743 errors:0 dropped:0 overruns:0 carrier:0<br>
          collisions:0 txqueuelen:0 <br>
          RX bytes:52812 (51.5 KiB)  TX bytes:91867 (89.7 KiB)<br>

eth0      Link encap:Ethernet  HWaddr 00:26:B9:49:ED:45  <br>
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1<br>
          RX packets:264 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:148 errors:0 dropped:0 overruns:0 carrier:0<br>
          collisions:0 txqueuelen:1000 <br>
          RX bytes:26203 (25.5 KiB)  TX bytes:17895 (17.4 KiB)<br>
          Interrupt:226 Memory:d4000000-d4012800 <br>

eth1      Link encap:Ethernet  HWaddr 00:26:B9:49:ED:45  <br>
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1<br>
          RX packets:187 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:117 errors:0 dropped:0 overruns:0 carrier:0<br>
          collisions:0 txqueuelen:1000 <br>
          RX bytes:18177 (17.7 KiB)  TX bytes:14976 (14.6 KiB)<br>
          Interrupt:234 Memory:d6000000-d6012800 <br>
eth4      Link encap:Ethernet  HWaddr 00:26:B9:49:ED:45  <br>
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1<br>
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:120 errors:0 dropped:0 overruns:0 carrier:0<br>
          collisions:0 txqueuelen:1000 <br>
          RX bytes:2728 (2.6 KiB)  TX bytes:14800 (14.4 KiB)<br>
          Memory:ddbc0000-ddbe0000 <br>

eth5      Link encap:Ethernet  HWaddr 00:26:B9:49:ED:45 <br> 
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1<br>
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:118 errors:0 dropped:0 overruns:0 carrier:0<br>
          collisions:0 txqueuelen:1000 <br>
          RX bytes:1488 (1.4 KiB)  TX bytes:14632 (14.2 KiB)<br>
          Memory:ddbe0000-ddc00000 <br>

eth8      Link encap:Ethernet  HWaddr 00:26:B9:49:ED:45  <br>
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1<br>
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:119 errors:0 dropped:0 overruns:0 carrier:0<br>
          collisions:0 txqueuelen:1000 <br>
          RX bytes:2728 (2.6 KiB)  TX bytes:14756 (14.4 KiB)<br>
          Memory:de7c0000-de7e0000 <br>

eth9      Link encap:Ethernet  HWaddr 00:26:B9:49:ED:45  <br>
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1<br>
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0<br>
          TX packets:121 errors:0 dropped:0 overruns:0 carrier:0<br>
          collisions:0 txqueuelen:1000 <br>
          RX bytes:1488 (1.4 KiB)  TX bytes:14808 (14.4 KiB)<br>
          Memory:de7e0000-de800000<br>

答案1

您最有可能遇到潜入 RHEL5.4 的上游回归问题。

你可能想查看这里以了解更多信息:

https://bugzilla.redhat.com/show_bug.cgi?id=567604

答案2

您能发布绑定接口和连接到 NIC 的交换机的配置文件吗?您必须确保所有 NIC 都配置了相同的聚合器 ID。

确保您也在交换机上设置了 ID,并将其中继模式设置为“活动”。

答案3

http://studyhat.blogspot.com/2009/10/linux-nic-bonding.html

在上面的链接中检查您正在使用的模式配置。

相关内容