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 route command configures a unicast static route.

Command Syntax

set protocols static [vrf <vrf-name>] route <ip-address> next-hop <nexthop-address>




vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].


  • When a VRF name is specified, find the next hop routing information from the specified VRF domain.
  • When no VRF is specified, find the next hop routing information from the default VRF.

route <ip-address>

Specifies a destination IPv4 or IPv6 address network segment for route. For example,, 200::0/64

next-hop <nexthop-address>

Specifies the next-hop address. For example,, fc00:0:0:2002::2.

Usage Guidelines

On a simple network, you only need to configure static routes to ensure that the network runs properly. When the destination IP address is set to or 0::0/0, a default route is configured. If the switch cannot find a route in the routing table to forward packets, the switch will use the default route to forward packets.

The static route entries are in the default VRF if not explicitly bound to any VRF.


  • Set the next-hop address of to
admin@Xorplus# set protocols static vrf vrf100 route next-hop
admin@Xorplus# commit

  • No labels