Labels

Friday, 18 March 2011

How to failover nics in Linux & Solaris

Usually we are expected to test that the server has connectivity from both interfaces teamed in a bonded interface.
In Solaris we can failover to the redundant / standby nic using the command

if_mpadm -d nxge0 ( assuming nxge0 is the current active interface of the IPMP )

Revert back using

if_mpadm -r nxge0

In Linux the failover in bonding is done using the command below.
Assuming eth0 is your current active slave and eth1 is the standy .

ifenslave -c eth1 ( Here -c is used to change the active slave . So if the current active slave is eth0 , then to make eth1 the current active slave, you have to give this command )
to revert back

ifenslave -c eth0


No comments:

Post a Comment