基本配置 Router>enable //进入特权执行模式 Router#configure terminal //进入全局配置模式 Router(config)#hostname R1 //将路由器名称配置为 R1 R1(config)#no ip domain-lookup //命令禁用 DNS 查找 R1(config)#enable secret class //配置执行模式口令 // R1(config)#line console 0 R1(config-line)#password cisco R1(config-line)#login R1(config-line)#exit R1(config)#line vty 0 4 R1(config-line)#password cisco R1(config-line)#login R1(config-line)#exit // // 使用 IP 地址 192.168.1.1/24 配置 FastEthernet 0/0 接口 R1(config)#interface fastethernet 0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#no shutdown 使用 IP 地址 192.168.2.1/24 配置 Serial0/0/0 接口 将时钟频率设置为 64000 R1(config-if)#interface serial 0/0/0 R1(config-if)#ip address 192.168.2.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#no shutdown // 路由配置 //要使用指定的下一跳地址配置静态路由 在 R3 路由器上,配置通往 172.16.1.0 网络的静态路由(使用 R2 的 Serial 0/0/1 接口作为下一跳地址R3(config)#ip route 172.16.1.0 255.255.255.0 192.168.1.2 //使用送出接口配置静态路由 在 R3 路由器上,配置通往 172.16.2.0 网络的静态路由(使用 R3 路由器的 Serial 0/0/0 接口作为送出接口)R3(config)# ip route 172.16.2.0 255.255.255.0 Serial0/0/1 //在 R2 路由器上配置静态路由。 在 R2 路由器上,配置通往 172.16.3.0 网络的静态路由(使用 R2 路由器的 Serial 0/0/0 接口作为送出接口)R2(config)# ip route 172.16.3.0 255.255.255.0 Serial0/0/0 //为 R1 路由器配置默认路由 为 R1 配置默认路由,使用 R1 的Serial 0/0/0 接口作为下一跳接口。 R1(config)#ip route 0.0.0.0 0.0.0.0 172.16.2.2 //在 R3 路由器上配置总结静态路由 总结路由中将使用网络 172.16.0.0/22。 R3(config)#ip route 172.16.0.0 255.255.252.0 192.168.1.2 //删除 R3 上的静态路由。 使用 no 形式的以下命令,将 R3 上当前配置的两条静态路由删除。 R3(config)#no ip route 172.16.1.0 255.255.255.0 192.168.1.2 R3(config)#n...