ip route (for a VRF)

Configure a static route for a VRF. Use this command to:

Syntax

Command Parameters

<A.B.C.D A.B.C.D | A.B.C.D/X>

Specifies the IP address and mask for the route destination in one of the following formats:

  • A.B.C.D A.B.C.D

  • A.B.C.D/X

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).

{A.B.C.D}

Specifies the IP address of the next-hop router (the next router at which packets must arrive on this route). When you create a black hole static route, configure this parameter to 255.255.255.255 as the IP address of the router through which the specified route is accessible. Configure a black hole static route to the destination a router advertises to avoid routing loops when aggregating or injecting routes to other routers.

<1-255>
Indicates the route preference of this entry. If you can use more than one route to forward IP traffic, the switch uses the route with the highest preference. The higher the number, the higher the preference.
<1-65535>
Specifies the static route cost.
Note

Note

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

WORD<0-16>
Specifies the VRF ID in inter-VRF static-route configuration.
name WORD<0-64>
Specifies the name associated with the static route.

Default

None

Command Mode

VRF Router Configuration

Usage Guidelines

Static routes for the management OOB and management VLAN 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).