欢迎光临
我们一直在努力

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

OSPF高级配置拓扑结构图

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

一、服务端环境部署

1、R1路由器:

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


conf t
int f0/0
ip add 192.168.10.1 255.255.255.0
no shut
int f0/1
ip add 192.168.20.1 255.255.255.0
no shut
ip router 0.0.0.0 0.0.0.0 192.168.20.2

2、R2路由器:

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


conf t
int f0/0
ip add 192.168.30.1 255.255.255.0
no shut
ex
int f0/1
ip add 192.168.20.2 255.255.255.0
no shut
router ospf 1
router-id 2.2.2.2
network 192.168.30.0 0.0.0.255 area 1
ex
ip router 192.168.10.0 255.255.255.0 192.168.20.1
router ospf 1
redistribute  connected subnets
redistribute static subnets

3、R3路由器:

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


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

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


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

4、R4路由器:

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


conf t
int f0/0
ip add 192.168.40.2 255.255.255.0
no shut
int f0/1
ip add 192.168.50.1 255.255.255.0
no shut

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


route rip
ver 2
no auto-summary
network 192.168.50.0
ex
router rip
redis ospf 1 metric 5
ex
router ospf 1
router-id 4.4.4.4
network 192.168.40.0 0.0.0.255 area 0
redistribute rip subnets

5、R5路由器:

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


conf t
int f0/0
ip add 192.168.50.2 255.255.255.0
no shut
int f0/1
ip add 192.168.60.1 255.255.255.0
no shut
router rip
ver 2
no auto-summary
network 192.168.50.0
network 192.168.60.0

6、R6路由器:

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


conf t
int f0/0
ip add 12.0.0.2 255.255.255.0
no shut
int f0/1
ip add 13.0.0.1 255.255.255.0
no shut
ex
ip 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)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。