Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Establishing an IP Static Route

    You can set a destination to receive and send traffic by a specific route through the network using the ip route command.

    For null 0 interfaces, you can use the reject keyword to enable the sending of Internet Control Message Protocol (ICMP) unreachable messages to the originator for discarded ping and traceroute packets that reach the null 0 interface with a static route. Alternatively, you can use the discard keyword to disable the sending of ICMP unreachable messages to the originator for such dropped packets. For more information about the usage of ICMP unreachable messages for packets that reach null 0 interfaces with static routes, see Understanding ICMP Unreachable Messages for Static Routes Sent on Null Interfaces.

    To establish a static route:

    • Issue the ip route command in Global Configuration mode.
      host1(config)#ip route 192.56.15.23 255.255.255.0 192.66.0.1

      Use the no version to remove a static route from the routing table.

    Published: 2014-08-13