04-IP Multicast Volume

HomeSupportSwitchesH3C S7500E Switch SeriesConfigure & DeployConfiguration GuidesH3C S7500E Series Ethernet Switches Operation Manual(Release 6300 series V1.03)04-IP Multicast Volume
15-IPv6 Multicast VLAN Configuration
Title Size Download
15-IPv6 Multicast VLAN Configuration 158.96 KB

When configuring IPv6 multicast VLAN, go to these sections for information you are interested in:

l          Introduction to IPv6 Multicast VLAN

l          IPv6 Multicast VLAN Configuration Task List

l          Configuring IPv6 Sub-VLAN-Based IPv6 Multicast VLAN

l          Configuring Port-Based IPv6 Multicast VLAN

l          Displaying and Maintaining IPv6 Multicast VLAN

l          IPv6 Multicast VLAN Configuration Examples

Introduction to IPv6 Multicast VLAN

As shown in Figure 1-1, in the traditional IPv6 multicast programs-on-demand mode, when hosts, Host A, Host B and Host C, belonging to different VLANs require IPv6 multicast programs on demand service, the Layer 3 device, Router A, needs to forward a separate copy of the multicast traffic in each user VLAN to the Layer 2 device, Switch A. This results in not only waste of network bandwidth but also extra burden on the Layer 3 device.

Figure 1-1 Multicast transmission without IPv6 multicast VLAN

 

The IPv6 multicast VLAN feature configured on the Layer 2 device is the solution to this issue. With the IPv6 multicast VLAN feature, the Layer 3 device needs to replicate the multicast traffic only in the IPv6 multicast VLAN instead of making a separate copy of the multicast traffic in each user VLAN. This saves the network bandwidth and lessens the burden of the Layer 3 device.

The IPv6 multicast VLAN feature can be implemented in two approaches, as described below:

Sub-VLAN-based IPv6 multicast VLAN

As shown in Figure 1-2, Host A, Host B and Host C are in three different user VLANs. On Switch A, configure VLAN 10 as an IPv6 multicast VLAN, configure all the user VLANs as sub-VLANs of this IPv6 multicast VLAN, and enable MLD snooping in the IPv6 multicast VLAN.

Figure 1-2 Sub-VLAN-based IPv6 multicast VLAN

 

After the configuration, MLD snooping manages router ports in the IPv6 multicast VLAN and member ports in the sub-VLANs. When forwarding multicast data to Switch A, Router A needs to send only one copy of multicast traffic to Switch A in the IPv6 multicast VLAN, and Switch A distributes the traffic to the IPv6 multicast VLAN’s sub-VLANs that contain receivers.

Port-based IPv6 multicast VLAN

As shown in Figure 1-3, Host A, Host B and Host C are in three different user VLANs. All the user ports are hybrid ports. On Switch A, configure VLAN 10 as an IPv6 multicast VLAN, assign all the user ports to this IPv6 multicast VLAN, and enable MLD Snooping in the IPv6 multicast VLAN and all the user VLANs.

Figure 1-3 Port-based IPv6 multicast VLAN

 

After the configuration, upon receiving an MLD message on a user port, Switch A tags the message with the IPv6 multicast VLAN ID and relays it to the MLD querier, so that MLD Snooping can uniformly manage the router ports and member ports in the IPv6 multicast VLAN. When forwarding multicast data to Switch A, Router A needs to send only one copy of multicast traffic to Switch A in the IPv6 multicast VLAN, and Switch A distributes the traffic to all the member ports in the IPv6 multicast VLAN.

 

l          For information about MLD Snooping, router ports, and member ports, refer to MLD Snooping Configuration in the IP Multicast Volume.

l          For information about VLAN tags, refer to VLAN Configuration in the Access Volume.

 

IPv6 Multicast VLAN Configuration Task List

Complete the following tasks to configure IPv6 multicast VLAN:

Configuration task

Remarks

Configuring IPv6 Sub-VLAN-Based IPv6 Multicast VLAN

Required

Use either approach.

Configuring Port-Based IPv6 Multicast VLAN

Configuring User Port Attributes

Configuring IPv6 Multicast VLAN Ports

 

Configuring IPv6 Sub-VLAN-Based IPv6 Multicast VLAN

Configuration Prerequisites

Before configuring sub-VLAN-based IPv6 multicast VLAN, complete the following tasks:

l          Create VLANs as required

l          Enable MLD Snooping in the VLAN to be configured as an IPv6 multicast VLAN

Configuring Sub-VLAN-Based IPv6 Multicast VLAN

In this approach, you configure a VLAN as an IPv6 multicast VLAN, and configure user VLANs as sub-VLANs of the IPv6 multicast VLAN.

Follow these steps to configure sub-VLAN-based IPv6 multicast VLAN:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure the specified VLAN as an IPv6 multicast VLAN and enter IPv6 multicast VLAN view

multicast-vlan ipv6 vlan-id

Required

No IPv6 multicast VLAN configured by default

Configure the specified VLAN(s) as sub-VLAN(s) of the IPv6 multicast VLAN

subvlan vlan-list

Required

By default, an IPv6 multicast VLAN has no sub-VLANs.

 

 

l          You cannot configure IPv6 multicast VLAN on a device with IP multicast routing enabled.

l          The VLAN to be configured as an IPv6 multicast VLAN must exist.

l          The VLANs to be configured as the sub-VLANs of the IPv6 multicast VLAN must exist and must not be sub-VLANs of another IPv6 multicast VLAN.

l          The total number of sub-VLANs of an IPv6 multicast VLAN must not exceed the maximum number the system can support (an S7500E series Ethernet switch supports up to five IPv6 multicast VLANs, and supports up to 4000 sub-VLANs for each multicast VLAN. The total number of sub-VLANs for all multicast VLANs on the switch cannot exceed 4000).

 

Configuring Port-Based IPv6 Multicast VLAN

When configuring port-based IPv6 multicast VLAN, you need to configure the attributes of each user port and then assign the ports to the IPv6 multicast VLAN.

 

 

l          A user port can be configured as a multicast VLAN port only if it is of the Ethernet, , or Layer 2 aggregate interface type.

l          Configurations made in Ethernet interface view are effective only for the current port; configurations made in Layer 2 aggregate interface view are effective only for the current interface; configurations made in port group view are effective for all the ports in the current port group.

 

Configuration Prerequisites

Before configuring port-based IPv6 multicast VLAN, complete the following tasks:

l          Create VLANs as required

l          Enable MLD Snooping in the VLAN to be configured as an IPv6 multicast VLAN

l          Enable MLD Snooping in all the user VLANs

Configuring User Port Attributes

Configure the user ports as hybrid ports to permit packets of the specified user VLAN to pass and configure the user VLAN to which the user ports belong as the default VLAN.

Configure the user ports to permit packets of the IPv6 multicast VLAN to pass and untag the packets. Thus, upon receiving multicast packets tagged with the IPv6 multicast VLAN ID from the upstream device, the Layer 2 device untags the multicast packets and forwards them to its downstream device.

Follow these steps to configure user port attributes:

To do...

Use the command...

Remarks

Enter system view

system-view

Enter interface view or port group view

interface interface-type interface-number

Required

Use either approach.

port-group manual port-group-name

Configue the user port link type as hybrid

port link-type hybrid

Required

Access by default

Specify the user VLAN that comprises the current user port(s) as the default VLAN

port hybrid pvid vlan vlan-id

Required

VLAN 1 by default

Configure the current user port to permit packets of the user VLAN to pass and untag the packets

port hybrid vlan vlan-id untagged

Required

By default, a hybrid port permits only packets of VLAN 1 to pass.

Configure the current user ports to permit packets of the specified IPv6 multicast VLAN to pass and untag the packets

port hybrid vlan vlan-id-list untagged

Required

By default, a hybrid port permits only packets of VLAN 1 to pass.

 

For details about the port link-type, port hybrid pvid vlan, and port hybrid vlan commands, refer to VLAN Commands in the Access Volume.

 

Configuring IPv6 Multicast VLAN Ports

In this approach, you need to configure a VLAN as an IPv6 multicast VLAN and then assign user ports to this IPv6 multicast VLAN.

Follow these steps to configure IPv6 multicast VLAN ports:

To do...

Use the command...

Remarks

Enter system view

system-view

Configure the specified VLAN as an IPv6 multicast VLAN and enter IPv6 multicast VLAN view

multicast-vlan ipv6 vlan-id

Required

No IPv6 multicast VLAN configured by default

Assign port(s) to the IPv6 multicast VLAN

port interface-list

Required

By default, an IPv6 multicast VLAN has no ports.

 

l          You cannot configure IPv6 multicast VLAN on a device with multicast routing enabled.

l          The VLAN to be configured as an IPv6 multicast VLAN must exist.

l          A port can belong to only one IPv6 multicast VLAN.

 

Displaying and Maintaining IPv6 Multicast VLAN

To do…

Use the command…

Remarks

Display information about an IPv6 multicast VLAN

display multicast-vlan ipv6 [ vlan-id ]

Available in any view

 

IPv6 Multicast VLAN Configuration Examples

Sub-VLAN-Based Multicast VLAN Configuration Example

Network requirements

l          As shown in Figure 1-4, Router A connects to an IPv6 multicast source through Ethernet 1/0/1 and to Switch A, through Ethernet 1/0/2.

l          MLDv1 is required on Router A, and MLD Snooping is required on Switch A. Router A is the MLD querier.

l          Switch A’s GigabitEthernet 2/0/1 belongs to VLAN 10, GigabitEthernet 2/0/2 through GigabitEthernet 2/0/4 belong to VLAN 2 through VLAN 4 respectively, and Host A through Host C are attached to GigabitEthernet 2/0/2 through GigabitEthernet 2/0/4 of Switch A.

l          The IPv6 multicast source sends IPv6 multicast data to the IPv6 multicast group FF1E::101. Host A, Host B, and Host C are receivers of the IPv6 multicast group.

l          Configure the sub-VLAN-based IPv6 multicast VLAN feature so that Router A just sends IPv6 multicast data to Switch A through the IPv6 multicast VLAN and Switch A forwards the traffic to the receivers that belong to different user VLANs.

Network diagram

Figure 1-4 Network diagram for sub-VLAN-based IPv6 multicast VLAN configuration

 

Configuration procedure

1)        Enable IPv6 forwarding and configure IPv6 addresses

Enable IPv6 forwarding on each device and configure an IPv6 address and address prefix for each interface as per Figure 1-4. The detailed configuration steps are omitted here.

2)        Configure Router A

# Enable IPv6 multicast routing, enable IPv6 PIM-DM on each interface and enable MLD on the host-side interface Ethernet 1/0/2.

<RouterA> system-view

[RouterA] multicast ipv6 routing-enable

[RouterA] interface ethernet 1/0/1

[RouterA-Ethernet1/0/1] pim ipv6 dm

[RouterA-Ethernet1/0/1] quit

[RouterA] interface ethernet 1/0/2

[RouterA-Ethernet1/0/2] pim ipv6 dm

[RouterA-Ethernet1/0/2] mld enable

3)        Configure Switch A

# Enable MLD Snooping globally.

<SwitchA> system-view

[SwitchA] mld-snooping

[SwitchA-mld-snooping] quit

# Create VLAN 2 and assign GigabitEthernet 2/0/2 to this VLAN.

[SwitchA] vlan 2

[SwitchA-vlan2] port gigabitethernet 2/0/2

[SwitchA-vlan2] quit

The configuration for VLAN 3 and VLAN 4 is similar to the configuration for VLAN 2.

# Create VLAN 10, assign GigabitEthernet 2/0/1 to this VLAN and enable MLD Snooping in the VLAN.

[SwitchA] vlan 10

[SwitchA-vlan10] port gigabitethernet 2/0/1

[SwitchA-vlan10] mld-snooping enable

[SwitchA-vlan10] quit

# Configure VLAN 10 as an IPv6 multicast VLAN and configure VLAN 2 through VLAN 4 as its sub-VLANs.

[SwitchA] multicast-vlan ipv6 10

[SwitchA-ipv6-mvlan-10] subvlan 2 to 4

[SwitchA-ipv6-mvlan-10] quit

4)        Verify the configuration

# Display information about the IPv6 multicast VLAN.

[SwitchA] display multicast-vlan ipv6

 Total 1 IPv6 multicast-vlan(s)

 IPv6 Multicast vlan 10

   subvlan list:

    vlan 2-4

   port list:

    no port

# View the MLD Snooping IPv6 multicast group information on Switch A.

[SwitchA] display mld-snooping group

  Total 4 IP Group(s).

  Total 4 IP Source(s).

  Total 4 MAC Group(s).

  Port flags: D-Dynamic port, S-Static port, C-Copy port

  Subvlan flags: R-Real VLAN, C-Copy VLAN

  Vlan(id):2.

    Total 1 IP Group(s).

    Total 1 IP Source(s).

    Total 1 MAC Group(s).

    Router port(s):total 0 port.

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

      IP group address:FF1E::101

        (::, FF1E::101):

          Host port(s):total 1 port.

            GE2/0/2                (D)

    MAC group(s):

      MAC group address:3333-0000-0101

          Host port(s):total 1 port.

            GE2/0/2

  Vlan(id):3.

    Total 1 IP Group(s).

    Total 1 IP Source(s).

    Total 1 MAC Group(s).

    Router port(s):total 0 port.

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

      IP group address:FF1E::101

        (::, FF1E::101):

          Host port(s):total 1 port.

            GE2/0/3                (D)

    MAC group(s):

      MAC group address:3333-0000-0101

          Host port(s):total 1 port.

            GE2/0/3

  Vlan(id):4.

    Total 1 IP Group(s).

    Total 1 IP Source(s).

    Total 1 MAC Group(s).

    Router port(s):total 0 port.

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

      IP group address:FF1E::101

        (::, FF1E::101):

          Host port(s):total 1 port.

            GE2/0/4                (D)

    MAC group(s):

      MAC group address:3333-0000-0101

          Host port(s):total 1 port.

            GE2/0/4

  Vlan(id):10.

    Total 1 IP Group(s).

    Total 1 IP Source(s).

    Total 1 MAC Group(s).

    Router port(s):total 1 port.

            GE2/0/1                (D)

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

      IP group address:FF1E::101

        (::, FF1E::101):

          Host port(s):total 0 port.

    MAC group(s):

      MAC group address:3333-0000-0101

          Host port(s):total 0 port.

As shown above, MLD Snooping is maintaining the router port in the IPv6 multicast VLAN (VLAN 10) and the member ports in the sub-VLANs (VLAN 2 through VLAN 4).

Port-Based Multicast VLAN Configuration Example

Network requirements

l          As shown in Figure 1-5, Router A connects to an IPv6 multicast source (Source) through Ethernet 1/0/1, and to Switch A through Ethernet 1/0/2.

l          MLDv1 is required on Router A. MLDv1 Snooping is required on Switch A. Router A acts as the MLD querier.

l          Switch A’s GigabitEthernet 2/0/1 belongs to VLAN 10, GigabitEthernet 2/0/2 through GigabitEthernet 2/0/4 belong to VLAN 2 through VLAN 4 respectively, and Host A through Host C are attached to GigabitEthernet 2/0/2 through GigabitEthernet 2/0/4 of Switch A.

l          The IPv6 multicast source sends IPv6 multicast data to IPv6 multicast group FF1E::101. Host A, Host B, and Host C are receivers of the IPv6 multicast group.

l          Configure the port-based IPv6 multicast VLAN feature so that Router A just sends IPv6 multicast data to Switch A through the IPv6 multicast VLAN and Switch A forward the IPv6 multicast data to the receivers that belong to different user VLANs.

Network diagram

Figure 1-5 Network diagram for port-based IPv6 multicast VLAN configuration

 

Configuration procedure

1)        Enable IPv6 forwarding and configure IPv6 addresses

Enable IPv6 forwarding on each device and configure the IPv6 address and address prefix for each interface as per Figure 1-5. The detailed configuration steps are omitted here.

2)        Configure Router A

# Enable IPv6 multicast routing, enable IPv6 PIM-DM on each interface, and enable MLD on the host-side interface Ethernet 1/0/2.

<RouterA> system-view

[RouterA] multicast ipv6 routing-enable

[RouterA] interface ethernet 1/0/1

[RouterA-Ethernet1/0/1] pim ipv6 dm

[RouterA-Ethernet1/0/1] quit

[RouterA] interface ethernet 1/0/2

[RouterA-Ethernet1/0/2] pim ipv6 dm

[RouterA-Ethernet1//2] mld enable

3)        Configure Switch A

# Enable MLD Snooping globally.

<SwitchA> system-view

[SwitchA] mld-snooping

[SwitchA-mld-snooping] quit

# Create VLAN 10, assign GigabitEthernet 2/0/1 to VLAN 10, and enable MLD Snooping in this VLAN.

[SwitchA] vlan 10

[SwitchA-vlan10] port gigabitethernet 2/0/1

[SwitchA-vlan10] mld-snooping enable

[SwitchA-vlan10] quit

# Create VLAN 2 and enable MLD Snooping in the VLAN.

[SwitchA] vlan 2

[SwitchA-vlan2] mld-snooping enable

[SwitchA-vlan2] quit

The configuration for VLAN 3 and VLAN 4 is similar. The detailed configuration steps are omitted.

# Configure GigabitEthernet 2/0/2 as a hybrid port. Configure VLAN 2 as the default VLAN. Configue Ethernet 1/2 to permit packets of VLAN 2 to pass and untag the packets when forwarding them.

[SwitchA] interface gigabitethernet 2/0/2

[SwitchA-GigabitEthernet2/0/2] port link-type hybrid

[SwitchA-GigabitEthernet2/0/2] port hybrid pvid vlan 2

[SwitchA-GigabitEthernet2/0/2] port hybrid vlan 2 untagged

[SwitchA-GigabitEthernet2/0/2] port hybrid vlan 10 untagged

[SwitchA-GigabitEthernet2/0/2] quit

The configuration for GigabitEthernet 2/0/3 and GigabitEthernet 2/0/4 is similar. The detailed configuration steps are omitted.

# Configure VLAN 10 as an IPv6 multicast VLAN.

[SwitchA] multicast-vlan ipv6 10

# Assign GigabitEthernet 2/0/2 through GigabitEthernet 2/0/4 to IPv6 multicast VLAN 10.

[SwitchA-ipv6-mvlan-10] port gigabitethernet 2/0/2 to gigabitethernet 2/0/4

[SwitchA-ipv6-mvlan-10] quit

4)        Verify the configuration

# View the IPv6 multicast VLAN information on Switch A.

[SwitchA] display multicast-vlan ipv6

 Total 1 IPv6 multicast-vlan(s)

 IPv6 Multicast vlan 10

   subvlan list:

    no subvlan

   port list:

    GE2/0/2                 GE2/0/3                 GE2/0/4

# View the MLD Snooping multicast group information on Switch A.

[SwitchA] display mld-snooping group

  Total 1 IP Group(s).

  Total 1 IP Source(s).

  Total 1 MAC Group(s).

 

  Port flags: D-Dynamic port, S-Static port, C-Copy port

  Subvlan flags: R-Real VLAN, C-Copy VLAN

  Vlan(id):10.

    Total 1 IP Group(s).

    Total 1 IP Source(s).

    Total 1 MAC Group(s).

    Router port(s):total 1 port.

            GE2/0/1                (D)

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

      IP group address:FF1E::101

        (::, FF1E::101):

          Host port(s):total 3 port.

            GE2/0/2                (D)

            GE2/0/3                (D)

            GE2/0/4                (D)

    MAC group(s):

      MAC group address:3333-0000-0101

          Host port(s):total 3 port.

            GE2/0/2

            GE2/0/3

            GE2/0/4

As shown above, MLD Snooping is maintaining router ports and member ports in VLAN 10.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网