Configure an IPv4 Static Route

A router uses a default static route when there are no other default routes to a destination.

About this task

You cannot create a default route to a virtual or physical interface.

Procedure

  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