3台 路由器 直线型 OSPF 的配置!急救!送300分!

来源:百度知道 编辑:UC知道 时间:2024/06/10 09:59:06
如题`

直线型OSPF的配置~
要求3台路由器``3台交换机``6台主机``
接口如下

Router1 :
S1 -->S1(Router2) e0 --> e0 (交换机1)

Router2 :
S1 -->S1(Router1) S2 -->S2(Router3) e0 --> e0 (交换机2)

Router3 :
S2 -->S2(Router2) e0 --> e0 (交换机3)

IP有大家分配``我怎么配都配不通``真郁闷``希望大家能给一份正确的配置步骤!

能ping通的,送300分!跪求了!谢谢大家!
--------------------------
这些我都知道,但是就是PING不通,不知道自己哪搞错了
大哥能给一份步骤吗?..
真的急求帮帮忙..

-----------------------
hwhzz 朋友,我需要的是OSPF动态路游,你配成RIP静态了!呵呵..但还是谢谢你.
----------------------

假定都采用CISCO路由器和二层交换机(不划分VLAN),路由器运行IOS

r1:
conf t
int s1
clockrate 64000
ip add 12.0.0.1 255.255.255.252
no shut
int e0
ip add 1.1.1.1 255.255.255.0
no shut
exit
router ospf 10
network 1.1.1.0 0.0.0.255 area 0
network 12.0.0.0 0.0.0.3 area 0

r2:
conf t
int s1
ip add 12.0.0.2 255.255.255.252
no shut
int e0
ip add 2.2.2.1 255.255.255.0
no shut
int s2
clockrate 64000
ip add 23.0.0.1 255.255.255.252
no shut
exit
router ospf 10
network 2.2.2.0 0.0.0.255 area 0
network 23.0.0.0 0.0.0.3 area 0

r3:
conf t
int s2
ip add 23.0.0.2 255.255.255.252
no shut
int e0
ip add 3.3.3.1 255.255.255.0
no shut
exit
router ospf 10
network 3.3.3.0 0.0.0.255 area 0
network 23.0.0.0 0.0.0.3 area 0

实在不好意思,上次没有看清要求.

你上面的“-->”两端的接口要注意设成同一个网段的,IP你应该会设置了,需要注意的是:两个路由器之间相连要用交叉线,