Configure Static Routes for a Management Instance

Use this task to configure static routes for Management Instances.

About this task

For the Management Instance CLIP, you do not need to configure a default or static route. This interface type uses all routing information learned by protocols attached to the VRF. For more information about how to associate a VRF with the CLIP interface, see Create a Segmented Management Instance.

For the Management Instance OOB and VLAN, you must configure a default or static route to reach the next-hop gateway; no routing protocol information is used to access off-link networks.

You can configure up to 100 IPv4 and IPv6 static routes.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Enter the configuration mode for the Management Instance:

    mgmt {clip | oob | vlan}

  3. Configure a static route:

    ip route <A.B.C.D A.B.C.D | A.B.C.D/X> next-hop <A.B.C.D> [weight <1–65535>]

    OR

    ipv6 route WORD<0-255> [next-hop WORD<0-255>] [weight <1–65535>]

Example

Add a static route to configure routing for a Management Instance:

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#mgmt vlan
Switch:1(mgmt:vlan)#ip route 192.0.2.2/24 next-hop 198.51.100.1

Variable definitions

The following table defines parameters for the ip route and ipv6 route commands.

Variable

Value

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

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

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

  • A.B.C.D/X

next-hop <A.B.C.D> or next-hop WORD<0-255>

Specifies the next hop address for the static route.

Use an IP in the same subnet as the management VLAN IP address.

weight <1–65535>

Specifies the static route cost. The default is 100 for CLIP, 200 for VLAN, and 300 for OOB.

The management CLIP uses an internal static route with a weight of 100. If you use both CLIP and VLAN and need to force all default traffic out the management VLAN interface, configure a default static route with a weight lower than 100.

WORD<0-255>

Specifies the IPv6 address.