Linux
在 CentOS 7 中獲取綁定狀態
在 CentOS 6 中,我有我可信賴的 /proc/net/bonding/bond0 ,它會給我以下資訊:
[kbrandt@ny-tsdb01: ~] cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: IEEE 802.3ad Dynamic link aggregation Transmit Hash Policy: layer3+4 (1) MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 802.3ad info LACP rate: fast Min links: 0 Aggregator selection policy (ad_select): stable Active Aggregator Info: Aggregator ID: 1 Number of ports: 2 Actor Key: 33 Partner Key: 33116 Partner Mac Address: 00:23:04:ee:be:01 Slave Interface: em1 MII Status: up Speed: 10000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: ec:f4:bb:c2:14:68 Aggregator ID: 1 Slave queue ID: 0 Slave Interface: em2 MII Status: up Speed: 10000 Mbps Duplex: full Link Failure Count: 1 Permanent HW addr: ec:f4:bb:c2:14:6a Aggregator ID: 1 Slave queue ID: 0
/proc/net/bonding 在 CentOS 7 中不存在,我在哪裡可以找到我的團隊在 CentOS 7 中的這些資訊?
從 RHEL 7 開始,“teaming”和“bonding”曾經可以互換使用,它們是兩個完全不同的東西。兩者都執行相同的鏈路聚合和冗餘/故障轉移功能,但它們以不同的方式執行。如果您有一個
team0
界面而不是通常的界面,則可以使用該命令bond0
獲取團隊的狀態。teamdctl team0 state view