keepalive peer

Syntax

keepalive peer <PEER-IP-ADDR> source <SOURCE-IP-ADDR> [vrf <VRF-NAME>]
no keepalive

Description

Sets the source and peer IP addresses for keepalive packets in a specified VRF. If a VRF is not specified, it sets to the default VRF.

The no form of this command removes the source and peer IP addresses and VRF for the keepalive protocol. VSX continues to work.

NOTE:

This keepalive peer command replaces the mclag keepalive peer <PEER-IP-ADDR> source <SOURCE-IP-ADDR> [vrf <VRF-NAME>] command that is supported only in 10.00 releases.

Command context

config-vsx

Parameters

peer <PEER-IP-ADDR>

Specifies the peer IPv4 address. Syntax: A.B.C.D

source <IP-ADDR>

Specifies the source IPv4 address. The source IP address is the IP address assigned to the keepalive interface on the switch. For example, if you are entering this command on the primary switch, the source IP address would be the IP address assigned to the keepalive interface on the primary switch. Syntax: A.B.C.D

vrf <VRF-NAME>

Specifies the VRF name. If you are entering this command on the primary switch, the peer IP address is the IP address assigned to the keepalive interface for the secondary switch. If you are entering this command on the secondary switch, the peer IP address is the IP address assigned to the keepalive interface for the primary switch. Syntax: String

Authority

Administrators

Usage

To configure the keepalive feature, enter this command once on the primary switch and once on the secondary switch. The keepalive feature is recommended for redundancy. If the ISL link goes down, the keepalive connection keeps the traffic moving so that the peer and secondary switches can continue to communicate. The keepalive connection is established over a routed network, and it does not have to be a dedicated peer-to-peer link unlike ISL.

Examples

Setting the source and peer IP addresses for keepalive in the default VRF:

switch(config)# vsx
switch(config-vsx)# keepalive peer 192.168.1.1 source 192.168.1.5

Setting the source and peer IP addresses for keepalive in the vrf1:

switch(config)# vsx
switch(config-vsx)# keepalive peer 10.0.0.1 source 10.0.0.2 vrf vrf1

Removing the source and peer IP addresses and VRF for the keepalive protocol:

switch(config)# vsx
switch(config-vsx)# no keepalive