| conf t |
| enter into configuration mode on the #main router |
| router rip |
| enter into RIP configuration mode |
| version 2 |
| set RIP version |
| no auto-summary |
| prevent auto-sending of routes for foreign routers |
| network 10.0.0.0 |
| set the network to share |
| end |
| ip route 0.0.0.0 0.0.0.0 10.0.0.2 |
| set default gateway |
| router rip |
| default-information originate |
| share default GW to all RIP members |
| end |
| conf t |
| enter into configuration mode on the routers |
| router rip |
| enter into RIP configuration mode |
| version 2 |
| set RIP version |
| no auto-summary |
| prevent auto-sending of routes for foreign routers |
| network 10.0.0.0 |
| network 192.168.3.0 |
| set the networks to share, including the router’s sub network |
| passive-interface fa0/1 |
| prevent behind the router the sub network from unnecessary RIP traffic, because there is no other router there |
| end |