Configure Static Routes for a Management Instance

Use this task to configure static routes for Management Instances.

Note

Note

Up to 100 IPv4 and IPv6 static routes can be configured.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Enter the configuration mode for the Management Instance:

    mgmt {clip | oob | vlan}

  3. Optional: 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.