R8>en
R8#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R8(config)#int s1/0
R8(config-if)#ip address 192.168.8.1 255.255.255.0
R8(config-if)#no shut
R8(config-if)#exit
R8(config)#int s1/1
R8(config-if)#ip address 192.168.7.254 255.255.255.0
R8(config-if)#no shut
R8(config-if)#exit
R8(config)#router rip
R8(config-router)#network 192.168.1.0
R8(config-router)#network 192.168.2.0
R8(config-router)#network 192.168.3.0
R8(config-router)#network 192.168.4.0
R8(config-router)#network 192.168.5.0
R8(config-router)#network 192.168.6.0
R8(config-router)#network 192.168.7.0
R8(config-router)#network 192.168.8.0
R8(config-router)#network 192.168.9.0
R8(config-router)#network 192.168.10.0
R8(config-router)#version 2
R8(config-router)#exit
R8(config)#exit
R8#wr mem
00:49:48: %SYS-5-CONFIG_I: Configured from console by console
Building configuration...
[OK]
R8#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
      D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
      N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
      E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
      i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
      * - candidate default, U - per-user static route, o - ODR
      P - periodic downloaded static route

Gateway of last resort is not set

C    192.168.8.0/24 is directly connected, Serial1/0
R    192.168.9.0/24 [120/1] via 192.168.8.254, 00:00:22, Serial1/0
R    192.168.10.0/24 [120/3] via 192.168.7.1, 00:00:16, Serial1/1
R    192.168.4.0/24 [120/3] via 192.168.7.1, 00:00:16, Serial1/1
R    192.168.5.0/24 [120/2] via 192.168.7.1, 00:00:16, Serial1/1
R    192.168.6.0/24 [120/1] via 192.168.7.1, 00:00:16, Serial1/1
C    192.168.7.0/24 is directly connected, Serial1/1
R    192.168.1.0/24 [120/1] via 192.168.8.254, 00:00:22, Serial1/0
R    192.168.2.0/24 [120/2] via 192.168.8.254, 00:00:22, Serial1/0
R    192.168.3.0/24 [120/3] via 192.168.8.254, 00:00:22, Serial1/0
R8#
最終更新:2009年03月23日 00:43