Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

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.
blackholeSpecifies that packets matching the destination route are silently discarded and no ICMP error notification is sent to the sender.
null0Specifies the NULL0 interface as an outgoing interface. All the IP packets destined for the destination address are discarded without notifying the source host.
rejectSpecifies that packets matching the destination route are discarded and an ICMP error notification is sent to the sender.
metric <metric>distance <distance>Optional. Specifies the metric the administrative distance of a static route. The value is an integer that ranges from 1 to 255. The default value is 1.
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.

...