您的位置:首页 > 其它

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

2019-09-14 16:32 1746 查看

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进行通讯,全网互通,实验成功!

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: