Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »


The set protocols static route command configures a unicast static route by specifying the next hop.

The delete protocols static route command removes the static route.


Command Syntax

set protocols static route <ipv4/prefixlen> {next-hop <nexthop-address> | blackhole | null0 | reject} [metric <metric> | tag <tag>]

delete protocols static route <ipv4/prefixlen> {next-hop <nexthop-address> | blackhole | null0 | reject}


Parameter

Parameter

Description

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>Optional. Specifies the metric of a static route. 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.


Example
• This example creates a static black hole route.

admin@XorPlus# set protocols static route 10.10.10.10/32 blackhole 
admin@XorPlus# commit


  • No labels