IP Service Level Agreement Commands

Use these commands to configure IP service-level agreement (SLA) operations that monitor network performance.

The IP service-level agreement (SLA) feature lets you monitor network performance between routers or from a router to a remote IP device. The metrics are collected by measuring ICMP response time and connectivity. This feature is deployed mostly in Enterprise networks on multi-homed customer edge devices, where there is a need to automatically switch to the next priority ISP in case of reachability issues with the current ISP.

ip sla

Use this command to start configuring an IP Service Level Agreements (SLAs) operation and let the CLI enter the IP SLA configuration mode. The operation-number argument specifies the IP SLA operation that is being configured. The range is from 1 to 128.

Default No IP SLA is configured
Format ip sla operation-number
Mode Global Config

Usage guidelines:

Start configuring an IP SLA operation by using the ip sla command. This command specifies an identification number for the operation that is being configured. When you enter this command, the switch enters IP SLA configuration mode. This command is supported in IPv4 networks and also in IPv6 networks where IPv6 addresses are supported.

The maximum number of IP SLAs supported is 128 (IPv4 and IPv6 combined).

Once an operation is configured, it must be scheduled to be started (see the ip sla schedule command).

The configuration of an operation cannot be modified after an operation is scheduled to start. To modify the configuration of the operation after it is scheduled, the operation must either be stopped or be deleted using the no ip sla command, and then you can configure new operation parameters.

To display the current operational state of an IP SLA operation, use the show ip sla command in user EXEC or privileged EXEC mode.

The following example shows an operation 55 being configured as an ICMP Echo operation in an IPv4 network and being scheduled to start. In the following example, the ip sla command is used in an IPv4 network. (If SLA operation 55 is already configured and not scheduled, the CLI enters IP SLA configuration mode for operation 55. If the operation already exists and is already scheduled, this command fails.)

Command example:

CODE
(NETGEAR Switch)(config)# ip sla 55
(NETGEAR Switch)(config-ip-sla)#icmp-echo 172.16.1.175
(NETGEAR Switch)(config-ip-sla-echo)#exit
(NETGEAR Switch)(config-ip-sla)#exit
(NETGEAR Switch)(config)# ip sla schedule 55

no ip sla

Use this command to remove all the configuration information of an IP SLA operation, which also includes removing the schedule of the operation.

Format no ip sla operation-number
Mode Global Config

ip sla schedule

M4250

M4350

After configuring an IP SLA operation, the IP SLA is in pending state and must be started using the ip sla schedule command. To stop the operation and place it in the default state (pending), use the no ip sla schedule command.

The operation-number argument specifies the IP SLA operation that is being scheduled. The range is from 1 to 128.

Default By default, the operation is placed in a pending state. In the pending state, the operation is enabled but does not actively probe and collect information.
Format ip sla schedule operation-number
Mode Global Config

Usage guidelines:

By default IP SLAs are not scheduled to start. After you create an IP SLA object with the ip sla command, you must start it (with an indefinite lifetime) with the ip sla schedule command. When you enter this command, the IP SLA operation transitions from the pending state to the active state and immediately begins probing and collecting information. You can stop the IP SLA probes by unconfiguring the IP SLA schedule with the no ip sla schedule command.

This command is supported in IPv4 networks and also for IPv6 networks where IPv6 addresses are supported.

The configuration of an operation cannot be modified after an operation is scheduled to start. To modify the configuration of the operation after it is scheduled, the operation must either be stopped or be deleted using the no ip sla schedule command, and then you can modify the operation. Or, you can delete the IP SLAs operation with the no ip sla command and then reconfigure the operation with the new operation parameters.

To display the current configuration settings of the operation, use the show ip sla command in user EXEC or privileged EXEC mode.

In the following example, operation 55 is configured as an ICMP Echo operation in an IPv4 network and is scheduled to start. The example shows the ip sla schedule command being used in an IPv4 network.

Command example:

CODE
(NETGEAR Switch)(config)# ip sla 55
(NETGEAR Switch)(config-ip-sla)#icmp-echo 172.16.1.175
(NETGEAR Switch)(config-ip-sla-echo)#exit
(NETGEAR Switch)(config-ip-sla)#exit
(NETGEAR Switch)(config)# ip sla schedule 55

no ip sla schedule

Use this command to stop the IP SLA operation and place it in the default state (pending).

Format no ip sla schedule operation-number
Mode Global Config

track ip sla

M4250

M4350

Use this command to track the state of an IP SLA operation and to enter the tracking configuration mode.

This command lets the CLI enter the Track Config command mode.

Default

No objects and operations are tracked.

By default, tracking uses reachability.

Format track object-number ip sla operation-number [reachability | state]
Mode Global Config
Parameter Description
object-number The object to be tracked. The object is in the range of 1 to 128.
operation-number The IP SLA operation to be tracked. The operation is in the range of 1 to 128.
reachability

Tracks if the route is reachable. Return code:

  • OK: The track state is Up.
  • OverThreshold: The track state is Up.
  • Timeout: The track state is Down.
state

Tracks the operation return code. Return code:

  • OK: The track state is Up.
  • OverThreshold: The track state is Up.
  • Timeout: The track state is Down.

Usage guidelines:

An operation return-code value is maintained by every IP SLA operation. This return code is interpreted by the tracking process. The return code may return OK, OverThreshold, or Timeout.

Two facets of an IP SLA operation can be tracked: reachability and state. The acceptance of the OverThreshold return code is the difference between these facets.

Tracking of a maximum of 128 (IPv4 and IPv6 combined) track objects is supported. If neither of the optional keywords (reachability or state) is specified in a configured track ip sla command, the default tracking type value reachability is used.

In the following example, the tracking process is configured to track the state of IP SLA operation 5.

Command example:

CODE
(NETGEAR Switch)(config)# track 2 ip sla 5 state
(NETGEAR Switch)(config-track)#

In the following example, the tracking process is configured to track the reachability of IP SLA operation 6.

Command example:

CODE
(NETGEAR Switch)(config)# track 3 ip sla 6 reachability
(NETGEAR Switch)(config-track)#

no track ip sla

Use this command to stop IP SLA tracking.

Format no track object-number
Mode Global Config

delay (Track Config)

M4250

M4350

This command in Track Config mode specifies a delay for the switch to act on a track object if the reachability state changes.

To minimize flapping of the reachability (up/down) state, this command introduces a delay in seconds between the up and down state transitions. The delay time specifies the hold interval for up and down state transitions before the switch acts on the associated static routes.

The track ip sla command lets the CLI enter the Track Config command mode.

Default None
Format delay {up seconds [down seconds] | [down seconds] up seconds}
Mode Track Config
Parameter Description
up seconds The time to delay the notification for an up event. The value for seconds is from 0 to 180. The default is 0.
down seconds The time to delay the notification of a down event. The value for seconds is from 0 to 180. The default is 0.

Command example:

In the following example, track object 10 is created and is associated with the IP SLAs operation 11 and then an up delay of 5 seconds and a down delay of 3 seconds is configured.

CODE
(NETGEAR Switch)(config)#track 10 ip sla 11
(NETGEAR Switch)(config-track)#delay up 5 down 3

no delay (Track Config)

This command in Track Config mode resets the delay for the switch to act on a track object if the reachability state changes.

Format no delay
Mode Track Config