Redistributing Static Routes into RIP
Problem
You want RIP to redistribute static routes that you have configured on your router.
Solution
The redistribute static command tells RIP to advertise static routes, as well as directly connected routes and the routes that have been learned from other RIP routers:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#ip routeRouter1(config)#192.168.10.0 255.255.255.0 172.22.1.4router ripRouter1(config-router)#redistribute staticRouter1(config-router)#endRouter1#
You can define how these routes look to other routers when they are redistributed:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#ip routeRouter1(config)#192.168.10.0 255.255.255.0 172.22.1.4router ripRouter1(config-router)#redistribute static metricRouter1(config-router)#5distribute-list7out staticRouter1(config-router)#exitRouter1(config)#access-list7permitRouter1(config)#192.168.10.0endRouter1#
Discussion
The biggest potential problem that you will encounter with
redistributing routes into RIPv1 comes from breaking network class
boundaries. This version of RIP is classful, so you have to be rather
careful about how you distribute routing information from other
sources that may be classless. In the example in this recipe, Router1 redistributes a static route for the
Class C network 192.168.10.0. But if we tried instead to redistribute a larger range, such as ...