1
Network 討論版 / 回覆: 測試802.3ad 頻寬聚合失敗 :(
« 於: 2009-08-22 16:18 »
我也是跟樓主相同的狀況, 想做頻寬合聚,但只會跑在一張介面卡上:
我是用 Bandwidth Monitor 的軟體去監視網卡的流量。
lab os: centos 5.3
interface Port-channel1
switchport mode access
interface FastEthernet0/3
switchport mode access
load-interval 30
channel-group 1 mode active
spanning-tree portfast
spanning-tree bpdufilter enable
interface FastEthernet0/5
switchport mode access
load-interval 30
channel-group 1 mode active
spanning-tree portfast
spanning-tree bpdufilter enable
lo249#sh lacp neighbor
Flags: S - Device is requesting Slow LACPDUs
F - Device is requesting Fast LACPDUs
A - Device is in Active mode P - Device is in Passive mode
Channel group 1 neighbors
Partner's information:
LACP port Admin Oper Port Port
Port Flags Priority Dev ID Age key Key Number State
Fa0/3 FA 255 00e0.815d.7eeb 8s 0x0 0x9 0x1 0x3F
Fa0/5 FA 255 00e0.815d.7eeb 8s 0x0 0x9 0x2 0x3F
lo249#sh lacp internal
Flags: S - Device is requesting Slow LACPDUs
F - Device is requesting Fast LACPDUs
A - Device is in Active mode P - Device is in Passive mode
Channel group 1
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Fa0/3 SA bndl 32768 0x1 0x1 0x3 0x3D
Fa0/5 SA bndl 32768 0x1 0x1 0x5 0x3D
lo249#sh lacp counters
LACPDUs Marker Marker Response LACPDUs
Port Sent Recv Sent Recv Sent Recv Pkts Err
---------------------------------------------------------------------
Channel group: 1
Fa0/3 24799 934 0 0 0 0 0
Fa0/5 24790 1046 0 0 0 0 0
## Linux set ##
# cat /etc/modprobe.conf
alias bond0 bonding
options bond0 mode=4 miimon=50 lacp_rate=1 xmit_hash_policy=layer3+4
# cat /etc/sysconfig/network-scripts/ifcfg-{eth0,eth1,bond0}
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
HWADDR=00:E0:81:5D:7E:EB
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
HWADDR=00:E0:81:5D:7E:EC
DEVICE=bond0
IPADDR=192.168.1.70
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.2.4 (January 28, 2008)
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer3+4 (1)
MII Status: up
MII Polling Interval (ms): 50
Up Delay (ms): 0
Down Delay (ms): 0
802.3ad info
LACP rate: fast
Active Aggregator Info:
Aggregator ID: 3
Number of ports: 2
Actor Key: 9
Partner Key: 1
Partner Mac Address: 00:0a:b8:24:ef:00
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:e0:81:5d:7e:eb
Aggregator ID: 3
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:e0:81:5d:7e:ec
Aggregator ID: 3
我是用 Bandwidth Monitor 的軟體去監視網卡的流量。
lab os: centos 5.3
interface Port-channel1
switchport mode access
interface FastEthernet0/3
switchport mode access
load-interval 30
channel-group 1 mode active
spanning-tree portfast
spanning-tree bpdufilter enable
interface FastEthernet0/5
switchport mode access
load-interval 30
channel-group 1 mode active
spanning-tree portfast
spanning-tree bpdufilter enable
lo249#sh lacp neighbor
Flags: S - Device is requesting Slow LACPDUs
F - Device is requesting Fast LACPDUs
A - Device is in Active mode P - Device is in Passive mode
Channel group 1 neighbors
Partner's information:
LACP port Admin Oper Port Port
Port Flags Priority Dev ID Age key Key Number State
Fa0/3 FA 255 00e0.815d.7eeb 8s 0x0 0x9 0x1 0x3F
Fa0/5 FA 255 00e0.815d.7eeb 8s 0x0 0x9 0x2 0x3F
lo249#sh lacp internal
Flags: S - Device is requesting Slow LACPDUs
F - Device is requesting Fast LACPDUs
A - Device is in Active mode P - Device is in Passive mode
Channel group 1
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Fa0/3 SA bndl 32768 0x1 0x1 0x3 0x3D
Fa0/5 SA bndl 32768 0x1 0x1 0x5 0x3D
lo249#sh lacp counters
LACPDUs Marker Marker Response LACPDUs
Port Sent Recv Sent Recv Sent Recv Pkts Err
---------------------------------------------------------------------
Channel group: 1
Fa0/3 24799 934 0 0 0 0 0
Fa0/5 24790 1046 0 0 0 0 0
## Linux set ##
# cat /etc/modprobe.conf
alias bond0 bonding
options bond0 mode=4 miimon=50 lacp_rate=1 xmit_hash_policy=layer3+4
# cat /etc/sysconfig/network-scripts/ifcfg-{eth0,eth1,bond0}
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
HWADDR=00:E0:81:5D:7E:EB
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
HWADDR=00:E0:81:5D:7E:EC
DEVICE=bond0
IPADDR=192.168.1.70
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.2.4 (January 28, 2008)
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer3+4 (1)
MII Status: up
MII Polling Interval (ms): 50
Up Delay (ms): 0
Down Delay (ms): 0
802.3ad info
LACP rate: fast
Active Aggregator Info:
Aggregator ID: 3
Number of ports: 2
Actor Key: 9
Partner Key: 1
Partner Mac Address: 00:0a:b8:24:ef:00
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:e0:81:5d:7e:eb
Aggregator ID: 3
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:e0:81:5d:7e:ec
Aggregator ID: 3