千家信息网

OSPF路由协议——高级配置(模拟实验)

发表于:2025-02-05 作者:千家信息网编辑
千家信息网最后更新 2025年02月05日,OSPF高级配置拓扑结构图建立拓扑结构时,R3路由器需要右键点击选择configure,在Slots中添加两块NM-1FE-TX业务板。一、服务端环境部署1、R1路由器:配置各接口的IP地址信息;配置
千家信息网最后更新 2025年02月05日OSPF路由协议——高级配置(模拟实验)

OSPF高级配置拓扑结构图


建立拓扑结构时,R3路由器需要右键点击选择configure,在Slots中添加两块NM-1FE-TX业务板。

一、服务端环境部署

1、R1路由器:

配置各接口的IP地址信息;配置末梢网络的默认路由,并指向下一跳地址信息。

conf tint f0/0ip add 192.168.10.1 255.255.255.0no shutint f0/1ip add 192.168.20.1 255.255.255.0no shutip router 0.0.0.0 0.0.0.0 192.168.20.2

2、R2路由器:

配置各接口的IP地址信息,配置OSPF路由协议;配置静态路由;注入直连网段信息;注入静态路由信息。

conf tint f0/0ip add 192.168.30.1 255.255.255.0no shutexint f0/1ip add 192.168.20.2 255.255.255.0no shutrouter ospf 1router-id 2.2.2.2network 192.168.30.0 0.0.0.255 area 1exip router 192.168.10.0 255.255.255.0 192.168.20.1router ospf 1redistribute  connected subnetsredistribute static subnets

3、R3路由器:

(1)配置各接口的IP地址信息,

conf tint f0/0ip add 192.168.30.2 255.255.255.0no shutint f0/1ip add 192.168.40.1 255.255.255.0no shutint f1/0ip add 12.0.0.1 255.255.255.0no shutint f2/0ip add 192.168.70.1 255.255.255.0no shut

(2)配置默认路由,配置OSPF路由协议,注入默认路由信息。

ip route 0.0.0.0 0.0.0.0 12.0.0.2route ospf 1route-id 3.3.3.3network 192.168.30.0 0.0.0.255 area 1network 192.168.40.0 0.0.0.255 area 0network 192.168.70.0 0.0.0.255 area 0default-information originateex

4、R4路由器:

(1)配置各接口的IP地址信息,

conf tint f0/0ip add 192.168.40.2 255.255.255.0no shutint f0/1ip add 192.168.50.1 255.255.255.0no shut

(2)配置RIP路由协议,注入OSPF路由协议信息,注入RIP协议信息。

route ripver 2no auto-summarynetwork 192.168.50.0exrouter ripredis ospf 1 metric 5exrouter ospf 1router-id 4.4.4.4network 192.168.40.0 0.0.0.255 area 0redistribute rip subnets

5、R5路由器:

配置各接口的IP地址信息,配置RIP路由协议,

conf tint f0/0ip add 192.168.50.2 255.255.255.0no shutint f0/1ip add 192.168.60.1 255.255.255.0no shutrouter ripver 2no auto-summarynetwork 192.168.50.0network 192.168.60.0

6、R6路由器:

配置各接口的IP地址信息,配置静态路由。

conf tint f0/0ip add 12.0.0.2 255.255.255.0no shutint f0/1ip add 13.0.0.1 255.255.255.0no shutexip route 192.168.0.0 255.255.0.0 12.0.0.1

二、客户端环境部署

1、主机1配置IP地址及网关信息

2、主机2配置IP地址及网关信息

3、主机3配置IP地址及网关信息

4、主机4配置IP地址及网关信息

三、查看路由表信息

R1路由表

R2路由表

R3路由表

R4路由表

R5路由表

R6路由表

四、验证全网互通性

主机1可以与主机2、主机3、主机4进行通讯,全网互通,实验成功!

0