Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

The set protocols static interface-route interface command configures a unicast static route by specifying the outgoing interface.

The delete protocols static interface-route interface command removes the static route.

Command Syntax

set protocols static [vrf <vrf-name>] interface-route <ip/prefixlen> interface <interface-name> [distance <distance> | tag <tag>]

delete protocols static [vrf <vrf-name>] interface-route <ip/prefixlen> interface <interface-name> [distance <distance> | tag <tag>]




vrf <vrf-name>Optional. Specifies a VRF name. If not specified, it will create a static route in the default VRF.

interface-route <ip/prefixlen>

Specifies a destination IPv4 or IPv6 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 for IPv4 and 1 to 128 for IPv6.
interface <interface-name>Specifies the L3 VLAN interface as an outgoing interface.
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.

• This example creates a static route.

admin@XorPlus# set protocols static interface-route interface vlan100 
admin@XorPlus# commit

  • No labels