Configuring a port-based multicast VLAN

Restrictions and guidelines

You can assign user ports to a multicast VLAN in multicast VLAN view or assign a user port to a multicast VLAN in interface view. These configurations have the same priority.

A user port can belong to only one multicast VLAN.

Prerequisites

Before you configure a port-based multicast VLAN, you must complete the following tasks:

Assigning user ports to a multicast VLAN in multicast VLAN view

  1. Enter system view.

    system-view

  2. Configure a VLAN as a multicast VLAN and enter multicast VLAN view.

    multicast-vlan vlan-id

    By default, a VLAN is not a multicast VLAN.

  3. Assign ports to the multicast VLAN.

    port interface-list

Assigning user ports to a multicast VLAN in interface view

  1. Enter system view.

    system-view

  2. Configure a VLAN as a multicast VLAN and enter multicast VLAN view.

    multicast-vlan vlan-id

    By default, a VLAN is not a multicast VLAN.

  3. Return to system view.

    quit

  4. Enter Layer 2 interface view.

    • Enter Layer 2 Ethernet interface view.

      interface interface-type interface-number

    • Enter Layer 2 aggregate interface view.

      interface bridge-aggregation interface-number

  5. Assign the port to the multicast VLAN.

    port multicast-vlan vlan-id

    By default, a port does not belong to any multicast VLAN.