您的位置:首页 > 其它

OSPF路由协议——虚链路配置(模拟实验)

2019-09-14 13:09 1136 查看

OSPF虚链路配置拓扑结构

一、服务端环境部署

1、R1路由器:

配置各接口的IP地址信息,配置回环网卡固定IP地址,配置OSPF协议信息。

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
ex
int lo 0
ip add 1.1.1.1 255.255.255.255
no shut
ex
router ospf 1
router-id 1.1.1.1
network 192.168.10.0 0.0.0.255 area 2
network 192.168.20.0 0.0.0.255 area 2

2、R2路由器

配置各接口的IP地址信息,配置回环网卡固定IP地址,配置OSPF协议信息,创建虚链路。

conf t
int f0/0
ip add 192.168.20.2 255.255.255.0
no shut
int f0/1
ip add 192.168.30.1 255.255.255.0
no shut
ex
int lo 0
ip add 2.2.2.2 255.255.255.255
no shut
ex
router ospf 1
router-id 2.2.2.2
network 192.168.20.0 0.0.0.255 area 2
network 192.168.30.0 0.0.0.255 area 1
ex
router ospf 1
area 1 virtual-link 3.3.3.3

3、R3路由器:

配置各接口的IP地址信息,配置回环网卡固定IP地址,配置OSPF协议信息,创建虚链路。

conf t
int f0/0
ip add 192.168.30.2 255.255.255.0
no shut
ex
int f0/1
ip add 192.168.40.1 255.255.255.0
no shut
int lo 0
ip add 3.3.3.3 255.255.255.255
no shut
ex
router ospf 1
router-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
ex
router ospf 1
area 1 virtual-link 2.2.2.2

4、R4路由器:

配置各接口的IP地址信息,配置回环网卡固定IP地址,配置OSPF协议信息。

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
ex
int lo 0
ip add 4.4.4.4 255.255.255.255
no shut
ex
router ospf 1
router-id 4.4.4.4
network 192.168.40.0 0.0.0.255 area 0
network 192.168.50.0 0.0.0.255 area 0

二、客户端环境部署

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

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

三、验证全网互通性

PC1可以通过虚链路与PC2 进行通讯,实验成功!

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