Está en la página 1de 6

16/10/21 09:04 Configure IGMP Snooping Settings on a Switch through the CLI - Cisco

Configure las configuraciones de indagación IGMP en un


conmutador a través de la CLI

Actualizado: 15 de agosto de 2018 ID de documento: SMB5814

Introducción
La multidifusión es una tecnología creada para conservar el ancho de banda. Por lo general, se
utiliza para transmitir paquetes de datos desde un host a varios hosts. Para permitir que los
enrutadores distribuyan multidifusiones a través de uno de sus puertos, utilizan un protocolo
llamado Protocolo de administración de grupos de Internet (IGMP). Los hosts envían un mensaje de
unión IGMP para obtener una transmisión de multidifusión. Cuando un enrutador recibe un mensaje
de unión IGMP en una de sus interfaces, sabe que hay hosts interesados ​en unirse a un flujo de
multidifusión y lo envía. En los primeros conmutadores, el tráfico de multidifusión se reenvía a
todos los puertos, incluso si solo un host necesita recibirlo. La indagación IGMP se desarrolló para
limitar el tráfico de multidifusión solo al host o hosts solicitantes. 
Cuando la indagación IGMP está habilitada, el conmutador detecta los mensajes IGMP
intercambiados entre el enrutador IPv4 y los hosts de multidifusión conectados a las interfaces.
Luego mantiene una tabla que reenvía el tráfico de multidifusión IPv4 a los puertos que necesitan
recibirlos.
Las siguientes configuraciones son requisitos previos para configurar IGMP:

1. Configure los ajustes de la interfaz VLAN en un conmutador Sx350, SG350X o Sx550X. Para
obtener instrucciones, haga clic aquí .
2. Configure las propiedades de multidifusión en un conmutador. Para obtener instrucciones,
haga clic aquí . 

Nota: El descubrimiento de escucha de multidifusión (MLD) realiza una función similar a IGMP, pero
para IPv6. Si compró un conmutador que admite IPv6 y su infraestructura admite multidifusión IPv6,
puede configurar MLD. Esto es independiente del espionaje IGMP. Si prefiere configurar MLD
snooping a través de la CLI, haga clic aquí . 
Este artículo proporciona instrucciones sobre cómo configurar las configuraciones IGMP en su
conmutador, a través de la interfaz de línea de comandos (CLI). Si prefiere configurar IGMP o MLD
Snooping Settings mediante una interfaz gráfica de usuario (GUI), haga clic aquí . 

Dispositivos aplicables
Serie Sx350
Serie SG350X
Serie Sx550X

Versión del software


2.3.0.130

Configurar IGMP Snooping

Configurar la inspección global de IGMP


Paso 1. Inicie sesión en la consola del conmutador. El nombre de usuario y la contraseña
predeterminados es cisco / cisco. Si ha configurado un nuevo nombre de usuario o contraseña,
introduzca las credenciales.

https://www.cisco.com/c/en/us/support/docs/smb/switches/cisco-350x-series-stackable-managed-switches/smb5814-configure-igmp-switch-cli.html 1/6
16/10/21 09:04 Configure IGMP Snooping Settings on a Switch through the CLI - Cisco

Nota: Para saber cómo acceder a la CLI de un conmutador SMB a través de SSH o Telnet, haga
clic aquí .

Nota: Los comandos pueden variar según el modelo exacto de su conmutador. En este ejemplo, se
accede al conmutador SG350X a través de Telnet.
Paso 2. Desde el modo EXEC privilegiado del switch, ingrese al modo de configuración global
ingresando lo siguiente:

SG350X#configure

Paso 3. Para habilitar globalmente el espionaje IGMP en el switch, ingrese lo siguiente:

SG350X(config)#ip igmp snooping

Paso 4. (Opcional) Para habilitar globalmente el interrogador de indagación IGMP, ingrese lo


siguiente:

SG350X(config)#ip igmp snooping querier

Ahora debería haber configurado con éxito la configuración de indagación IGMP global en su
conmutador.

Configurar las configuraciones de indagación IGMP en una VLAN


Step 1. To enable IGMP snooping on a specific VLAN, enter the following:

SG350X(config)#ip igmp snooping vlan [vlan-id]

vlan-id — Specifies the VLAN ID value. The range is from one up to 4094.

Note: In this scenario, the IGMP snooping settings for VLAN 30 are being configured.

https://www.cisco.com/c/en/us/support/docs/smb/switches/cisco-350x-series-stackable-managed-switches/smb5814-configure-igmp-switch-cli.html 2/6
16/10/21 09:04 Configure IGMP Snooping Settings on a Switch through the CLI - Cisco

Step 2. (Optional) To allow the multicast router to automatically learn the connected ports, enter the
following:

SG350X(config)#ip igmp snooping vlan [vlan-id] mrouter learn pim-dvmrp

Step 3. (Optional) To enable the IGMP snooping Immediate Leave processing on a VLAN, enter the
following:

SG350X(config)#ip igmp snooping vlan [vlan-id] immediate leave

Step 4. In the Global Configuration mode, enter the VLAN Interface Configuration context by
entering the following:

SG350X(config)#interface [vlan-id]

Step 5. To configure the IGMP last member query counter, enter the following:

SG350X(config-if)#ip igmp last-member-query-count [count]

count — The number of times that group or group-source-specific queries are sent upon
receipt of a message indicating a leave. The range is from one to seven.

Note: In this example, the last member query counter is set to 3.


Step 6. Enter the exit command to go back to the Global Configuration mode:

SG350X(config)#exit

https://www.cisco.com/c/en/us/support/docs/smb/switches/cisco-350x-series-stackable-managed-switches/smb5814-configure-igmp-switch-cli.html 3/6
16/10/21 09:04 Configure IGMP Snooping Settings on a Switch through the CLI - Cisco

Step 7. To enable the IGMP Snooping querier on a specific VLAN, enter the following:

SG350X(config)#ip igmp snooping vlan [vlan-id] querier

Step 8. To enable IGMP querier election mechanism of an IGMP snooping querier on a specific
VLAN, enter the following:

SG350X(config)#ip igmp snooping vlan [vlan-id] querier election

Step 9. To configure the IGMP version of an IGMP Snooping querier on a specific VLAN, enter the
following:

SG350X(config)#ip igmp snooping vlan [vlan-id] querier version [2 | 3]

Note: In this example, version 3 is used.


Step 10. To define the source IP address that the IGMP snooping querier uses, enter the following:

SG350X(config)#ip igmp snooping vlan [vlan-id] querier [ip-address]

Note: If an IP address is configured for the VLAN, it is used as the source address of the IGMP
snooping querier. If there are multiple IP addresses, the minimum IP address defined on the VLAN
is used.

https://www.cisco.com/c/en/us/support/docs/smb/switches/cisco-350x-series-stackable-managed-switches/smb5814-configure-igmp-switch-cli.html 4/6
16/10/21 09:04 Configure IGMP Snooping Settings on a Switch through the CLI - Cisco

Note: In this example, 192.168.100.112 is used. If an IP address is not configured by this


command, and no IP address is configured for the VLAN of the querier, the querier is disabled.
Step 11. Enter the exit command to go back to the Privileged EXEC mode:

SG350X(config)#exit

You should now have successfully configured the IGMP snooping settings on your switch through
the CLI.

Display IGMP Snooping Settings on a VLAN


Step 1. To display the IGMP snooping configuration for a specific VLAN, enter the following:

SG350X#show ip igmp snooping interface [vlan-id]

Nota: En este ejemplo, se muestran las configuraciones de indagación IGMP para la VLAN 30.

https://www.cisco.com/c/en/us/support/docs/smb/switches/cisco-350x-series-stackable-managed-switches/smb5814-configure-igmp-switch-cli.html 5/6
16/10/21 09:04 Configure IGMP Snooping Settings on a Switch through the CLI - Cisco

Paso 2. (Opcional) En el modo EXEC privilegiado del switch, guarde las configuraciones
configuradas en el archivo de configuración de inicio ingresando lo siguiente:

SG350X#copy running-config startup-config

Paso 3. (Opcional) Presione Y para Sí o N para No en su teclado una vez que aparezca el mensaje
Sobrescribir archivo [startup-config] ...

Ahora debería haber mostrado la configuración IGMP en una VLAN en su conmutador a través de la
CLI.

Vea un video relacionado con este artículo ...

Haga clic aquí para ver otras charlas técnicas de Cisco

© 2021 Cisco and/or its affiliates. All rights reserved.

https://www.cisco.com/c/en/us/support/docs/smb/switches/cisco-350x-series-stackable-managed-switches/smb5814-configure-igmp-switch-cli.html 6/6

También podría gustarte