17-Multicast Command

Download

Table of Contents

Chapter 1 Common Multicast Configuration Commands. 1-1

1.1 Common Multicast Configuration Commands. 1-1

1.1.1 display mac-address multicast static. 1-1

1.1.2 display mpm forwarding-table. 1-2

1.1.3 display mpm group. 1-4

1.1.4 display multicast forwarding-table. 1-5

1.1.5 display multicast routing-table. 1-7

1.1.6 display multicast-source-deny. 1-9

1.1.7 mac-address multicast interface. 1-10

1.1.8 mac-address multicast vlan. 1-11

1.1.9 mtracert 1-12

1.1.10 multicast route-limit 1-14

1.1.11 multicast routing-enable. 1-14

1.1.12 multicast storing-enable. 1-15

1.1.13 multicast storing-packet 1-16

1.1.14 multicast-source-deny. 1-16

1.1.15 reset multicast forwarding-table. 1-17

1.1.16 reset multicast routing-table. 1-19

1.1.17 unknown-multicast drop enable. 1-20

Chapter 2 IGMP Configuration Commands. 2-1

2.1 IGMP Configuration Commands. 2-1

2.1.1 display igmp group. 2-1

2.1.2 display igmp interface. 2-2

2.1.3 igmp enable. 2-4

2.1.4 igmp group-limit 2-4

2.1.5 igmp group-policy. 2-5

2.1.6 igmp group-policy vlan. 2-7

2.1.7 igmp host-join port 2-8

2.1.8 igmp host-join vlan. 2-9

2.1.9 igmp lastmember-queryinterval 2-10

2.1.10 igmp max-response-time. 2-10

2.1.11 igmp proxy. 2-11

2.1.12 igmp robust-count 2-12

2.1.13 igmp timer other-querier-present 2-13

2.1.14 igmp timer query. 2-14

2.1.15 igmp version. 2-14

2.1.16 reset igmp group. 2-15

Chapter 3 PIM Configuration Commands. 3-1

3.1 PIM Configuration Commands. 3-1

3.1.1 bsr-policy. 3-1

3.1.2 c-bsr 3-2

3.1.3 c-rp. 3-3

3.1.4 crp-policy. 3-4

3.1.5 display pim bsr-info. 3-5

3.1.6 display pim interface. 3-6

3.1.7 display pim neighbor 3-7

3.1.8 display pim routing-table. 3-8

3.1.9 display pim rp-info. 3-10

3.1.10 pim.. 3-11

3.1.11 pim bsr-boundary. 3-12

3.1.12 pim dm.. 3-12

3.1.13 pim neighbor-limit 3-13

3.1.14 pim neighbor-policy. 3-14

3.1.15 pim sm.. 3-15

3.1.16 pim timer hello. 3-15

3.1.17 register-policy. 3-16

3.1.18 reset pim neighbor 3-17

3.1.19 reset pim routing-table. 3-18

3.1.20 spt-switch-threshold. 3-19

3.1.21 source-lifetime. 3-20

3.1.22 source-policy. 3-21

3.1.23 static-rp. 3-22

Chapter 4 MSDP Configuration Commands. 4-1

4.1 MSDP Configuration Commands. 4-1

4.1.1 cache-sa-enable. 4-1

4.1.2 display msdp brief 4-1

4.1.3 display msdp peer-status. 4-2

4.1.4 display msdp sa-cache. 4-5

4.1.5 display msdp sa-count 4-6

4.1.6 import-source. 4-8

4.1.7 msdp. 4-8

4.1.8 msdp-tracert 4-9

4.1.9 originating-rp. 4-11

4.1.10 peer connect-interface. 4-12

4.1.11 peer description. 4-13

4.1.12 peer mesh-group. 4-14

4.1.13 peer minimum-ttl 4-14

4.1.14 peer request-sa-enable. 4-15

4.1.15 peer sa-cache-maximum.. 4-16

4.1.16 peer sa-policy. 4-17

4.1.17 peer sa-request-policy. 4-18

4.1.18 reset msdp peer 4-19

4.1.19 reset msdp sa-cache. 4-19

4.1.20 reset msdp statistics. 4-20

4.1.21 shutdown. 4-20

4.1.22 static-rpf-peer 4-21

4.1.23 timer retry. 4-22

Chapter 5 IGMP Snooping Configuration Commands. 5-1

5.1 IGMP Snooping Configuration Commands. 5-1

5.1.1 display igmp-snooping configuration. 5-1

5.1.2 display igmp-snooping group. 5-2

5.1.3 display igmp-snooping statistics. 5-3

5.1.4 igmp-snooping. 5-4

5.1.5 igmp-snooping fast-leave. 5-5

5.1.6 igmp-snooping general-query source-ip. 5-7

5.1.7 igmp-snooping group-limit 5-8

5.1.8 igmp-snooping group-policy. 5-9

5.1.9 igmp-snooping host-aging-time. 5-11

5.1.10 igmp-snooping max-response-time. 5-12

5.1.11 igmp-snooping nonflooding-enable. 5-13

5.1.12 igmp-snooping querier 5-14

5.1.13 igmp-snooping query-interval 5-15

5.1.14 igmp-snooping router-aging-time. 5-16

5.1.15 igmp-snooping version. 5-16

5.1.16 igmp-snooping vlan-mapping. 5-17

5.1.17 igmp host-join port 5-18

5.1.18 igmp host-join. 5-19

5.1.19 multicast static-group interface. 5-20

5.1.20 multicast static-group vlan. 5-21

5.1.21 multicast static-router-port 5-22

5.1.22 multicast static-router-port vlan. 5-23

5.1.23 reset igmp-snooping statistics. 5-24

5.1.24 service-type multicast 5-24

 


Chapter 1  Common Multicast Configuration Commands

 

&  Note:

The following are new features in this set of manuals:

l      Enabling multicast packet buffering. The related commands are multicast storing-enable and multicast storing-packet.

l      Configuring multicast source lifetime. The related command is source-lifetime.

l      Configuring IGMPv3 Snooping functions. The related commands are igmp-snooping version and igmp host-join.

l      Configuring IGMP Snooping nonflooding. The related command is igmp-snooping nonflooding-enable.

l      Configuring static member ports. The related commands are multicast static-group interface and multicast static-group vlan.

l      Configuring static router ports. The related commands are multicast static-router-port and multicast static-router-port vlan.

l      Configuring VLAN tags of query messages. The related command is igmp-snooping vlan-mapping.

 

1.1  Common Multicast Configuration Commands

1.1.1  display mac-address multicast static

Syntax

display mac-address multicast static [ [mac-address ] vlan vlan-id ] [ count ] [ unit unit-id ]

View

Any view

Parameters

mac-address: Displays the static multicast MAC entry information for the specified MAC address. Without this argument provided, this command displays the information of all static multicast MAC entries in the specified VLAN.

vlan vlan-id: Displays the static multicast MAC entry information in the specified VLAN. Without a VLAN specified, this command displays the static multicast MAC entry information in all VLANs.

count: Displays the number of static multicast MAC entries.

unit unit-id: Displays information about the multicast MAC address of the specified unit in the fabric.

Description

Use the display mac-address multicast static command to display the information about the multicast MAC address entry or entries manually configured on the switch.

Related commands: mac-address multicast interface, mac-address multicast vlan.

Examples

# Display the information of all static multicast MAC entries in VLAN 1.

<Sysname> display mac-address multicast static vlan 1

MAC ADDR        VLAN ID  STATE          PORT INDEX            AGING TIME(s)

0100-0001-0001  1        Config static  GigabitEthernet1/0/1  NOAGED

                                        GigabitEthernet1/0/2

                                        GigabitEthernet1/0/3

                                        GigabitEthernet1/0/4

---  1 static mac address(es) found  ---

Table 1-1 display mac-address multicast static command output description

Field

Description

MAC ADDR

MAC address

VLAN ID

The VLAN in which the MAC address is manually added

STATE

State of the MAC address, which includes only Config static, indicating that the table entry is manually added.

PORT INDEX

Ports out which the multicast packets destined for the multicast MAC address are forwarded

AGING TIME(s)

Remaining lifetime of the entry. NOAGED indicates that the entry never expires.

 

1.1.2  display mpm forwarding-table

Syntax

display mpm forwarding-table [ group-address ]

View

Any view

Parameters

group-address: IP address of a multicast group, in the range 224.0.0.0 to 239.255.255.255. With this argument configured, this command displays only those forwarding entries that match the specified multicast address; otherwise, the command displays all the forwarding entries.

Description

Use the display mpm forwarding-table command to display the information of multicast forwarding entries containing port information.

This command displays the incoming interface, outgoing interface and outgoing port information for specific multicast streams.

Related commands: display multicast forwarding-table.

Examples

# Display the information about all the multicast forwarding entries containing port information.

<Sysname> display mpm forwarding-table

Total 1 entry(entries)

 

00001. (120.0.0.2, 225.0.0.2)

 iif Vlan-interface1200

 1 oif(s):

  Vlan-interface32

   GigabitEthernet1/0/19

Total 1 entry(entries) Listed

Table 1-2 display mpm forwarding-table command output description

Field

Description

Total 1 entry(entries)

Total number of the entries

00001

Entry number

(120.0.0.2, 225.0.0.2)

Source address-group address pair

iif Vlan-interface1200

The incoming VLAN interface is VLAN-interface 1200.

1 oif(s):

One outgoing VLAN interface is listed.

Vlan-interface32

GigabitEthernet1/0/19 

The first outgoing VLAN-interface is VLAN-interface 32, with one outgoing port under it, GigabitEthernet 1/0/19

Total 1 entry(entries) Listed

The multicast forward table contains one (S,G) entry.

 

1.1.3  display mpm group

Syntax

display mpm group [ vlan vlan-id ]

View

Any view

Parameters

vlan vlan-id: Specifies a VLAN. With a VLAN specified, this command displays the IGMP group information in the specified VLAN; otherwise, the command displays the information of all IGMP group entries.

Description

Use the display mpm group command to display the IGMP group entries containing port information on the switch.

Related commands: display igmp group.

Examples

# Display IGMP group entries containing port information in VLAN 1200.

<Sysname> display mpm group vlan 1200

  Total 1 IP Group(s).

  Total 1 MAC Group(s).

 

  Vlan(id):1200.

    Total 1 IP Group(s).

    Total 1 MAC Group(s).

    Static Router port(s):

 

    Dynamic Router port(s):

                     GigabitEthernet1/0/24

    IP group(s):the following ip group(s) match to one mac group.

        IP group address:224.1.1.1

        Static host port(s):

        Dynamic host port(s):

                     GigabitEthernet1/0/22

    MAC group(s):

        MAC group address:0100-5c01-0101

        Host port(s):GigabitEthernet1/0/22

Table 1-3 display mpm group command output description

Field

Description

Total 1 IP Group(s)

Total number of IP multicast groups

Total 1 MAC Group(s)

Total number of MAC multicast groups

Vlan(id):1200.

The displayed information is for VLAN 1200.

Static Router Port(s):

Static router ports

Dynamic router port(s):

Dynamic router ports

IP group(s):the following ip group(s) match to one mac group

IP multicast groups corresponding to the same MAC multicast group

IP group address

Address of the IP multicast group

Static host port(s):

Static host ports

Dynamic host port(s):

Dynamic host ports

MAC group(s):

MAC multicast groups

Host port(s)

Member ports of the IP multicast group

MAC group address

Address of the MAC multicast group

Host port(s)

Member ports of the MAC multicast group

 

1.1.4  display multicast forwarding-table

Syntax

display multicast forwarding-table [ group-address [ mask { mask | mask-length } ] | source-address [ mask { mask | mask-length } ] | incoming-interface { interface-type interface-number | register } ]*

View

Any view

Parameters

group-address: Multicast group address, in the range of 224.0.0.0 to 239.255.255.255. With this argument provided, the command displays the forwarding entries for the specified multicast group.

source-address: Multicast source address. With this argument provided, the command displays the forwarding entries for the specified multicast source.

mask: Mask of the specified multicast group address or multicast source address, 255.255.255.255 by default.

mask-length: Mask length of the specified multicast group address or multicast source address. For a multicast group address, this argument is in the range of 4 to 32; for a multicast source address, this argument is in the range of 0 to 32. The system default is 32 in both cases.

incoming-interface: Displays the multicast forwarding entries that contain the specified incoming interface.

interface-type interface-number: Specifies an interface by its type and number..

register: Displays the forwarding entries in which the incoming interface is the PIM-SM register interface.

Description

Use the display multicast forwarding-table command to display the information of multicast forwarding tables.

As the multicast forwarding table directly guides the forwarding of multicast traffic, you can view the information of the forwarding entries to determine whether a multicast stream is correctly forwarded.

Related commands: display multicast routing-table, display mpm forwarding-table, reset multicast forwarding-table.

Examples

# Display the information about the multicast forwarding table.

<Sysname> display multicast forwarding-table

Multicast Forwarding Cache Table

Total 1 entry: 0 entry created by IP, 1 entry created by protocol

 

00001. (10.0.0.4, 225.1.1.1), iif Vlan-interface2, 0 oifs,

     Protocol Create

     Matched 122 pkts(183000 bytes), Wrong If 0 pkts

     Forwarded 122 pkts(183000 bytes)

 

Total 1 entry Listed

 

The following table describes the fields in the displayed information above:

Table 1-4 display multicast forwarding-table command output description

Field

Description

Multicast Forwarding Cache Table

Multicast forwarding table

Total 1 entries

Total number of matched forwarding entries

00001

Serial number of the entry

(10.0.0.4, 225.1.1.1)

Multicast source and group addresses of the entry

iif Vlan-interface2, 0 oifs

The incoming interface of the multicast forwarding table is VLAN-interface 2, and the multicast forwarding table does not have an outgoing interface.

Matched 122 pkts(183000 bytes), Wrong If 0 pkts

     Forwarded 122 pkts(183000 bytes)

122 packets of totally 183,000 bytes match the (S, G) entry, and 0 error packets match the (S, G) entry.

122 packets of totally 183,000 bytes have been forwarded.

 

1.1.5  display multicast routing-table

Syntax

display multicast routing-table [ group-address [ mask { mask | mask-length } ] | source-address [ mask { mask | mask-length } ] | incoming-interface { interface-type interface-number | register } ]*

View

Any view

Parameters

group-address: Multicast group address, in the range of 224.0.0.0 to 239.255.255.255. With this argument provided, the command displays the multicast routing entries for the specified multicast group.

source-address: Multicast source address. With this argument provided, the command displays the multicast routing entries for the specified multicast source.

mask: Mask of the multicast group address or multicast source address, 255.255.255.255 by default.

mask-length: Mask length of the multicast group address or multicast source address. For a multicast group address, this argument is in the range of 4 to 32; for a multicast source address, this argument is in the range of 0 to 32. The system default is 32 in both cases.

incoming-interface: Displays multicast routing entries that contain the specified incoming interface.

interface-type interface-number: Specifies an interface by its type and number.

register: Displays the routing entries in which the incoming interface is the PIM-SM register interface.

Description

Use the display multicast routing-table command to display the multicast routing table information.

The multicast routing table is the basis of multicast data delivery. You can view the multicast routing table entries to determine whether (S, G) entries have been created with correct outgoing and incoming interfaces.

Related commands: reset multicast routing-table, display multicast forwarding-table.

Examples

# Display the multicast routing table information.

<Sysname> display multicast routing-table

Multicast Routing Table

Total 3 entries

 

(4.4.4.4, 224.2.149.17)

    Uptime: 00:15:16, Timeout in 272 sec

    Upstream interface: Vlan-interface1(4.4.4.6)

    Downstream interface list:

      Vlan-interface2(2.2.2.4), Protocol 0x1: IGMP

 

(4.4.4.4, 224.2.254.84)

    Uptime: 00:15:16, Timeout in 272 sec

    Upstream interface: Vlan-interface1(4.4.4.6)

    Downstream interface list: NULL

 

(4.4.4.4, 239.255.2.2)

    Uptime: 00:02:57, Timeout in 123 sec

    Upstream interface: Vlan-interface1(4.4.4.6)

    Downstream interface list: NULL

 

Matched 3 entries

The following table describes the fields in the displayed information.

Table 1-5 display multicast routing-table command output description

Field

Description

Multicast Routing Table

Multicast routing table

Total 3 entries

There are three entries in all in the multicast routing table.

(4.4.4.4, 224.2.149.17)

An (S, G) entry

Uptime: 00:15:16, Timeout in 272 sec

    Upstream interface: Vlan-interface1(4.4.4.6)

    Downstream interface list:

      Vlan-interface2(2.2.2.4), Protocol 0x1: IGMP

The entry has been there for 15 minutes and 16 seconds, and it will expire in 272 seconds.

Upstream interface: VLAN-interface 1 (The IP address of the upstream interface is 4.4.4.6).

Downstream interface list:

Downstream interface: VLAN-interface 2. (The IP address of the downstream interface is 2.2.2.4).

The downstream interface was added by the IGMP protocol.

Matched 3 entries

Three entries match the command.

 

1.1.6  display multicast-source-deny

Syntax

display multicast-source-deny [ interface interface-type [ interface-number ] ]

View

Any view

Parameters

interface-type: Port type.

interface-number: Port number.

Description

Use the display multicast-source-deny command to display the multicast source port suppression status.

l           With neither a port type nor a port number specified, the command displays the multicast source port suppression status of all the ports on the switch.

l           With only a port type specified, the command displays the multicast source port suppression status of all ports of that type.

l           With both a port type and a port number specified, the command displays the multicast source port suppression status of the specified port.

Related commands: multicast-source-deny.

Examples

# Display the multicast source port suppression status of GigabitEthernet 1/0/1.

<Sysname> display multicast-source-deny interface GigabitEthernet 1/0/1

GigabitEthernet1/0/1     Multicast-source-deny disabled.

The information above shows that multicast source port suppression is disabled on GigabitEthernet 1/0/1.

1.1.7  mac-address multicast interface

Syntax

mac-address multicast mac-address interface interface-list vlan vlan-id

undo mac-address multicast [ mac-address [ interface interface-list ] vlan vlan-id ]

View

System view

Parameters

mac-address: Multicast MAC address, in the form of H-H-H.

interface interface-list: Specifies forwarding ports for the specified multicast MAC group address. With the interface-list argument, you can define one or more individual ports (in the form of interface-type interface-number) and/or one or more port ranges (in the form of interface-type interface-number1 to interface-type interface-number2, where interface-number2 must be greater than interface-number1). The total number of individual ports plus port ranges cannot exceed 10. For port types and port numbers, refer to the parameter description in the “Port Basic Configuration” part in this manual.

vlan vlan-id: Specifies the VLAN to which the forwarding ports belong. The effective range for vlan-id is 1 to 4094.

Description

Use the mac-address multicast interface command to create a multicast MAC address entry.

Use the undo mac-address multicast interface command to remove the specified multicast MAC address entry or all multicast MAC address entries.

Each multicast MAC address entry contains multicast address, forward port, VLAN ID, and so on.

Related commands: display mac-address multicast static.

Examples

# Create a multicast MAC address entry, with the multicast MAC address of 0100-5c0a-0805 and a forwarding port of GigabitEthernet 1/0/1 in VLAN 1.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] mac-address multicast 0100-5c0a-0805 interface GigabitEthernet 1/0/1 vlan 1

1.1.8  mac-address multicast vlan

Syntax

mac-address multicast mac-address vlan vlan-id

undo mac-address multicast [ [ mac-address ] vlan vlan-id ]

View

Ethernet port view

Parameters

mac-address: Multicast MAC address in the form of H-H-H.

vlan vlan-id: Specifies the VLAN the current port belongs to. The effective range for vlan-id is 1 to 4094.

Description

Use the mac-address multicast vlan command to create a multicast MAC address entry on the current port.

Use the undo mac-address multicast vlan command to remove the specified multicast MAC address entry or all multicast MAC address entries on the current port.

Each multicast MAC address entry contains the multicast address, forwarding port, and VLAN ID information.

Related commands: display mac-address multicast static.

Examples

# Create a multicast MAC address entry on GigabitEthernet 1/0/1 in VLAN 1, with the multicast address of 0100-1000-1000.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] interface GigabitEthernet1/0/1

[Sysname-GigabitEthernet1/0/1] mac-address multicast 0100-1000-1000 vlan 1

1.1.9  mtracert

Syntax

mtracert source-address [ group-address | last-hop-router-address group-address ]

View

Any view

Parameters

source-address: Specifies a multicast source.

group-address: Specifies a multicast group.

last-hop-router-address: Specifies the last-hop router, which is the local device by default.

Description

Use the mtracert command to trace the path down which the multicast traffic flows to the receiver hosts.

Examples

# Trace the path down which the multicast traffic for (192.168.4.1, G) flows to the receivers.

<Sysname> mtracert 192.168.4.1

 Type Ctrl+C to quit multicast traceroute facility

 From last-hop router(192.168.2.2), trace reverse path to source 192.168.4.1 via RPF rules

 

 -1 192.168.2.2

   Incoming Interface Address: 192.168.2.2

   Previous-Hop Router Address: 192.168.2.1

   Input packet count on incoming interface: 0

   Output packet count on outgoing interface: 0

   Total number of packets for this source-group pair: 0

   Protocol: PIM

   Forwarding TTL: 0

   Forwarding Code: No error

 

 -2 192