Dell Networking SONiC: Cómo utilizar la dirección IP en un VRF en MCLAG Enlace de keepalive (IP de origen e IP de par)
Summary: En este artículo, se explica cómo utilizar la dirección IP en un VRF en el enlace de Keepalive de MCLAG (IP de origen e IP de par) en 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
Requisitos previos Estamos utilizando la nomenclatura estándar de la interfaz para demostrar los conceptos. Consulte el artículo Serie S de Dell Networking: Configuración básica de la interfaz: SONiC 4.0para obtener más información sobre la asignación de nombres de la interfaz. |
El enlace par MCLAG sincroniza el estado del par y se utiliza para transportar un latido entre dos pares. Podemos utilizar la dirección IP asignada a la VLAN, la interfaz, la interfaz de administración para este propósito.
Desde la versión 4.2 de Dell SONiC, podemos utilizar la dirección IP en un VRF no predeterminado.
NOTA:
| - Asegúrese de que se pueda acceder a la IP del par para la IP de origen cuando se configure como un vínculo Keepalive. Utilice el comando ping para verificar la conectividad. - Para el VRF predeterminado, no utilice el comando session-vrf. - Podemos usar la dirección IP asignada en Vlan o en la interfaz de capa 3 para Keepalive Link - Al usar Vlan como enlace Keepalive, asegúrese de usar mclag-separate-ip en la configuración. Consulte Cuándo se debe utilizar "mclag-separate-ip" en Dell Networking Enterprise SONiC OS MF-CLI para obtener más detalles. Configuración de muestra
|
Sintaxis de configuración
| Configuración | Explicación |
|---|---|
admin@ DELLSONiC:~$ sonic-cli |
Inicie sesión en Dell MF-CLI |
DELLSONiC# configure |
Ingresar al modo de configuración. |
DELLSONiC(config)# mclag domain <Domain ID> |
Defina el ID de dominio de MCLAG. 1-4095 |
DELLSONiC(config-mclag-domain-1)# peer-ip <IP address> |
Configurar la IP del par para keepalive |
DELLSONiC(config-mclag-domain-1)# source-ip <IP address> |
Configurar la IP de origen para keepalive |
DELLSONiC(config-mclag-domain-1)# session-vrf <VRF-NAME> |
(Opcional) Para el VRF predeterminado, esta configuración no es necesaria. |
DELLSONiC(config-mclag-domain-1)# session-vrf mgmt |
(Opcional) Usar este comando si usamos mgmt. VRF. |
Configuración
de ejemploGol: Configuremos el enlace Keepalive en un switch par MCLAG 2. El puerto de administración fuera de banda está configurado en mgmt VRF con IP 192.168.1.2. La IP del par es 192.168.1.1
.Tenga en cuenta que el puerto de administración (fuera de banda) está en mgmt vrf y lo usamos como nuestro enlace de Keepalive.
DELLSONiC# show ip vrf VRF-NAME INTERFACES ---------------------------------------------------------------- default mgmt Management0 |
Vamos a asignar session-vrf como mgmt en el dominio mclag.
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# |
Hagamos una prueba de ping para asegurarnos de que tenemos conectividad entre source-ip 192.168.1.2 y peer-ip 192.168.1.1 en 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 |
Permite verificar el estado de la sesión. Utilice el comando show mclag brief que aparece a continuación.
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.