How to add a static route

Static route helps you to manually point what is you next hop to reach a different subnet prefix. For example, you want to reach a subnet 151.52.10.0/24 using a next IP of 146.150.2.1. Here is how you configure it on a router:

Cisco (config)#ip route 151.52.10.0 255.255.255.0 146.150.2.1

Static routes are mostly used on small networks and would not consume lots of processing power like dynamic routes. The above command put this static route into the global routing table. If you happen to have multiple VRF, you need to configure this under your VRF.

Say yor VRF name is “Marketing”

Cisco(Config)#ip route vrf  Marketing 151.52.10.0 255.255.255.0 146.150.2.1

You can view this route using:

Cisco#sh ip route vrf Marketing