ip route (globally)

You can configure routing switches with a static default route, or they can learn it through a dynamic routing protocol. Use this command to create static routes for data traffic in the GRT.

Syntax

Command Parameters

{A.B.C.D}
The first and second <A.B.C.D> specify the IP address and mask for the route destination.
255.255.255.255 is the black hole route. Configures a black hole static route to the destination a router advertises to avoid routing loops when aggregating or injecting routes to other routers.
The default route specifies a route to all networks for which there are no explicit routes in the Forwarding Information Base or the routing table. The default route has a prefix length of zero (RFC 1812).
enable
Adds a static or default route to the router or VRF.
local-next-hop enable
Enables the local next hop for this static route.
name WORD<1-64>
Specifies the static route name.
next-hop-vrf WORD<1-16>
Specifies the next-hop VRF instance by name.
preference <1-255>
Specifies the route preference.
weight <1-65535>
Specifies the static route cost.
Note

Note

Do not configure a static interface subnet route with a weight of 1.

Default

None

Command Mode

Global Configuration

Usage Guidelines

Static routes for the management OOB and management VLAN, if supported, must use the Segmented Management Instance. For more information, see VOSS User Guide. The management CLIP can use the Segmented Management Instance or routes in the associated VRF routing table manager (RTM).