56
[SwitchA-vlan2] quit
The configuration for VLAN 3 and VLAN 4 is similar. (Details not shown.)
# Configure Ethernet 1/0/2 as a hybrid port. Configure VLAN 2 as the default VLAN. Configure
Ethernet 1/0/2 to permit packets of VLAN 2 and VLAN 10 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. (Details not shown.)
# Configure VLAN 10 as a multicast VLAN.
[SwitchA] multicast-vlan 10
# Assign Ethernet 1/0/2 and Ethernet 1/0/3 to VLAN 10.
[SwitchA-mvlan-10] port ethernet 1/0/2 to ethernet 1/0/3
[SwitchA-mvlan-10] quit
# Assign Ethernet 1/0/4 to VLAN 10.
[SwitchA] interface ethernet 1/0/4
[SwitchA-Ethernet1/0/4] port multicast-vlan 10
[SwitchA-Ethernet1/0/4] quit
Verifying the configuration
# Display the multicast VLAN information on Switch A.
[SwitchA] display multicast-vlan
Total 1 multicast-vlan(s)
Multicast vlan 10
port list:
Eth1/0/2 Eth1/0/3 Eth1/0/4
# Display the IGMP snooping multicast group information on Switch A.
[SwitchA] display igmp-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
Vlan(id):10.
Total 1 IP Group(s).
Total 1 IP Source(s).
Total 1 MAC Group(s).
Router port(s):total 1 port(s).
Eth1/0/1 (D)
IP group(s):the following ip group(s) match to one mac group.
IP group address:224.1.1.1
(0.0.0.0, 224.1.1.1):
Host port(s):total 3 port(s).