O'Reilly logo

Expert Shell Scripting by Ron Peters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 42Network Adapter Failover

The script in this chapter provides network redundancy. It monitors the network accessibility of the local machine for issues. When there is a problem detected with a primary network interface, it reverts its configuration to a backup interface. We are assuming a network architecture where two network interface cards (NICs) are installed in the machine that runs the script. We're also assuming there are network connections running to both interfaces, which are configured in the same fashion (subnet/vlan, speed, duplex, and so on). Each interface should be physically connected to a different network switch for the sake of redundancy.

The goal is that if the primary network hardware fails for any reason, the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required