Objective: configure Routers 1, 2, and 4 with IP addresses and the Routing Information Protocol (RIP).
Lab Equipment: Router 1, Router 2, and Router 4 from the eRouters menu
Background Reading: Lab Primer Lesson 7: Routing Protocols
Goals:
• Set the host name and bring up the interfaces.
• configure RIP.
• Select the directly connected networks.
• Display the routing table.
• Display the RIP protocol information.
1. configure Routers 1, 2, and 4 to the specifications outlined in the table and diagram below.
Lab Equipment: Router 1, Router 2, and Router 4 from the eRouters menu
Background Reading: Lab Primer Lesson 7: Routing Protocols
Goals:
• Set the host name and bring up the interfaces.
• configure RIP.
• Select the directly connected networks.
• Display the routing table.
• Display the RIP protocol information.
1. configure Routers 1, 2, and 4 to the specifications outlined in the table and diagram below.
![](https://i-blog.csdnimg.cn/blog_migrate/1701f9a94479432e4bc37bceac9c12a3.png)
Router1:
![](https://i-blog.csdnimg.cn/blog_migrate/d591830ce14a5ecdf8b6bb7338e165e4.png)
Router2:
![](https://i-blog.csdnimg.cn/blog_migrate/fb91d296fb9f0fac5a33b627410ac255.png)
Router4:
![](https://i-blog.csdnimg.cn/blog_migrate/9ba5767fe2d020ca9803fa96f2066256.png)
2. On each router, verify that you can ping the directly connected neighbors.
Router1#ping 10.1.1.2
Router1#ping 172.16.10.2
![](https://i-blog.csdnimg.cn/blog_migrate/3c199eb3aaf62a01f5e2421412acbe8e.png)
Router2#ping 10.1.1.1
![](https://i-blog.csdnimg.cn/blog_migrate/8e76835dece69aedbbd066f513b689e2.png)
Router4#ping 172.16.10.1
![](https://i-blog.csdnimg.cn/blog_migrate/f4558b99e7d0f7ca1cce6f6c85d15e3b.png)
3. Add RIP to Router1.
Router1#
Router1#configure terminal
Router1(config)#router rip
Router1(config-router)#
![](https://i-blog.csdnimg.cn/blog_migrate/20988b77d0e1a04326897b9f4382d0e3.png)
4. Add the network(s) to which Router1 is directly connected.
Router1(config-router)#network 10.0.0.0
Router1(config-router)#network 172.16.0.0
![](https://i-blog.csdnimg.cn/blog_migrate/6b0df70598871dded7a0ff67b1708bdf.png)
5. Add RIP to Router2.
Router2#
Router2#config terminal
Router2(config)# router rip
Router2(config-router)#
6. Add the network(s) to which Router2 is directly connected.
Router2(config-router)#network 10.0.0.0
![](https://i-blog.csdnimg.cn/blog_migrate/a995f219430c72ddfa640cf8186e7c70.png)
7. Add RIP to Router4.
Router4#
Router4#config terminal
Router4(config)#router rip
Router4(config-router)#
8. Add the network(s) to which Router4 is directly connected.
Router4(config-router)#network 172.16.0.0
![](https://i-blog.csdnimg.cn/blog_migrate/43b7e0fee1ad65cc283a7dc8f5cfa106.png)
9. Now, RIP should be running on all three routers. See if you can ping between routers that are not directly connected. For instance, from Router2 you should now be able to ping Router4’s serial 0 interface.
Router2#ping 172.16.10.2
![](https://i-blog.csdnimg.cn/blog_migrate/6aa2c432bd4ca80d8caecd2a4d8386db.png)
10. Connect to Router4, and ping Router2’s Ethernet 0 interface.
Router4#ping 10.1.1.2
![](https://i-blog.csdnimg.cn/blog_migrate/eef5e4a5a0ee5cc300761d8d68a18b8c.png)
If you can ping both devices, then you have correctly configured routing. If the pings were not successful, trace back through the steps.
11. Now, issue the command to display the routing table on Router4.
Router4#show ip route
![](https://i-blog.csdnimg.cn/blog_migrate/764610604907117ed32b20027b779dab.png)
12. Finally, display specific IP routing protocol information on Router4.
Router4#show ip protocol
![](https://i-blog.csdnimg.cn/blog_migrate/49229c9d1686ae8ad803d4cfc0f32df1.png)
***************************************************
本文转自redking51CTO博客,原文链接:http://blog.51cto.com/redking/72062
,如需转载请自行联系原作者