Cisco ASA 5500 Series Configuration Guide using the CLI, 8.2
Configuring Active/Standby Failover

Table Of Contents

Configuring Active/Standby Failover

Configuring Active/Standby Failover Settings

Information About Active/Standby Failover

Active/Standby Failover Overview

Primary/Secondary Status and Active/Standby Status

Device Initialization and Configuration Synchronization

Command Replication

Failover Triggers

Failover Actions

Licensing Requirements for Active/Standby Failover

Prerequisites for Active/Standby Failover

Guidelines and Limitations

Configuring LAN-Based Active/Standby Failover

Task Flow for Configuring Active/Standby Failover

Configuring the Primary Unit

Configuring the Secondary Unit

Monitoring Active/Standby Failover

Configuring Optional Active/Standby Failover Settings

Information About Optional Active/Standby Failover Settings

Licensing Requirements for Optional Active/Standby Failover Settings

Guidelines and Limitations for Optional Active/Standby Failover Settings

Configuring Optional Active/Standby Failover Settings

Enabling HTTP Replication with Stateful Failover

Disabling and Enabling Interface Monitoring

Configuring Interface Health Monitoring

Configuring Failover Criteria

Configuring Virtual MAC Addresses

Monitoring Optional Active/Standby Failover Settings

Feature History for Optional Active/Standby Failover Settings


Configuring Active/Standby Failover


This chapter describes how to configure active/standby failover, and it includes the following sections:

Configuring Active/Standby Failover Settings

Configuring Optional Active/Standby Failover Settings

Configuring Active/Standby Failover Settings

This section includes the following topics:

Information About Active/Standby Failover

Licensing Requirements for Active/Standby Failover

Prerequisites for Active/Standby Failover

Guidelines and Limitations

Configuring LAN-Based Active/Standby Failover

Monitoring Active/Standby Failover

Information About Active/Standby Failover

This section describes Active/Standby failover, and it includes the following topics:

Active/Standby Failover Overview

Primary/Secondary Status and Active/Standby Status

Device Initialization and Configuration Synchronization

Command Replication

Failover Triggers

Failover Actions

Active/Standby Failover Overview

Active/Standby failover enables you to use a standby adaptive security appliance to take over the functionality of a failed unit. When the active unit fails, it changes to the standby state while the standby unit changes to the active state. The unit that becomes active assumes the IP addresses (or, for transparent firewall, the management IP address) and MAC addresses of the failed unit and begins passing traffic. The unit that is now in standby state takes over the standby IP addresses and MAC addresses. Because network devices see no change in the MAC to IP address pairing, no ARP entries change or time out anywhere on the network.


Note For multiple context mode, the adaptive security appliance can fail over the entire unit (including all contexts) but cannot fail over individual contexts separately.


Primary/Secondary Status and Active/Standby Status

The main differences between the two units in a failover pair are related to which unit is active and which unit is standby, namely which IP addresses to use and which unit actively passes traffic.

However, a few differences exist between the units based on which unit is primary (as specified in the configuration) and which unit is secondary:

The primary unit always becomes the active unit if both units start up at the same time (and are of equal operational health).

The primary unit MAC addresses are always coupled with the active IP addresses. The exception to this rule occurs when the secondary unit is active and cannot obtain the primary unit MAC addresses over the failover link. In this case, the secondary unit MAC addresses are used.

Device Initialization and Configuration Synchronization

Configuration synchronization occurs when one or both devices in the failover pair boot. Configurations are always synchronized from the active unit to the standby unit. When the standby unit completes its initial startup, it clears its running configuration (except for the failover commands needed to communicate with the active unit), and the active unit sends its entire configuration to the standby unit.

The active unit is determined by the following:

If a unit boots and detects a peer already running as active, it becomes the standby unit.

If a unit boots and does not detect a peer, it becomes the active unit.

If both units boot simultaneously, then the primary unit becomes the active unit, and the secondary unit becomes the standby unit.


Note If the secondary unit boots without detecting the primary unit, it becomes the active unit. It uses its own MAC addresses for the active IP addresses. However, when the primary unit becomes available, the secondary unit changes the MAC addresses to those of the primary unit, which can cause an interruption in your network traffic. To avoid this, configure the failover pair with virtual MAC addresses. See the "Configuring Virtual MAC Addresses" section for more information.


When the replication starts, the adaptive security appliance console on the active unit displays the message "Beginning configuration replication: Sending to mate," and when it is complete, the adaptive security appliance displays the message "End Configuration Replication to mate." During replication, commands entered on the active unit may not replicate properly to the standby unit, and commands entered on the standby unit may be overwritten by the configuration being replicated from the active unit. Avoid entering commands on either unit in the failover pair during the configuration replication process. Depending upon the size of the configuration, replication can take from a few seconds to several minutes.


Note The crypto ca server command and related sub-commands are not synchronized to the failover peer.


On the standby unit, the configuration exists only in running memory. To save the configuration to Flash memory after synchronization, do the following:

For single context mode, enter the write memory command on the active unit. The command is replicated to the standby unit, which proceeds to write its configuration to Flash memory.

For multiple context mode, enter the write memory all command on the active unit from the system execution space. The command is replicated to the standby unit, which proceeds to write its configuration to Flash memory. Using the all keyword with this command causes the system and all context configurations to be saved.


Note Startup configurations saved on external servers are accessible from either unit over the network and do not need to be saved separately for each unit. Alternatively, you can copy the contexts on disk from the active unit to an external server, and then copy them to disk on the standby unit, where they become available when the unit reloads.


Command Replication

Command replication always flows from the active unit to the standby unit. As commands are entered on the active unit, they are sent across the failover link to the standby unit. You do not have to save the active configuration to Flash memory to replicate the commands.

Table 33-1 lists the commands that are and are not replicated to the standby unit:

Table 33-1 Command Replication

Command Replicated to the Standby Unit
Commands Not Replicated to the Standby Unit

all configuration commands except for the mode, firewall, and failover lan unit commands

all forms of the copy command except for copy running-config startup-config

copy running-config startup-config

all forms of the write command except for write memory

delete

crypto ca server and associated sub-commands

mkdir

debug

rename

failover lan unit

rmdir

firewall

write memory

mode

show

terminal pager and pager



Note Changes made on the standby unit are not replicated to the active unit. If you enter a command on the standby unit, the adaptive security appliance displays the message **** WARNING **** Configuration Replication is NOT performed from Standby unit to Active unit. Configurations are no longer synchronized. This message displays even when you enter many commands that do not affect the configuration.


If you enter the write standby command on the active unit, the standby unit clears its running configuration (except for the failover commands used to communicate with the active unit), and the active unit sends its entire configuration to the standby unit.

For multiple context mode, when you enter the write standby command in the system execution space, all contexts are replicated. If you enter the write standby command within a context, the command replicates only the context configuration.

Replicated commands are stored in the running configuration. To save the replicated commands to the Flash memory on the standby unit, do the following:

For single context mode, enter the copy running-config startup-config command on the active unit. The command is replicated to the standby unit, which proceeds to write its configuration to Flash memory.

For multiple context mode, enter the copy running-config startup-config command on the active unit from the system execution space and within each context on disk. The command is replicated to the standby unit, which proceeds to write its configuration to Flash memory. Contexts with startup configurations on external servers are accessible from either unit over the network and do not need to be saved separately for each unit. Alternatively, you can copy the contexts on disk from the active unit to an external server, and then copy them to disk on the standby unit.

Failover Triggers

The unit can fail if one of the following events occurs:

The unit has a hardware failure or a power failure.

The unit has a software failure.

Too many monitored interfaces fail.

The no failover active command is entered on the active unit or the failover active command is entered on the standby unit.

Failover Actions

In Active/Standby failover, failover occurs on a unit basis. Even on systems running in multiple context mode, you cannot fail over individual or groups of contexts.

Table 33-2 shows the failover action for each failure event. For each failure event, the table shows the failover policy (failover or no failover), the action taken by the active unit, the action taken by the standby unit, and any special notes about the failover condition and actions.

Table 33-2 Failover Behavior 

Failure Event
Policy
Active Action
Standby Action
Notes

Active unit failed (power or hardware)

Failover

n/a

Become active

Mark active as failed

No hello messages are received on any monitored interface or the failover link.

Formerly active unit recovers

No failover

Become standby

No action

None.

Standby unit failed (power or hardware)

No failover

Mark standby as failed

n/a

When the standby unit is marked as failed, then the active unit does not attempt to fail over, even if the interface failure threshold is surpassed.

Failover link failed during operation

No failover

Mark failover interface as failed

Mark failover interface as failed

You should restore the failover link as soon as possible because the unit cannot fail over to the standby unit while the failover link is down.

Failover link failed at startup

No failover

Mark failover interface as failed

Become active

If the failover link is down at startup, both units become active.

Stateful Failover link failed

No failover

No action

No action

State information becomes out of date, and sessions are terminated if a failover occurs.

Interface failure on active unit above threshold

Failover

Mark active as failed

Become active

None.

Interface failure on standby unit above threshold

No failover

No action

Mark standby as failed

When the standby unit is marked as failed, then the active unit does not attempt to fail over even if the interface failure threshold is surpassed.


Licensing Requirements for Active/Standby Failover

The following table shows the licensing requirements for this feature:

Model
License Requirement

ASA 5505

Security Plus License. (Stateful failover is not supported.)

All other models

Base License.


Prerequisites for Active/Standby Failover

Active/Standby failover has the following prerequisites:

Both units must be identical security appliances that are connected to each other through a dedicated failover link and, optionally, a Stateful Failover link.

Both units must have the same software configuration and the proper license.

Both units must be in the same mode (single or multiple, transparent or routed).

Guidelines and Limitations

This section includes the guidelines and limitations for this feature.

Context Mode Guidelines

Supported in single and multiple context mode.

For multiple context mode, perform all steps in the system execution space unless otherwise noted.

Firewall Mode Guidelines

Supported only in transparent or routed firewall mode.

IPv6 Guidelines

IPv6 failover is not supported in this release.

Model Guidelines

Stateful failover is not supported on the Cisco ASA 5505 adaptive security appliance.

Additional Guidelines and Limitations

The following guidelines and limitations apply for Active/Standby failover:

To receive packets from both units in a failover pair, standby IP addresses need to be configured on all interfaces.

The standby IP address is used on the security appliance that is currently the standby unit, and it must be in the same subnet as the active IP address.

If you enter the terminal pager or pager commands on the active unit in a failover pair, the active console terminal pager settings change, but the standby unit settings do not. A default configuration issued on the active unit does affect behavior on the standby unit.

Configuring LAN-Based Active/Standby Failover

This section describes how to configure Active/Standby failover using an Ethernet failover link.


Note If you are changing from cable-based failover to LAN-based failover, you can skip any steps that you completed for the cable-based failover configuration, such as assigning the active and standby IP addresses for each interface.


This section includes the following topics:

Task Flow for Configuring Active/Standby Failover

Configuring the Primary Unit

Configuring the Secondary Unit

Task Flow for Configuring Active/Standby Failover

Follow these steps to configure Active/Standby Failover:


Step 1 Configure the primary unit, as shown in the "Configuring the Primary Unit" section.

Step 2 Configure the secondary unit, as shown in the "Configuring the Secondary Unit" section.

Step 3 (Optional) Configure optional Active/Standby failover settings, as shown in the "Configuring Optional Active/Standby Failover Settings" section.


Configuring the Primary Unit

Follow the steps in this section to configure the primary unit in a LAN-based, Active/Standby failover configuration. These steps provide the minimum configuration needed to enable failover on the primary unit.

Restrictions

Do not configure an IP address for the Stateful Failover link if you are going to use a dedicated Stateful Failover interface. You use the failover interface ip command to configure a dedicated Stateful Failover interface in a later step.

Detailed Steps

 
Command
Purpose

Step 1 

ip address active_addr netmask standby 
standby_addr

Example:
hostname/context(config-if)# ip address 
10.1.1.1 255.255.255.0 standby 10.1.1.2

Configures the active and standby IP addresses for each data interface (routed mode), for the management IP address (transparent mode), or for the management-only interface.

In routed firewall mode and for the management-only interface, enter this command in configuration mode for each interface.

In transparent firewall mode, enter the command in global configuration mode.

In multiple context mode, configure the interface addresses from within each context. Use the change to context command to switch between contexts. The command prompt changes to hostname/context(config-if)#, where context is the name of the current context. You must enter a management IP address for each context in transparent firewall multiple context mode.

Step 2 

failover lan unit primary

Designates the unit as the primary unit.

Step 3 

failover lan interface if_name phy_if

hostname(config)# failover lan interface 
folink vlan100

Specifies the interface to be used as the failover interface.

The if_name argument assigns a name to the interface specified by the phy_if argument.

The phy_if argument can be the physical port name, such as Ethernet1, or a previously created subinterface, such as Ethernet0/2.3. On the ASA 5505 adaptive adaptive security appliance, the phy_if specifies a VLAN. This interface should not be used for any other purpose (except, optionally, the Stateful Failover link).

Step 4 

failover interface ip if_name ip_addr mask 
standby ip_addr

Example:
hostname(config)# failover interface ip 
folink 172.27.48.1 255.255.255.0 standby 
172.27.48.2

Assigns the active and standby IP addresses to the failover link.

The standby IP address must be in the same subnet as the active IP address. You do not need to identify the standby address subnet mask.

The failover link IP address and MAC address do not change at failover. The active IP address for the failover link always stays with the primary unit, while the standby IP address stays with the secondary unit.

Step 5 

interface phy_if

Example:
hostname(config)# interface vlan100
hostname(config-if)# no shutdown

Enables the interface.

Step 6 

failover link if_name phy_if

xample:
hostname(config)# failover link folink 
vlan100

(Optional) Specifies the interface to be used as the Stateful Failover link.


Note If the Stateful Failover link uses the failover link or a data interface, then you only need to supply the if_name argument.


The if_name argument assigns a logical name to the interface specified by the phy_if argument. The phy_if argument can be the physical port name, such as Ethernet1, or a previously created subinterface, such as Ethernet0/2.3. This interface should not be used for any other purpose (except, optionally, the failover link).

Step 7 

failover interface ip if_name ip_addr mask 
standby ip_addr

Example:
hostname(config)# failover interface ip 
folink 172.27.48.1 255.255.255.0 standby 
172.27.48.2

(Optional) Assigns an active and standby IP address to the Stateful Failover link.


Note If the stateful Failover link uses the failover link or data interface, skip this step. You have already defined the active and standby IP addresses for the interface.


The standby IP address must be in the same subnet as the active IP address. You do not need to identify the standby address subnet mask.

The Stateful Failover link IP address and MAC address do not change at failover unless it uses a data interface. The active IP address always stays with the primary unit, while the standby IP address stays with the secondary unit.

Step 8 

interface phy_if

no shutdown

Example:
hostname(config)# interface vlan100
hostname(config-if)# no shutdown

(Optional) Enables the interface.


Note If the Stateful Failover link uses the failover link or data interface, skip this step. You have already enabled the interface.


Step 9 

failover

Example:
hostname(config)# failover

Enables failover.

Step 10 

copy running-config startup-config

Example:
hostname(config)# copy running-config 
startup-config

Saves the system configuration to Flash memory.

Configuring the Secondary Unit

The only configuration required on the secondary unit is for the failover interface. The secondary unit requires these commands to initially communicate with the primary unit. After the primary unit sends its configuration to the secondary unit, the only permanent difference between the two configurations is the failover lan unit command, which identifies each unit as primary or secondary.

Prerequisites

When configuring LAN-based failover, you must bootstrap the secondary device to recognize the failover link before the secondary device can obtain the running configuration from the primary device

Detailed Steps

 
Command
Purpose

Step 1 

failover lan interface if_name phy_if

Example:
hostname(config)# failover lan interface 
folink vlan100

Specifies the interface to be used as the failover interface. (Use the same settings that you used for the primary unit.)

The if_name argument assigns a name to the interface specified by the phy_if argument.

Step 2 

failover interface ip if_name ip_addr mask 
standby ip_addr

Example:
hostname(config)# failover interface ip 
folink 172.27.48.1 255.255.255.0 standby 
172.27.48.2

Assigns the active and standby IP address to the failover link. To receive packets from both units in a failover pair, standby IP addresses need to be configured on all interfaces.


Note Enter this command exactly as you entered it on the primary unit when you configured the failover interface on the primary unit (including the same IP address).


Step 3 

interface phy_if

no shutdown

Example:
hostname(config)# interface vlan100
hostname(config-if)# no shutdown

Enables the interface.

Step 4 

failover lan unit secondary

Example:
hostname(config)# failover lan unit 
secondary

(Optional) Designates this unit as the secondary unit:


Note This step is optional because, by default, units are designated as secondary unless previously configured.


Step 5 

failover

Example:
hostname(config)# failover

Enables failover.

After you enable failover, the active unit sends the configuration in running memory to the standby unit. As the configuration synchronizes, the messages "Beginning configuration replication: Sending to mate" and "End Configuration Replication to mate" appear on the active unit console.

Step 6 

copy running-config startup-config

Example:
hostname(config)# copy running-config 
startup-config

Saves the configuration to Flash memory.

Enter the command after the running configuration has completed replication.

Monitoring Active/Standby Failover

To monitor Active/Standby failover, enter one of the following commands:

Command
Purpose
show failover

Displays information about the failover status of the unit.

show ip address

Displays the IP address assigned to an interface.


The following is sample output from the show failover command for Active/Standby Failover. The adaptive security appliances are ASA 5500 series adaptive adaptive security appliances, each equipped with a CSC SSM as shown in the details for slot 1 of each adaptive security appliance.

hostname# show failover

Failover On
Cable status: N/A - LAN-based failover enabled 
Failover unit Primary 
Failover LAN Interface: fover Ethernet2 (up) 
Unit Poll frequency 1 seconds, holdtime 3 seconds 
Interface Poll frequency 15 seconds 
Interface Policy 1 
Monitored Interfaces 2 of 250 maximum 
failover replication http 
Last Failover at: 22:44:03 UTC Dec 8 2004
        This host: Primary - Active 
                Active time: 13434 (sec)
                slot 0: ASA5520 hw/sw rev (1.0/7.1(0)10) status (Up Sys)
                  Interface inside (10.130.9.3): Normal 
                  Interface outside (10.132.9.3): Normal 
                slot 1: ASA-SSM-20 hw/sw rev (1.0/CSC-SSM 5.0 (Build#1176)) status (Up/Up)
                  Logging port IP: 10.0.0.3/24
                  CSC-SSM, 5.0 (Build#1176)
        Other host: Secondary - Standby Ready 
                Active time: 0 (sec)
                slot 0: ASA5520 hw/sw rev (1.0/7.1(0)10) status (Up Sys)
                  Interface inside (10.130.9.4): Normal 
                  Interface outside (10.132.9.4): Normal 
                slot 1: ASA-SSM-20 hw/sw rev (1.0/CSC-SSM 5.0 (Build#1176)) status (Up/Up)
                  Logging port IP: 10.0.0.4/24
                  CSC-SSM, 5.0 (Build#1176)

Stateful Failover Logical Update Statistics
        Link : fover Ethernet2 (up)
        Stateful Obj    xmit       xerr       rcv        rerr      
        General         0          0          0          0         
        sys cmd         1733       0          1733       0         
        up time         0          0          0          0         
        RPC services    0          0          0          0         
        TCP conn        6          0          0          0         
        UDP conn        0          0          0          0         
        ARP tbl         106        0          0          0         
        Xlate_Timeout   0          0          0          0
        VPN IKE upd     15         0          0          0
        VPN IPSEC upd   90         0          0          0
        VPN CTCP upd    0          0          0          0
        VPN SDI upd     0          0          0          0
        VPN DHCP upd    0          0          0          0
		SIP Session				0          0          0          0

        Logical Update Queue Information
                        Cur     Max     Total
        Recv Q:         0       2       1733
        Xmit Q:         0       2       15225

Configuring Optional Active/Standby Failover Settings

You can configure optional Active/Standby failover setting when you are initially configuring failover or after failover has already been configured. Unless otherwise noted, the commands should be entered on the active unit.

This section includes the following topics:

Information About Optional Active/Standby Failover Settings

Licensing Requirements for Optional Active/Standby Failover Settings

Guidelines and Limitations for Optional Active/Standby Failover Settings

Configuring Optional Active/Standby Failover Settings

Monitoring Optional Active/Standby Failover Settings

Feature History for Optional Active/Standby Failover Settings

Information About Optional Active/Standby Failover Settings

You can configure the following Active/Standby failover options when you initially configuring failover or after failover has been configured:

HTTP replication with Stateful Failover—Allows connections to be included in the state information replication.

Interface monitoring—Allows you to monitor up to 250 interfaces on a unit and control which interfaces affect your failover.

Interface health monitoring—Enables the security appliance to detect and respond to interface failures more quickly.

Failover criteria setup—Allows you to specify a specific number of interfaces or a percentage of monitored interfaces that must fail before failover occurs.

Virtual MAC address configuration—Ensures that the secondary unit uses the correct MAC addresses when it is the active unit, even if it comes online before the primary unit.

Licensing Requirements for Optional Active/Standby Failover Settings

The following table shows the licensing requirements for this feature:

Model
License Requirement

ASA 5505

Security Plus License. (Stateful failover is not supported.)

All other models

Base License.


Guidelines and Limitations for Optional Active/Standby Failover Settings

This section includes the following topics:

Context Mode Guidelines

Firewall Mode Guidelines

Model Guidelines

Additional Guidelines and Limitations

Context Mode Guidelines

Supported in single and multiple context mode.

For multiple context mode, all steps are performed in the system execution space unless otherwise noted.

Firewall Mode Guidelines

Supported in transparent or routed firewall mode.

Model Guidelines

Stateful failover is not supported on the Cisco ASA 5505 adaptive security appliance.

IPv6 Guidelines

IPv6 failover is not supported in this release.

Additional Guidelines and Limitations

The following guidelines and limitations apply to optional Active/Standby failover settings:

When you enable interface monitoring, you can monitor up to 250 interfaces on a unit.

By default, the security appliance does not replicate THTTP session information when Stateful Failover is enabled. Because HTTP sessions are typically short-lived, and because HTTP clients typically retry failed connection attempts, not replicating HTTP sessions increases system performance without causing serious data or connection loss. The failover replication http command enables the stateful replication of HTTP sessions in a Stateful Failover environment, but it could have a negative impact upon system performance.

Configuring Optional Active/Standby Failover Settings

This section includes the following topics:

Enabling HTTP Replication with Stateful Failover

Disabling and Enabling Interface Monitoring

Configuring Interface Health Monitoring

Configuring Failover Criteria

Configuring Virtual MAC Addresses

Enabling HTTP Replication with Stateful Failover

To allow HTTP connections to be included in the state information replication, you need to enable HTTP replication. Because HTTP connections are typically short-lived, and because THTTP clients typically retry failed connection attempts, HTTP connections are not automatically included in the replicated state information.

Enter the following command in global configuration mode to enable HTTP state replication when Stateful Failover is enabled.

Command
Purpose

failover replication http


Example:

hostname (config)# failover replication http

Enables HTTP state replication.


Disabling and Enabling Interface Monitoring

You can control which interfaces affect your failover policy by disabling the monitoring of specific interfaces and enabling the monitoring of others. This feature enables you to exclude interfaces attached to less critical networks from affecting your failover policy.

You can monitor up to 250 interfaces on a unit. By default, monitoring physical interfaces is enabled and monitoring subinterfaces is disabled.

Hello messages are exchanged during every interface poll frequency time period between the security appliance failover pair. The failover interface poll time is 3 to 15 seconds. For example, if the poll time is set to 5 seconds, testing begins on an interface if 5 consecutive hellos are not heard on that interface (25 seconds).

Monitored failover interfaces can have the following status:

Unknown—Initial status. This status can also mean the status cannot be determined.

Normal—The interface is receiving traffic.

Testing—Hello messages are not heard on the interface for five poll times.

Link Down—The interface or VLAN is administratively down.

No Link—The physical link for the interface is down.

Failed—No traffic is received on the interface, yet traffic is heard on the peer interface.

In Active/Active failover, this command is only valid within a context.

For units in multiple configuration mode, enter the following commands to enable or disable interface monitoring for specific interfaces.

 

Do one of the following:

 
no monitor-interface if_name

Example:
hostname/context (config)# no 
monitor-interface lanlink

Disables health monitoring for an interface.

 
monitor-interface if_name

Example:
hostname/context (config)# 
monitor-interface lanlink

Enables health monitoring for an interface.

For units in single configuration mode, enter the following commands to enable or disable health monitoring for specific interfaces:

 

Do one of the following:

 
no monitor-interface if_name

Example:
hostname/context (config)# no 
monitor-interface lanlink

Disables health monitoring for an interface.

 
monitor-interface if_name

Example:
hostname/context (config)# 
monitor-interface lanlink

Enables health monitoring for an interface.

Configuring Interface Health Monitoring

The adaptive security appliance sends hello packets out of each data interface to monitor interface health. If the adaptive security appliance does not receive a hello packet from the corresponding interface on the peer unit for over half of the hold time, then the additional interface testing begins. If a hello packet or a successful test result is not received within the specified hold time, the interface is marked as failed. Failover occurs if the number of failed interfaces meets the failover criteria.

Decreasing the poll and hold times enables the adaptive security appliance to detect and respond to interface failures more quickly, but may consume more system resources.

For units in multiple configuration mode, enter the following commands to enable or disable health monitoring for specific interfaces.

Command
Purpose

failover polltime interface [msec] time [holdtime time]


Example:

hostname (config): failover polltime interface msec 500 holdtime 5

Changes the interface poll time.

Valid values for poll time are from 1 to 15 seconds or, if the optional msec keyword is used, from 500 to 999 milliseconds. The hold time determines how long it takes from the time a hello packet is missed to when the interface is marked as failed. Valid values for the hold time are from 5 to 75 seconds. You cannot enter a hold time that is less than 5 times the poll time.

If the interface link is down, interface testing is not conducted and the standby unit could become active in just one interface polling period if the number of failed interfaces meets or exceeds the configured failover criteria.


Configuring Failover Criteria

You can specify a specific number of interface or a percentage of monitored interfaces that must fail be fore failover occurs. By default, a single interface failure causes failover.

To the change the default failover criteria, enter the following command in global configuration mode:

Command
Purpose

failover interface-policy num[%]


Example:

hostname (config)# failover interface-policy 20%

Changes the default failover criteria.

When specifying a specific number of interfaces, the num argument can be from 1 to 250.

When specifying a percentage of interfaces, the num argument can be from 1 to 100.


Configuring Virtual MAC Addresses

In Active/Standby failover, the MAC addresses for the primary unit are always associated with the active IP addresses. If the secondary unit boots first and becomes active, it uses the burned-in MAC address for its interfaces. When the primary unit comes online, the secondary unit obtains the MAC addresses from the primary unit. The change can disrupt network traffic.

You can configure virtual MAC addresses for each interface to ensure that the secondary unit uses the correct MAC addresses when it is the active unit, even if it comes online before the primary unit. If you do not specify virtual MAC addresses the failover pair uses the burned-in NIC addresses as the MAC addresses.


Note You cannot configure a virtual MAC address for the failover or Stateful Failover links. The MAC and IP addresses for those links do not change during failover.


Enter the following command on the active unit to configure the virtual MAC addresses for an interface:

Command
Purpose

failover mac address phy_if active_mac standby_mac


Example:

hostname (config): failover mac address Ethernet0/2 00a0.c969.87c8 00a0.c918.95d8

Configures the virtual MAC address for an interface.

The phy_if argument is the physical name of the interface, such as Ethernet1. The active_mac and standby_mac arguments are MAC addresses in H.H.H format, where H is a 16-bit hexadecimal digit. For example, the MAC address 00-0C-F1-42-4C-DE would be entered as 000C.F142.4CDE.

The active_mac address is associated with the active IP address for the interface, and the standby_mac is associated with the standby IP address for the interface.

There are multiple ways to configure virtual MAC addresses on the adaptive security appliance. When more than one method has been used to configure virtual MAC addresses, the adaptive security appliance uses the following order of preference to determine which virtual MAC address is assigned to an interface:

1. The mac-address command (in interface configuration mode) address.

2. The failover mac address command address.

3. The mac-address auto command generated address.

4. The burned-in MAC address.

Use the show interface command to display the MAC address used by an interface.


Monitoring Optional Active/Standby Failover Settings

To monitor optional Active/Standby settings, perform one of the following tasks:

Command
Purpose
failover reset

Restores a failed unit to an unfailed state.

monitor-interface

Specifies the interfaces being monitored for failover.

show failover

Displays information about the failover state of the unit.

show running-config failover

Displays the failover commands in the running configuration.


Feature History for Optional Active/Standby Failover Settings

Table 33-3 lists the release history for this feature. (Break out this section to use sub-features, each with its own row.)

Table 33-3 Feature History for Optional Active/Standby Failover Settings

Feature Name
Releases
Feature Information

Optional Active/Standby failover settings

7.0

The following optional Active/Standby failover settings became available:

HTTP replication with Stateful Failover

Interface monitoring

Interface health monitoring

Failover criteria setup

Virtual MAC address configuration

The following commands were introduced or modified: command1, command2, command3.