Enabling routing globally or on a VRF instance

Use IP forwarding (routing) on a global level so that the device supports routing. You can use the IP address of an interface for IP-based network management.

Procedure

  1. Enter either Global Configuration mode or VRF Router Configuration mode for a specific VRF context:

    enable

    configure terminal

    Optional: router vrf WORD<1-16>

  2. Activate IP forwarding:

    ip routing

  3. View the forwarding configuration:

    show ip routing [vrf WORD<1–16>] [vrfids WORD<0–512>]

Example

Activate IP forwarding and view the forwarding configuration:

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#router vrf green
Switch:1(router-vrf)#ip routing
Switch:1(router-vrf)#show ip routing

================================================================================
                               IP - GlobalRouter
================================================================================


 IP Forwarding is enabled
 IP ECMP feature is disabled
 Maximum ECMP paths number is 1
 ECMP 1 pathlist :
 ECMP 2 pathlist :
 ECMP 3 pathlist :
 ECMP 4 pathlist :
 ECMP 5 pathlist :
 ECMP 6 pathlist :
 ECMP 7 pathlist :
 ECMP 8 pathlist :
 Gratuitous-Arp  :  enable
 IP Alternative Route feature is enabled
 IP More Specific Non Local Route feature is disabled
 IP ICMP Unreachable Message is disabled
 IP Supernetting is disabled
 IP Icmp-echo-broadcast-request is enabled

 IP Default TTL is 255 seconds
 IP ARP life time is 360 minutes
 IP Source Route Option is disabled

Variable Definitions

Use the data in the following table to use the show ip routing command.

Variable

Value

vrf WORD<1-16>

Specifies a VRF instance by VRF name.

vrfids WORD<0-512>

Specifies a VRF instance by VRF number.