Configuring a Static Default Route

This is an example how to make static routing between two networks: and Connection between two routers is made using serial ports Serial 0/1/0 on both routers.



Router1(config)#ip route all unknown IP addresses route to – IP address of next hop
Router1(config)#ip route Serial 0/1/0 – all unknown IP addresses route to Serial 0/1/0 – port connected to next hop

Router2(config)#ip route
Router2(config)#ip route Serial 0/1/0

To check IP route:

Router1#sh 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 to network
* is subnetted, 1 subnets
S* [1/0] via is subnetted, 1 subnets
C is directly connected, Serial0/1/0
C is directly connected, FastEthernet0/0
S* is directly connected, Serial0/1/0