Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Understanding Forwarding Packets to the Discard Interface

    The discard (dsc) interface is not a physical interface, but a virtual interface that discards packets. You can configure one discard interface. This interface allows you to identify the ingress point of a denial-of-service (DoS) attack. When your network is under attack, the target host IP address is identified, and the local policy forwards attacking packets to the discard interface. Traffic routed out of the discard interface is silently discarded.

    The discard interface allows you to protect a network from DoS attacks by identifying the target IP address that is being attacked and configuring a policy to forward all packets to a discard interface. All packets forwarded to the discard interface are dropped.

    To configure the discard interface, include the dsc statement:

    [edit interfaces interface-name]
    dsc {unit 0 {family inet {filter {input filter-name;output filter-name;}}}}

    The dsc interface name denotes the discard interface. The discard interface supports only unit 0.

    The following two configurations are required to configure a policy to forward all packets to the discard interface.

    Configure an input policy to associate a community with the discard interface:

    [edit]
    policy-options {community community-name members [ community-id ];policy-statement statement-name {term term-name {from community community-name;then {next-hop address; # Remote end of the point-to-point interfaceaccept;}}}}

    Configure an output policy to set up the community on the routes injected into the network:

    [edit]
    policy-options {policy-statement statement-name {term term-name {from prefix-list name;then community (set | add | delete) community-name;}}}

    Published: 2013-07-31