set protocols static interface-route interface


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>]


Parameter

Parameter

Description

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 interface as an outgoing interface. The value could be a VLAN interface, loopback interface, routed interface or sub-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.


Example
• This example creates a static route.

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


Copyright © 2024 Pica8 Inc. All Rights Reserved.