組播VLAN的典型配置
組播VLAN配置案例需求分析
1.組播源為Workstation,Switch A轉(zhuǎn)發(fā)組播源發(fā)出的組播數(shù)據(jù)流。配置組播VLAN,使VLAN 2和VLAN 3內(nèi)的用戶通過組播VLAN接收組播流。SwitchA上VLAN 20接口的IP地址為168.10.1.1,Ethernet 1/0/1屬于VLAN 20,Ethernet 1/0/1和Work Station相連。VLAN 10為組播VLAN。端口Ethernet 1/0/10與Switch B相連。SwitchB上VLAN 2包含端口Ethernet 1/0/1,VLAN 3包括端口Ethernet 1/0/2,兩個端口分別與PC1、PC2相連,端口Ethernet 1/0/10和Switch A相連;
2.此案例同時適用于以下產(chǎn)品:
Quidway 2000-EI、3000和H3C 3100-SI 、3500、5100-EI、3600、5600系列交換機(jī)。
組網(wǎng)圖如下:
組播VLAN配置步驟
Switch A配置:
1.進(jìn)入系統(tǒng)視圖,使能組播路由功能
- <SwitchA> system-view
- [SwitchA] multicast routing-enable
2.創(chuàng)建vlan 20,并配置vlan接口地址,在該vlan接口下使能pim dm。
- [SwitchA] vlan 20
- [SwitchA-vlan20] interface Vlan-interface 20
- [SwitchA-Vlan-interface20] ip address 168.10.1.1 255.255.255.0
- [SwitchA-Vlan-interface20] pim dm
- [SwitchA-Vlan-interface20] quit
3.創(chuàng)建組播vlan 10
- [SwitchA] vlan 10
- [SwitchA-vlan10] quit
4.將Ethernet 1/0/10定義為Hybrid端口,并將該端口加入到VLAN 10中,端口發(fā)送VLAN 10的報文時帶VLAN標(biāo)簽。
- [SwitchA] interface Ethernet 1/0/10
- [SwitchA-Ethernet 1/0/10] port link-type hybrid
- [SwitchA-Ethernet 1/0/10] port hybrid vlan 10 tagged
- [SwitchA-Ethernet 1/0/10] quit
5.在VLAN 10接口啟動PIM DM協(xié)議,并同時啟用IGMP。
- [SwitchA] interface Vlan-interface 10
- [SwitchA-Vlan-interface10] pim dm
- [SwitchA-Vlan-interface10] igmp enable
SwitchB配置:
1.在系統(tǒng)視圖下使能IGMP Snooping功能
- <SwitchB> system-view
- [SwitchB] igmp-snooping enable
2.配置VLAN 10為組播VLAN,并在VLAN視圖下使能IGMP Snooping
- [SwitchB] vlan 10
- [SwitchB-vlan10] service-type multicast
- [SwitchB-vlan10] igmp-snooping enable
- [SwitchB-vlan10] quit
3.將Ethernet 1/0/10定義為Hybrid端口,并將該端口加入到VLAN 2、3、10中,端口發(fā)送VLAN 2、VLAN 3和VLAN 10的報文時帶VLAN標(biāo)簽
- [SwitchB] interface Ethernet 1/0/10
- [SwitchB-Ethernet 1/0/10] port link-type hybrid
- [SwitchB-Ethernet 1/0/10] port hybrid vlan 2 3 10 tagged
- [SwitchB-Ethernet 1/0/10] quit
4.將Ethernet 1/0/1定義為Hybrid端口,并將該端口加入到VLAN 2、VLAN 10中,端口發(fā)送VLAN 2和VLAN 10的報文時不帶VLAN標(biāo)簽,端口的缺省VLAN為VLAN 2
- [SwitchB] interface Ethernet 1/0/1
- [SwitchB-Ethernet 1/0/1] port link-type hybrid
- [SwitchB-Ethernet 1/0/1] port hybrid vlan 2 10 untagged
- [SwitchB-Ethernet 1/0/1] port hybrid pvid vlan 2
- [SwitchB-Ethernet 1/0/1] quit
5.Ethernet 1/0/2定義為Hybrid端口,并將該端口加入到VLAN 3、VLAN 10中,端口發(fā)送VLAN 3和VLAN 10的報文時不帶VLAN標(biāo)簽,端口的缺省VLAN為VLAN 3
- [SwitchB] interface Ethernet 1/0/2
- [SwitchB-Ethernet 1/0/2] port link-type hybrid
- [SwitchB-Ethernet 1/0/2] port hybrid vlan 3 10 untagged
- [SwitchB-Ethernet 1/0/2] port hybrid pvid vlan 3
- [SwitchB-Ethernet 1/0/2] quit
組播VLAN的配置到此就結(jié)束了,相信只要大家多多實踐,對于一些基本的或者復(fù)雜的配置,大家都會掌握的。
【編輯推薦】