How to configure port anti-attacking on S switch?


[HUAWEI] cpu-defend policy test //create the policy, the name is test
[HUAWEI-cpu-defend-policy-test] auto-port-defend enable //open the function
[HUAWEI-cpu-defend-policy-test] auto-port-defend protocol all //open the port anti-attacking protocol
[HUAWEI-cpu-defend-policy-test] auto-port-defend protocol all threshold 64 //configure the threshold
[HUAWEI-cpu-defend-policy-test] auto-port-defend sample 5 //sampling rate of protocol packets based on port defense
[HUAWEI-cpu-defend-policy-test] auto-port-defend aging-time 500 //Configure the aging detection interval for port attack defense
[HUAWEI-cpu-defend-policy-test] quit
[HUAWEI] cpu-defend-policy test global //apply the policy

Other related questions:
How to configure ARP anti-attack on an AR router
On a network, common ARP attack methods include ARP flooding and ARP spoofing. To avoid different types of harm caused by the ARP attacks, multiple types of solutions to the ARP security features are provided according to the attack types. By configuring ARP anti-flooding
and anti-spoofing, the maintenance cost arising from ensuring normal running of a network and security of network information can be effectively reduced, thereby providing users with a more secure network environment and more stable network services. For details about the configuration procedure, see the URL: AR100&AR120&AR150&AR160&AR200&AR1200& AR1600&AR2200&AR3200&AR3600 V200R007 Product Documentation.

How to configure CPU anti-attacking on S switch?
[HUAWEI] cpu-defend policy test //create anti-attacking policy,the name is test [HUAWEI-cpu-defend-policy-test] car packet-type arp-request cir 120 //configure protocol packet limitation [HUAWEI-cpu-defend-policy-test] linkup-car packet-type ftp cir 5000 //configure dynamical link protection packet limitation [HUAWEI-cpu-defend-policy-test] quit [HUAWEI] cpu-defend-policy test global //apply the policy

How to know that which anti-attacking has been configured?
display cpu-defend configuration al

ARP anti-spoofing configuration on S series switch
The S series switch, except S1700, provides various methods to prevent ARP spoofing attacks. Dynamic ARP inspection (DAI) This function applies to the network where DHCP snooping is configured. It is recommended to configure DAI on the access switches.DAI can prevent man-in-the-middle attacks. # Enable DAI on GE 1/0/1. [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] arp anti-attack check user-bind enable # Enable DAI in VLAN 100. [HUAWEI] vlan 100 [HUAWEI-vlan100] arp anti-attack check user-bind enable - Configure fixed ARP. To prevent ARP spoofing attacks, configure fixed ARP on the gateway. # Enable fixed ARP in fixed MAC mode. [HUAWEI] arp anti-attack entry-check fixed-mac enable - Configure ARP gateway anti-collision (available on only S5720SI/S5720S-SI, S5720EI, S5720HI, S6720EI, and modular switches). When user hosts are directly connected to the gateway, configure this function on the gateway. # Enable ARP gateway anti-collision. [HUAWEI] arp anti-attack gateway-duplicate enable - Configure the switch to actively discard gratuitous ARP packets (only available on modular switches). If you confirm that the gratuitous ARP packets are from attackers, enable the gateway to actively discard gratuitous ARP packets. # Enable the switch to actively discard gratuitous ARP packets globally. [HUAWEI] arp anti-attack gratuitous-arp drop

Can the device prevent ARP attacks after the ARP anti-attack function is configured
After the ARP anti-attack function is configured, the device can only reduce the impact of the ARP attacks. For example: --ARP Miss message limiting can only reduce the impact of ARP Miss attacks, but cannot prevent ARP Miss attacks or defend against ARP packet attacks or ARP spoofing attacks. --ARP gateway anti-collision can only prevent bogus gateway attacks, but cannot prevent ARP flood attacks or ARP spoofing gateway attacks.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top