Configuring and displaying IGMP (CLI)

Viewing IGMP configuration for VLANs

Syntax:

show ip igmp [vlan <vid>]

Displays IGMP configuration for a specified VLAN or for all VLANs on the switch.

Displaying IGMP status for a VLAN

HP Switch(config)# show ip igmp vlan 1

 IGMP Service Protocol Info

  Total VLANs with IGMP enabled                : 30
  Current count of multicast groups joined     : 20
  VLAN ID : 2
  VLAN Name : VLAN2
  IGMP version : 2
  Querier Address : 10.255.128.2
  Querier Port : 1
  Querier UpTime : 1h 51m 59s
  Querier Expiration Time : 2min 5sec
  Ports with multicast routers: 1, 5-6

  Active Group Addresses Type      Expires     Ports  Reports Queries
  ---------------------- --------- ----------- ------ ------- -------
  226.0.6.7              Filter    2min 5sec   1      10      10
  226.0.6.8              Standard  3min 20sec  2      20      20

Viewing the current IGMP configuration

Syntax:

show ip igmp config

Displays IGMP configuration for all VLANs on the switch.

Syntax:

show ip igmp vlan <vid> config

Displays IGMP configuration for a specific VLAN on the switch, including per-port data.

For IGMP operating status, see the section "Internet Group Management Protocol (IGMP) status" in the chapter "Monitoring and Analyzing Switch Operation" of the Management and Configuration Guide for your switch.

Example:

Suppose you have the following VLAN and IGMP configurations on the switch:

VLAN ID VLAN name IGMP enabled Querier
1 DEFAULT_VLAN Yes No
22 VLAN-2 Yes Yes
33 VLAN-3 No Yes

You could use the CLI to display this data as follows:

Listing of IGMP configuration for all VLANs in the switch

HP Switch(config)# show ip igmp config

 IGMP Service Config

  Control unknown multicast [Yes] : Yes
  Forced fast leave timeout [0] : 4
  Delayed flush timeout [0] : 0

  VLAN ID VLAN Name    IGMP Enabled Querier Allowed Querier Interval
  ------- ------------ ------------ --------------- ----------------
  1       DEFAULT_VLAN Yes          No              125
  22      VLAN-2       Yes          Yes             125
  33      VLAN-3       No           Yes             125

The following version of the show ip igmp command includes the VLAN ID (vid) designation, and combines the above data with the IGMP per-port configuration:

Listing of IGMP configuration for a specific VLAN

HP Switch(config)# show ip igmp vlan 2 config

 IGMP Service VLAN Config 1



  VLAN ID : 22
  VLAN Name : VLAN-2
  IGMP Enabled [No] : Yes
  Querier Allowed [Yes] : Yes

  Port Type      | Port Mode Forced Fast Leave Fast Leave 
  ---- --------- + --------- ----------------- ---------- 
  1    100/1000T | Auto      No                Yes 2


  2    100/1000T | Forward   No                Yes
  3    100/1000T | Blocked   No                Yes
  4    100/1000T | Auto      No                Yes
  5    100/1000T | Auto      No                Yes
  6    100/1000T | Auto      No                Yes

1

IGMP configuration for the selected VLAN.

2

IGMP configuration on the individual ports in the VLAN.

Viewing IGMP high level statistics for all VLANs on the switch

Syntax:

show ip igmp statistics

Displaying statistics for IGMP joined groups

HP Switch(config)# show ip igmp statistics

 IGMP Service Statistics

  Total VLAN's with IGMP enabled:            33
  Current count of multicast groups joined:  21

 IGMP Joined Group Statistics


  VLAN ID VLAN Name                Total  Filtered Standard Static
  ------- ------------------------ ------ -------- -------- ------
  1       DEFAULT_VLAN             52     50       0        2
  22      VLAN-2                   80     75       5        0
  33      VLAN-3                   1100   1000     99       1

Viewing IGMP historical counters for a VLAN

Syntax:

show ip igmp vlan <vid> counters

Display of IGMP historical counters for a VLAN

HP Switch(config)# show ip igmp vlan 1 counters

 IGMP service Vlan counters

  VLAN ID : 1
  VLAN Name : DEFAULT_VLAN

    General Query Rx                  : 58
    General Query Tx                  : 58
    Group Specific Query Rx           : 3
    Group Specific Query Tx           : 3
    V1 Member Report Rx               : 0
    V2 Member Report Rx               : 2
    V3 Member Report Rx               : 0
    Leave Rx                          : 0
    Unknown IGMP Type Rx              : 0
    Unknown Pkt Rx                    : 0
    Forward to Routers Tx Counter     : 0
    Forward to Vlan Tx Counter        : 0
    Port Fast Leave Counter           : 0
    Port Forced Fast Leave Counter    : 0
    Port Membership Timeout Counter   : 0

Viewing IGMP group address information

Syntax:

show ip igmp groups

Displaying IGMP groups address information

HP Switch(vlan-2)# show ip igmp groups

IGMP Group Address Information

VLAN ID Group Address Expires   UpTime     Last Reporter | Type
------- ------------- --------- ---------- ------------- + ------
22      239.20.255.7  1h 2m 5s  1h 14m 5s  192.168.0.2   | Filter
22      239.20.255.8  1h 2m 5s  1h 14m 5s  192.168.0.2   | Standard
22      239.20.255.9  1h 2m 5s  1h 14m 5s  192.168.0.2   | Static

Viewing IGMP group information for a VLAN with a filtered address

Syntax:

show ip igmp vlan <vid> group <ip-addr>

Group information for a VLAN with a filtered address group

HP Switch(config)# show ip igmp vlan 22 group 239.20.255.7

 IGMP Service Protocol Group Info

  VLAN ID: 22
  VLAN NAME: VLAN-2

  Filtered Group Address:  239.20.255.7
  Last Reporter:  192.168.0.2
  Up Time: 1 hr 14 min 5 sec

  Port| Port Type     | Port Mode | Expires         | Access
  ----+---------------+ ----------+--------------------------------
  A1  | 100/1000T     | Auto      | 1hr 2min 5sec   | Host

Enabling or disabling IGMP on a VLAN

You can enable IGMP on a VLAN, along with the last-saved or default IGMP configuration (whichever was most recently set), or you can disable IGMP on a selected VLAN.

Syntax:

[no] ip igmp

Enables IGMP on a VLAN. This command must be executed in a VLAN context.

Enabling IGMP on VLAN 1

HP Switch(vlan-1)# vlan 1 ip igmp

– or –

HP Switch(vlan-1)# ip igmp

Disabling IGMP on VLAN 1

HP Switch(config)# no vlan 1 ip igmp

[NOTE: ]

NOTE: If you disable IGMP on a VLAN and then later re-enable IGMP on that VLAN, the switch restores the last-saved IGMP configuration for that VLAN. For more information on how switch memory operates, see the chapter "Switch Memory and Configuration" in the Management and Configuration Guide for your switch.


You can also combine the ip igmp command with other IGMP-related commands, as described in the following sections.

Configuring per-port IGMP traffic filters

Syntax:

vlan <vid> ip igmp [ auto <port-list> | blocked <port-list> | forward <port-list> ]

Used in the VLAN context, specifies how each port should handle IGMP traffic.

Default: auto.


[NOTE: ]

NOTE: Where a static multicast filter is configured on a port, and an IGMP filter created by this command applies to the same port, the IGMP filter overrides the static multicast filter for any inbound multicast traffic carrying the same multicast address as is configured in the static filter. See section "Filter Types and Operation" in the "Port Traffic Controls" chapter of the Management and Configuration Guide for your switch.


Example:

Suppose you want to configure IGMP as follows for VLAN 1 on the 100/1000T ports on a module in slot 1:

Ports 1-2 auto Filter multicast traffic. Forward IGMP traffic to hosts on these ports that belong to the multicast group for which the traffic is intended. (Also forward any multicast traffic through any of these ports that is connected to a multicast router.)
Ports 3-4 forward Forward all multicast traffic through this port.
Ports 5-6 blocked Drop all multicast traffic received from devices on these ports.

For a description of the default behavior of data-driven switches, see Automatic fast-leave IGMP.

Depending on the privilege level, you could use one of the following commands to configure IGMP on VLAN 1 with the above settings:

HP Switch(config)# vlan 1 ip igmp auto 1,2 forward 3,4
blocked 5,6
HP Switch(vlan-1)# ip igmp auto 1,2 forward 3,4
blocked 5,6

The following command displays the VLAN and per-port configuration resulting from the above commands.

HP Switch> show igmp vlan 1 config

Configuring the querier function

Syntax:

[no] vlan <vid> ip igmp querier

This command disables or re-enables the ability for the switch to become querier if necessary.

The no version of the command disables the querier function on the switch. The show ip igmp config command displays the current querier command.

Default querier capability: Enabled

Configuring static multicast groups

Use this command to configure a group on the switch so that multicast traffic for that group can be forwarded with a receiver host. Traffic will be flooded for this group.

Syntax:

[no] ip igmp static-group <group-address>


[NOTE: ]

NOTE: This command must be issued in a VLAN context.


Creates the IGMP static group with the specified <group address> on the selected VLAN. The no form of the command deletes the static group on the selected VLAN.