How to configure static route on Cisco router

How to configure static route on Cisco router

Static route is form of routing protocol used to route or link up different networks on a router. It’s a manual entry on the router configuration that sends traffic to specific network to a known route. All static routes must be be manually configured on all routers and it not account for link failure.

To configure a static route on Cisco router, use the command below:


R01#conf t
R01(config)#ip route 192.168.2.0 255.255.255.192 10.1.1.1
R01(config)#exit
R01#
– This settings will send any traffic to the 192.168.2.0/26 network to a remote router 10.1.1.1. You must also enter a route on the remote router to send traffic back to this router.

To see the new configuration, issue command show ip route

R01#show ip route
Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP
i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area
* – candidate default, U – per-user static route, o – ODR
P – periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 2 subnets
C 10.1.1.0 is directly connected, FastEthernet0/0
O 10.1.2.0 [110/2] via 10.1.1.1, 00:39:15, FastEthernet0/0
172.82.0.0/30 is subnetted, 1 subnets
O 172.82.20.0 [110/65] via 10.1.1.1, 00:39:15, FastEthernet0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/1
192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
2016 attractions best cabbage chicken cook cooking countries delicious destinations drinks elements expensive Facebook featured fitness food healthy how how to Iran italian make most museum nature Netherlands pasta places plan recipe recipes smoothie stuffed tech ten things to do tips to top transport travel UK waterfall world