Configure a Basic IPv4 Static Route

Specify the IPv4 destination address, the address mask, and the IPv4 address of the next hop.

Procedure

  1. Access global configuration mode.
    device# configure terminal
    
  2. Enter the IP address and prefix length for the route destination network and the IP address for the next hop.
    device(config)# ip route 10.0.0.0/24 10.1.1.1
    
    Note

    Note

    Prefix lengths must be used as part of the address. Network masks cannot be used. The prefix length of /8 is equivalent to a network mask of 255.0.0.0. The prefix length of /24 (equivalent to the mask 255.255.255.0) matches all hosts in the Class C subnet address in the destination IP address.