思科实验手册内容摘要:

第二章 路由篇 实验一 静态路由基本配置 Lab Exercise 目标 : 熟练掌握如何配置静态路由 . 设备需求 : Cisco 2501 路由器两台 . 准备工作 : 确保路由器之间接口 IP 地址信息已经设置好 ,能够端到端的 ping 通 . 语法 : 进入全局配置模式 ,定义目标网络号 ,目标网络的子网掩码和下一跳地址或接口 : NUAIKO(config)ip route {work} {mask} {nexthopaddress|exitinterface} [distance] 解释 : 选用下一跳地址和选择下一跳路由器的接口做为到达目标网络的出口的区别在于管理距离 .选择前者 ,管理 距离为 1。 选择后者 ,管理距离为 0 还可以在定义静态路由的时候指定管理距离 . 配置实例一 : 路由器 BLAKKBLOOD 配置如下 : BLAKKBLOODconfigure terminal Enter configuration mands, one per line. BLAKKBLOOD(config)end BLAKKBLOOD End with CNTL/Z. BLAKKBLOOD(config)ip route 15 Firstlab 路由器 NUAIKO 配置如下 : NUAIKOconfigure terminal Enter configuration mands, one per line. NUAIKO(config)end 测试 : BLAKKBLOODshow ip route static S [1/0] via BLAKKBLOODping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), roundtrip min/avg/max = 32/35/36 ms BLAKKBLOOD NUAIKOshow ip route static S , Serial0 NUAIKOping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), roundtrip min/avg/max = 36/36/36 ms NUAIKO End with CNTL/Z. NUAIKO(config)ip route serial 0 Lab Exercise 目标 : 熟练掌握如何配置默认路由 . 设备需求 : Cisco 2501 路由器两台 . 准备工作 : 确保路由器之间接口 IP 地址信息已经设置好 ,能够端到端的 ping 通 . 语法 : 进入全局配置模式 ,定义目标网络号 ,目标网络的子网掩码分别为 ,并定义下一跳地址或接口 : NUAIKO(config)ip route {nexthopaddress|exitinterface} [distance] 解释 : 代表所有网络 .选用下一跳地址和选择下一跳路由器的接口做为到达目标网络的出口的区 16 Firstlab 别在于管理距离 .选择前者 ,管理距离为 1。 选择后者 ,管理距离为 0 还可以在定义静态路由的时候指定管理 距离 . 配置实例一 : 路由器 NUAIKO 配置如下 : NUAIKOconfigure terminal Enter configuration mands, one per line. NUAIKO(config)end NUAIKO 测试 : NUAIKOshow ip route static S* [1/0] via NUAIKO End with CNTL/Z. NUAIKO(config)ip route 实验二 距离矢量路由协议基本配置 Lab Exercise 目标 : 熟练掌握如何配置 RIP. 设备需求 : Cisco 2501 路由器两台 . 准备工作 : 确保路由器之间接口 IP 地址信息已经设置好 ,能够端到端的 ping 通 . 语法 : ,启用 RIP: NUAIKO(config)router rip 17 Firstlab : NUAIKO(configrouter)work {worknumber} 解释 : 启用了 RIP 路由协议之后 ,只需要宣告主类直连网络号 ,即可完成 RIP 的配置 . 配置实例一 : 路由器 BLAKKBLOOD 配置如下 : BLAKKBLOODconfigure terminal Enter configuration mands, one per line. BLAKKBLOOD(config)router rip BLAKKBLOOD(configrouter)work BLAKKBLOOD(configrouter)work BLAKKBLOOD(configrouter)end BLAKKBLOOD 路由器 NUAIKO 配置如下 : NUAIKOconfigure terminal Enter configuration mands, one per line. NUAIKO(config)router rip NUAIKO(configrouter)work NUAIKO(configrouter)work NUAIKO(configrouter)end NUAIKO 测试 : BLAKKBLOODshow ip route rip R [120/1] via , 00:00:21, Serial0 BLAKKBLOODping Type escape sequence to abort. End with CNTL/Z. End with CNTL/Z. 18 Firstlab Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), roundtrip min/avg/max = 32/35/36 ms BLAKKBLOOD NUAIKOshow ip route rip R [120/1] via , 00:00:02, Serial0 NUAIKOping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), roundtrip min/avg/max = 32/35/36 ms NUAIKO Lab Exercise 目标 : 熟练掌握如何配置 RIPv2. 设备需求 : Cisco 2501 路由器两台 . 准备工作 : 确保路由器之间接口 IP 地址信息已经设置好 ,能够端到端的 ping 通 . 语法 : ,启用 RIP: NUAIKO(config)router rip RIP 版本 2(RIPv2): NUAIKO(configrouter)version 2 : NUAIKO(configrouter)work {worknumber} 解释 : 启用了 RIPv2 路由协议之后 ,只需要宣告主类直连网络号 ,即可完成 RIPv2 的配置 . 配置实例一 : 19 Firstlab 路由器 BLAKKBLOOD 配置如下 : BLAKKBLOODconfigure terminal Enter configuration mands, one per line. BLAKKBLOOD(config)router rip BLAKKBLOOD(configrouter)version 2 BLAKKBLOOD(configrouter)work BLAKKBLOOD(configrouter)work BLAKKBLOOD(configrouter)end BLAKKBLOOD 路由器 NUAIKO 配置如下 : NUAIKOconfigure terminal Enter configuration mands, one per line. NUAIKO(config)router rip NUAIKO(configrouter)version 2 NUAIKO(configrouter)work NUAIKO(configrouter)work NUAIKO(configrouter)end NUAIKO 测试 : BLAKKBLOODshow ip route rip R [120/1] via , 00:00:21, Serial0 BLAKKBLOODping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), roundtrip min/avg/max = 32/35/36 ms BLAKKBLOOD End with CNTL/Z. End with CNTL/Z. 20 Firstlab NUAIKOshow ip route rip R [120/1] via , 00:00:02, Serial0 NUAIKOping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), roundtrip min/avg/max = 32/35/36 ms NUAIKO 实验三 链路状态路由协议基本配置 Lab Exercise 目标 : 熟练掌握如何配置单区域的 OSPF. 设备需求 : Cisco 2501 路由器两台 . 准备工作 : 确保路由器之间接口 IP 地址信息已经设置好 ,能够端到端的 ping 通 . 语法 : OSPF 进程 : NUAIKO(config)router ospf {processid} OSPF 进程的接口和网络 : NUAIKO(configrouter)work {ipaddress} {wildcardmask} area {areaid} 解释 : OSPF 进程 ID 可以使用 1 到 65535 中任何一个整数 ,该 ID 只是本地的一个标识 ,即一个 OSPF 网络 ,每台 OSPF 路由器的进程 ID 是否一样 ,和 OSPF 网络能否正常运行无关 .在定义 OSPF 路由器要宣告的区域的时 候 ,反掩码用来控制要宣告的范围 ,0 表示精确匹配 ,255 表示任意匹配 .OSPF 网络中骨干区域为区域 0,因 此必须要有区域 0. 配置实例一 : 21 Firstlab 路由器 BLAKKBLOOD 配置如下 : BLAKKBLOODconfigure terminal Enter configuration mands, one per line. BLAKKBLOOD(config)router ospf 1 BLAKKBLOOD(configrouter)work area 0 BLAKKBLOOD(configrouter)work area 0 BLAKKBLOOD(configrouter)end BLAKKBLOOD 路由器 NUAIKO 配置如下 : NUAIKOconfigure terminal Enter configuration mands, one per line. NUAIKO(config)router ospf 65535 NUAIKO(configrouter)work area 0 NUAIKO(configrouter)work area 0 NUAIKO(configrouter)end NUAIKO 测试 : BLAKKBLOODshow ip ospf neighbor Neighbor ID O Pri 1 State FULL/ Dead Time 00。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。