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 or 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 classifier test and define a matching rule.
<HUAWEI> system-view [HUAWEI] sysname AC [AC] traffic classifier test [AC-classifier-test] if-match destination-mac 0100-5e00-0000 mac-address-mask ffff-ff00-0000 //Match the destination MAC address of multicast packets. [AC-classifier-test] quit
Create the traffic behavior test, enable traffic statistics collection, and set the traffic rate limit.
[AC] traffic behavior test [AC-behavior-test] statistic enable [AC-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. [AC-behavior-test] quit
Create the traffic policy test and bind the traffic classifier and traffic behavior to the traffic policy.
[AC] traffic policy test [AC-trafficpolicy-test] classifier test behavior test [AC-trafficpolicy-test] quit
Apply the traffic policy to inbound or outbound directions of interfaces.
[AC] interface wlan-ess 1 [AC-Wlan-Ess1] traffic-policy test inbound [AC-Wlan-Ess1] traffic-policy test outbound [AC-Wlan-Ess1] quit