beautypg.com

H3C Technologies H3C S3100 Series Switches User Manual

Page 343

background image

4-6

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

[RouterA-Ethernet1/0/1] quit

[RouterA] interface ethernet 1/0/2

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

[RouterA-Ethernet1/0/2] mld enable

3) Configure Switch A

# Enable MLD Snooping globally.

system-view

[SwitchA] mld-snooping

[SwitchA-mld-snooping] quit

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

[SwitchA] vlan 10

[SwitchA-vlan10] port ethernet 1/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 Ethernet 1/0/2 as a hybrid port. Configure VLAN 2 as the default VLAN. Configue Ethernet

1/0/2 to permit packets of VLAN 2 to pass and untag the packets when forwarding them.

[SwitchA] interface ethernet 1/0/2

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

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

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

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

[SwitchA-Ethernet1/0/2] quit

The configuration for Ethernet 1/0/3 and Ethernet 1/0/4 is similar. The detailed configuration steps are

omitted.

# Configure VLAN 10 as an IPv6 multicast VLAN.

[SwitchA] multicast-vlan ipv6 10

# Assign Ethernet 1/0/2 and Ethernet 1/0/3 to IPv6 multicast VLAN 10.

[SwitchA-ipv6-mvlan-10] port ethernet 1/0/2 to ethernet 1/0/3

[SwitchA-ipv6-mvlan-10] quit

# Assign Ethernet 1/0/4 to IPv6 multicast VLAN 10.

[SwitchA] interface ethernet 1/0/4

[SwitchA-Ethernet1/0/4] port multicast-vlan ipv6 10

[SwitchA-Ethernet1/0/4] 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

port list:

Eth1/0/2 Eth1/0/3 Eth1/0/4