igmp-snooping主要用于生成二层组播表项,防止交换机全部接口都发组播报文
PC端配置:
组播源配置:
interface GigabitEthernet0/0/0
ip address 10.0.0.1 255.255.255.0
pim dm
interface GigabitEthernet0/0/1
ip address 192.168.0.1 255.255.255.0
pim dm
igmp enable
igmp-snooping enable //全局开启组播表项功能
vlan 1
igmp-snooping enable //只给vlan 1下发组播报文
interface GigabitEthernet0/0/3
port link-type access
port default vlan 2