Dell Networking SONiC How to use IP address in a VRF in MCLAG Keepalive link (source-ip and peer-ip)

Summary: This article explains about how to use IP address in a VRF in MCLAG Keepalive link (source-ip and peer-ip) in Dell Networking SONiC.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

Prerequisites
 

We are using standard interface naming to demonstrate the Concepts. See the article  Dell Networking S-Series: Basic Interface Configuration – SONIC 4.0 for more information regarding interface naming.

 


MCLAG Peer link synchronizes the Peer state and is used to carry a heartbeat between two peers. We can use IP address assigned to the VLAN, interface, the Management interface for this purpose.  

From Dell SONiC 4.2 version we can use IP address in non-default VRF.
 
NOTE: 
 - Ensure that the Peer-IP is reachable for the source-ip when configuring as a Keepalive link. Use the ping command to verify connectivity.
 - For Default VRF, do not use command session-vrf.
 - We can use IP address assigned in Vlan or Layer 3 interface for Keepalive Link
 - While using Vlan as the Keepalive Link ensure to use mclag-separate-ip in the configuration.
    Refer 
When "mclag-separate-ip" Should be Used in Dell Networking Enterprise SONiC OS MF-CLI for more details.

Sample configuration
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface Vlan 10
DELLSONiC(config-if-Vlan10)# ip address 192.168.1.2/24
DELLSONiC(config-if-Vlan10)# mclag-separate-ip

 


Configuration Syntax
 
Configuration Explanation
admin@ DELLSONiC:~$ sonic-cli
Log in to Dell MF-CLI
DELLSONiC# configure
Enter configuration mode.
DELLSONiC(config)# mclag domain <Domain ID>
Define the MCLAG domain ID. 1-4095
DELLSONiC(config-mclag-domain-1)# peer-ip <IP address>
Configure Peer IP for keepalive
DELLSONiC(config-mclag-domain-1)# source-ip <IP address>
Configure Source IP for keepalive
DELLSONiC(config-mclag-domain-1)# session-vrf <VRF-NAME>
(Optional) For default VRF this configuration is not required.
DELLSONiC(config-mclag-domain-1)# session-vrf mgmt
(Optional) Use this command if we are using mgmt. VRF.



Sample Configuration

Goal: Lets configure Keepalive link in an MCLAG Peer Switch 2. The Out Of Band Management port is configured in mgmt VRF with IP 192.168.1.2. The Peer IP is 192.168.1.1.

image.png

Consider the Management Port (Out of Band) is in vrf mgmt and we use this as our Keepalive link.
 
DELLSONiC# show ip vrf
VRF-NAME            INTERFACES
----------------------------------------------------------------
default
mgmt                Management0


Lets assign session-vrf as mgmt in mclag domain.
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# mclag domain 1
DELLSONiC(config-mclag-domain-1)# source-ip 192.168.1.2
DELLSONiC(config-mclag-domain-1)# peer-ip 192.168.1.1
DELLSONiC(config-mclag-domain-1)# session-vrf mgmt
DELLSONiC(config-mclag-domain-1)# exit
DELLSONiC(config)# exit
DELLSONiC#


Lets do a ping test to ensure we have connectivity between source-ip 192.168.1.2 and peer-ip 192.168.1.1 in vrf mgmt.
 
DELLSONiC# ping vrf mgmt 192.168.1.1 -I 192.168.1.2
sudo: unable to resolve host DELLSONiC: Temporary failure in name resolution
PING 192.168.1.1 (192.168.1.1) from 192.168.1.2 : 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=4.73 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=1.13 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.846 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=4.71 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=4.75 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=1.03 ms
^C
--- 192.168.1.1 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5023ms
rtt min/avg/max/mdev = 0.846/2.867/4.746/1.865 ms


Lets verify the session status. Use command show mclag brief below.
 
DELLSONiC# show mclag brief

Domain ID            : 1
Role                 : standby
Session Status       : up                     ======>We can see keepalive session is up
Peer Link Status     : up
Source Address       : 192.168.1.2
Peer Address         : 192.168.1.1
Session Vrf          : mgmt                   ======>The Keepalive session use mgmt vrf
Peer Link            : Eth1/1
Keepalive Interval   : 1 secs
Session Timeout      : 30 secs
Delay Restore        : 300 secs
System Mac           : 0c:de:4c:81:00:0a
Mclag System Mac     :


Number of MLAG Interfaces:1
-----------------------------------------------------------
MLAG Interface       Local/Remote Status
-----------------------------------------------------------
PortChannel1             up/up
DELLSONiC#

Affected Products

PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9100-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON , PowerSwitch Z9432F-ON ...
Article Properties
Article Number: 000222932
Article Type: How To
Last Modified: 11 Mar 2024
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.