...
Command Syntax
set protocols static [vrf<vrf-name>] route <ipv4/prefixlen> {next-hop <nexthop-address> | blackhole | null0 | reject} [metric <metric> distance <distance> | tag <tag>]
delete protocols static [vrf<vrf-name>] route <ipv4/prefixlen> {next-hop <nexthop-address> | blackhole | null0 | reject}
Parameter
Parameter | Description |
vrf <vrf-name> | Optional. Specifies a VRF name. If not specified, it will create a static route in the default VRF. |
route <ipv4/prefixlen> | Specifies a destination IP address. Where prefixlen specifies the number of bits in the address mask in int format (x), where x is a decimal number from 1 to 32. |
next-hop <nexthop-address> | Specifies the next-hop address. The value is in dotted decimal notation. |
blackhole | Specifies that packets matching the destination route are silently discarded and no ICMP error notification is sent to the sender. |
null0 | Specifies the NULL0 interface as an outgoing interface. All the IP packets destined for the destination address are discarded without notifying the source host. |
reject | Specifies that packets matching the destination route are discarded and an ICMP error notification is sent to the sender. |
distance <distance> | Optional. Specifies |
the administrative distance of a static route. The |
value is an integer that ranges from 1 to 255. | |
tag <tag> | Optional. Specifies the tag value of a static route. By configuring different tag values, you can classify static routes to implement different routing policies. For example, other routing protocols can import static routes with specified tag values through routing policies. |
Example
• This example creates a static black hole route.
...