Create the traffic classifier test and define a matching rule.
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] traffic classifier test [SwitchA-classifier-test] if-match destination-mac 0100-5e00-0000 mac-address-mask ffff-ff00-0000 //Match the destination MAC address of multicast packets. [SwitchA-classifier-test] quit
Create the traffic behavior test, enable traffic statistics collection, and set the traffic rate limit.
[SwitchA] traffic behavior test [SwitchA-behavior-test] statistic enable [SwitchA-behavior-test] car cir 100 //Set the rate limit to 100 kbit/s. If multicast services are available, you are advised to set the rate limit according to the service traffic. [SwitchA-behavior-test] quit
Create the traffic policy test and bind the traffic classifier and traffic behavior to the traffic policy.
[SwitchA] traffic policy test [SwitchA-trafficpolicy-test] classifier test behavior test [SwitchA-trafficpolicy-test] quit
Apply the traffic policy to inbound and outbound directions of interfaces.
[SwitchA] interface gigabitethernet 0/0/1 [SwitchA-GigabitEthernet0/0/1] traffic-policy test inbound [SwitchA-GigabitEthernet0/0/1] traffic-policy test outbound [SwitchA-GigabitEthernet0/0/1] quit
Create the traffic profile test and set the maximum traffic volume of multicast packets in the profile.
<HUAWEI> system-view [HUAWEI] sysname AC [AC] wlan [AC-wlan-view] traffic-profile name test [AC-wlan-traffic-prof-test] traffic-optimize multicast-suppression packets 100 //Set the maximum traffic volume of multicast packets to 100 pps. If multicast services are available, you are advised to set the rate limit according to the service traffic. [AC-wlan-traffic-prof-test] quit
Bind the traffic profile to the VAP profile.
[AC-wlan-view] vap-profile name test [AC-wlan-vap-prof-test] traffic-profile test [AC-wlan-vap-prof-test] quit