Configure an IPv4 Static Route

You cannot create a default route to a virtual or physical interface.
  1. Access global configuration mode.
    device# configure terminal
    
  2. Enter the destination route and prefix-length (0.0.0.0/0) followed by a valid next hop IP address.
    device(config)# ip route 0.0.0.0/0 10.24.4.1

Example

This example configures a default route that is a null route.

device# configure terminal
device(config)# ip route 0.0.0.0/0 null 0