systemadmin.es » Redes » Buscar la interfaz activa del bonding (o su modo)

Buscar la interfaz activa del bonding (o su modo)

En un bonding activo-pasivo nos puede interesar saber cual es la interfaz activa. Podemos hacer un par de ifconfig para ver cual de las dos interfaces de red le cambia el tráfico pero también podemos recurrir al /proc

Dentro de /proc/net/bonding/ podemos encontrar todas las interfaces de bonding, dónde podremos consultar el modo con el que esta configurada y la interfaz activa en el caso de activo-pasivo:

# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 2
Permanent HW addr: 00:ff:de:ad:bb:00

Slave Interface: eth1
MII Status: up
Link Failure Count: 2
Permanent HW addr: 00:ff:de:ad:bb:01

Relacionados

Imprimir Imprimir

Deja un comentario:

XHTML - Tags permitidos:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>