An attacker sends a large number of IP packets carrying route options to a switch, degrading its forwarding performance and exhausting its resources. As a result, the switch fails to process valid packets.
Switches support the following route options in IP packets:
To protect switches against attacks launched using IP packets with route options, run the discard { srr | rr | ra | ts } command in the interface view.
Configure a switch to discard IP packets carrying route options. Perform the following operations based on different route options:
Configure the switch to discard packets carrying the RR option on VLANIF100.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] discard rr [HUAWEI-Vlanif100] quit
Configure the switch to discard packets carrying the TS option on VLANIF100.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] discard ts [HUAWEI-Vlanif100] quit
Configure the switch to discard packets carrying the SRR option on VLANIF100.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] discard srr [HUAWEI-Vlanif100] quit
Configure the switch to discard packets carrying the RA option on VLANIF100.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] discard ra [HUAWEI-Vlanif100] quit