cisco路由器静态路由实验
cisco路由器静态路由实验拓扑图如下:
静态路由实验.jpg (59.43 KB)2011-6-1 20:58 配置如下:
R1:
interface FastEthernet0/0
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
interface Serial1/1
ip address 192.168.1.1 255.255.255.0
ip> ip route 192.168.7.0 255.255.255.0 192.168.1.2
ip route 192.168.6.0 255.255.255.0 192.168.1.2
ip route 192.168.3.0 255.255.255.0 192.168.1.2
ip route 192.168.4.0 255.255.255.0 192.168.1.2
ip route 192.168.5.0 255.255.255.0 192.168.1.2
R2:
interface Serial1/0
ip address 192.168.3.1 255.255.255.0
!
interface Serial1/1
ip address 192.168.1.2 255.255.255.0
clock rate 64000
!
interface Serial1/2
ip address 192.168.4.1 255.255.255.0
!ip> ip route 192.168.7.0 255.255.255.0 192.168.4.2
ip route 192.168.6.0 255.255.255.0 192.168.3.2
ip route 192.168.2.0 255.255.255.0 Serial1/1
ip route 192.168.5.0 255.255.255.0 192.168.3.2
R3:
interface Serial1/0
ip address 192.168.3.2 255.255.255.0
clock rate 64000
!
interface Serial1/1
ip address 192.168.5.1 255.255.255.0
ip> ip route 192.168.7.0 255.255.255.0 192.168.3.1
ip route 192.168.6.0 255.255.255.0 192.168.5.2
ip route 192.168.2.0 255.255.255.0 192.168.3.1
ip route 192.168.4.0 255.255.255.0 192.168.3.1
ip route 192.168.1.0 255.255.255.0 192.168.3.1
R4:
interface FastEthernet0/0
ip address 192.168.6.1 255.255.255.0
duplex auto
speed auto
interface Serial1/1
ip address 192.168.5.2 255.255.255.0
clock rate 64000
ip> ip route 192.168.7.0 255.255.255.0 192.168.5.1
ip route 192.168.2.0 255.255.255.0 192.168.5.1
ip route 192.168.1.0 255.255.255.0 192.168.5.1
ip route 192.168.3.0 255.255.255.0 192.168.5.1
ip route 192.168.4.0 255.255.255.0 192.168.5.1
R5:
interface FastEthernet0/0
ip address 192.168.7.1 255.255.255.0
duplex auto
speed auto
interface Serial1/2
ip address 192.168.4.2 255.255.255.0
clock rate 64000
ip> ip route 192.168.2.0 255.255.255.0 192.168.4.1
ip route 192.168.6.0 255.255.255.0 192.168.4.1
ip route 192.168.1.0 255.255.255.0 192.168.4.1
ip route 192.168.3.0 255.255.255.0 192.168.4.1
ip route 192.168.5.0 255.255.255.0 192.168.4.1
以上为各路由器的配置,实现了全网各个点都可以互相ping通。
通过这次实验,总结出了一个经验,就是路由器需要配置的静态路由条目=全网不同ip地址段的和 - 与之相连的链路条数。上述结论是基于全网各个点互相ping通的基础。如果是仅仅终端能互相ping通,则各个路由器的静态路由条目要少一点。
就上述拓扑图而言,R1、R4、R5各添加2条,R2、R3各添加3条就可以实现三台PC之间的ping通。即,末端路由器的静态路由条目=末端中端路由器数目 -1。中间的路由器的路由条目=末端路由器的个数。
上述结论是自己根据自己的拓扑图得出的结论,不知道这个结论是否成立,期待高手给予解答。
页:
[1]