为7、8、9,802.1p优先级分别为0、4、6。
huawei(config)#traffic table ip index 7 name internet cir 10240 priority 0 priority-policy local-Setting
huawei(config)#traffic table ip index 8 name iptv cir 10240 priority 4 priority-policy local-Setting
huawei(config)#traffic table ip index 9 name voip cir 10240 priority 6 priority-policy local-Setting
创建VLAN。
创建VLAN 100–103,其中VLAN 101为组播VLAN。
huawei(config)#vlan 100-103 smart
It will take several minutes, and console may be timeout, please use command
idle-timeout to set time limit
Are you sure to add VLANs? (y/n)[n]:y
The total of the VLANs having been processed is 4
The total of the added VLANs is 4
加入上行端口。
将上行口0/0/1加入到VLAN中。
huawei(config)#port vlan 100-103 0/0 1 //ONU设备上行端口的VLAN与上行设备接入端口的VLAN必须相同
It will take several minutes, and console may be timeout, please use command
idle-timeout to set time limit
Are you sure to add standard port(s)? (y/n)[n]:y
The total of the VLANs having been processed is 4
The total of the port VLAN(s) having been added is 4
创建业务虚端口。
创建索引号分别为2、3、4的业务虚端口,对应user-vlan分别为2、3、4,S-VLAN分别为100、103、102,业务流模板分别为7、8、9。
huawei(config)#service-port 2 vlan 100 eth 0/1/1 multi-service user-vlan 2 rx-cttr 7 tx-cttr 7
huawei(config)#service-port 3 vlan 103 eth 0/1/1 multi-service user-vlan 3 rx-cttr 8 tx-cttr 8
huawei(config)#service-port 4 vlan 102 eth 0/1/1 multi-service user-vlan 4 rx-cttr 9 tx-cttr 9
说明:
至此,Internet/VoIP业务配置完成,后续步骤为IPTV业务的组播配置。
配置组播数据。
配置组播VLAN及组播模式。
huawei(config)#multicast-vlan 101
huawei(config-mvlan101)#igmp mode proxy
Are you sure to change IGMP mode?(y/n)[n]:y
配置组播上行口。
huawei(config-mvlan101)#igmp uplink-port 0/0/1
配置组播节目。
huawei(config-mvlan101)#igmp program add name program1 ip 224.1.1.1 sourceip 10.10.10.10
配置组播用户。
huawei(config-mvlan101)#btv
huawei(config-btv)#igmp user add service-port 3
huawei(config-btv)#multicast-vlan 101
huawei(config-mvlan101)#igmp multicast-vlan member service-port 3
保存数据。
huawei(config-mvlan101)#quit
huawei(config)#save
操作结果