找回密码
 注册
查看: 4151|回复: 0

linux bond 端口状态查询

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-11-12 15:58:49 | 显示全部楼层 |阅读模式
# cat /proc/net/bonding/bond0
5 o$ g; X5 L' a6 y4 c! G6 Q' [ Ethernet ChannelBonding Driver: v3.0.3 (March 23, 2006)
1 U. `4 Q4 X' q8 P! l Bonding Mode: fault-tolerance (active-backup)
$ a0 Q! |- i' O' w Primary Slave:None
  [  H5 o2 O. X; P+ c* Z6 H" K' z Currently Active Slave: eth0
: b# X- c! F$ w- d! h MII Status: up
7 c* j# r  F! c/ q4 P- @# F5 L MII PollingInterval (ms): 100
! {# h3 {# C: ^& a( m% ^3 ? Up Delay (ms): 02 Z8 x0 B: W  f: F3 D3 G  J" F
Down Delay (ms):0
; o  }1 Q9 C0 p# u3 J0 G Slave Interface:eth0
% D- Z+ S0 Y* G! s; F MII Status: up
1 T9 \' E* J1 p( U; V Link FailureCount: 0# N, x, \& t( u7 ?% |! t
Permanent HWaddr: 00:0c:29:01:4f:77
8 p( s+ R% m0 @/ d/ C Slave Interface:eth1
9 f8 T  p9 p) U1 @, v6 |+ Q0 @ MII Status: up- e9 C$ o) N# y1 ^7 z6 Y5 Y
Link FailureCount: 0, I" o# y" R; R$ s% _
Permanent HWaddr: 00:0c:29:01:4f:8b
0 r3 ^; Y2 W) c- N2 v% C
$ d) @) e8 P( N6 `$ u& J
% T9 i' A' }/ W5 Ncat /proc/net/bonding/bond1
2 L* g! e8 q( o$ cEthernet Channel Bonding Driver: v3.7.1 (April 27, 2011)% l- Q8 ^! i9 P3 ^7 |
Bonding Mode: fault-tolerance (active-backup)5 Z' C7 M+ M  W9 M! Z2 {+ K7 H
Primary Slave: eth2 (primary_reselect always)
- ~" S; y4 I' E5 dCurrently Active Slave: eth2* P/ S5 D% @. N6 Q, e
MII Status: up
8 I! |6 W" n% X3 r9 L1 b8 kMII Polling Interval (ms): 100
) Q$ v+ h% E$ F6 U5 LUp Delay (ms): 1200002 y: o9 L5 I5 S' D0 L/ p
Down Delay (ms): 0
. ^. {) w6 U% l4 C  N, zSlave Interface: eth2
9 G9 u/ X; s  t( P! D/ Q4 C+ B# wMII Status: up
( z* s& o: u! }' d7 [6 R2 Y2 @' Z  `Speed: 1000 Mbps; l9 c- z/ |* o% z. ^: n# }
Duplex: full
8 R- X! U2 m: i. K2 f7 r/ s7 HLink Failure Count: 1! @3 k. K3 Z9 n$ n3 `8 [5 B' f
Permanent HW addr: 6c:92:bf:2a:2c:ae, f) f9 c4 j. h# i% N
Slave queue ID: 0
& [, _8 w& y9 \2 R2 ?Slave Interface: eth3
/ V  i7 Y7 o5 f! z5 y- D7 b8 D: fMII Status: up
1 i* n3 }6 w6 R6 y1 J0 \7 y, O0 oSpeed: 1000 Mbps& E9 |# X" `0 e2 Y1 h" a+ j: h- G
Duplex: full/ _) c; a! F. @: Z. Y% {
Link Failure Count: 0
# F! P7 n$ w# ~/ l+ z; ZPermanent HW addr: 6c:92:bf:02:f6:eb% S) ~3 E( X! G
Slave queue ID: 0( `' h  G9 T  Q% U* ]& T

2 C# S+ W+ V" ]* ]( l- o
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 01:24 , Processed in 0.017274 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表