Multicast 是一個常用的功能,通常用在群組廣播教學或視訊會議當中。
下列指令 主要是提供視訊使用
視訊伺服器同時發送20個Stream Video 每一個視訊 都使用 Multicast Group IP 發送,此範例使用四個Group 。
主機發送Multicast group
Multicast group 1: 225.1.1.1
Multicast group 2: 225.1.1.2
Multicast group 3: 225.1.1.3
Multicast group 4: 225.1.1.4
。
。
。
交換器在啟動IGMP-SNOOPING的情況下 Client PC 都可以接受到相關訊息.
如果要限制 某一介面上的CLIENT PC只能接收特定的Multicast Group訊息時 就必須要多加幾行指令。
設定如下
相關指令
#
igmp-snooping #全域啟動 IGMP-SNOOPING
#
vlan 1
igmp-snooping enable # VLAN 啟動 IGMP-SNOOPING, 在有需要的VLAN上啟動
igmp-snooping drop-unknown # 啟動過濾功能,沒有在靜態清單內的 Multicast group 一律過濾
#
略 中間設定
#
interface GigabitEthernet1/0/1
#
interface GigabitEthernet1/0/2
igmp-snooping static-group 225.1.1.1 vlan 1 # 指定該介面可以收到靜態Multicast group 之封包 不在清單內的 一律過濾不傳送
igmp-snooping static-group 225.1.1.2 vlan 1 # 指定該介面可以收到靜態Multicast group 之封包 不在清單內的 一律過濾不傳送
在部分網路交換器上面 有受限於 RFC 1112 規範,所以 在規劃 Multicast 必須要注意 避開特定網段!!!下列網址 可以讓各位去查詢 哪些Multicast 符合 RFC 1112 標準
Use this tool to convert an IP multicast IP address to a MAC address based on IETF RFC 1112 rules.
http://www.aqwnet.com/index.php/tools/ip-mac-calculator
比方說 輸入 225.1.1.1 可用的
Multicast IP 224.0.0.1 converts to:
MAC address 01:00:5e:00:00:01
Matched multicast IP group addresses
224.0.0.1
224.128.0.1
225.0.0.1
225.128.0.1
226.0.0.1
226.128.0.1
227.0.0.1
227.128.0.1
228.0.0.1
228.128.0.1
229.0.0.1
229.128.0.1
230.0.0.1
230.128.0.1
231.0.0.1
231.128.0.1
232.0.0.1
232.128.0.1
233.0.0.1
233.128.0.1
234.0.0.1
234.128.0.1
235.0.0.1
235.128.0.1
236.0.0.1
236.128.0.1
237.0.0.1
237.128.0.1
238.0.0.1
238.128.0.1
239.0.0.1
239.128.0.1
感謝ETHAN協助測試!!!
祝各位網路暢行無阻!!