网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

OSPF单区域配置

为了弥补距离矢量路由协议的不足,IEFI组织开发了一种基于链路状态的内部网关协议OSPF

OSPF单区域配置
实验环境:红,绿,蓝三个颜色区域代表三个不同网络的办公场所,要求使用OSPF协议实现网络互通。

10年积累的网站建设、成都网站建设经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先网站策划后付款的网站建设流程,更有延寿免费网站建设让你可以放心的选择与我们合作。

pc1:172.16.1.1

pc2:172.16.2.1

pc3:172.16.3.1

R1:GE0/0/0 172.16.1.254 GE2/0/0 192.168.2.1 GE0/0/1 192.168.1.1

R2:GE0/0/0 172.16.2.254 GE0/0/1 192.168.2.3 GE2/0/0 192.168.2.3

R3:GE0/0/0 172.16.3.254 GE0/0/1 192.168.1.3 GE2/0/0 192.168.3.3

配置PC ip地址

OSPF单区域配置

OSPF单区域配置

OSPF单区域配置

配置路由器

R1:

[R1]INT GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]IP ADD 172.16.1.254 24
May 21 2020 10:38:30-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R1-GigabitEthernet0/0/0]INT G2/0/0
[R1-GigabitEthernet2/0/0]IP ADD 192.168.2.1 24
May 21 2020 10:38:48-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet2/0/0 has entered the UP state. 
[R1-GigabitEthernet2/0/0]INT G0/0/1
[R1-GigabitEthernet0/0/1]IP ADD 192.168.1.1 24
[R1-GigabitEthernet0/0/1]
May 21 2020 10:39:03-08:00 R1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state.

R2:

[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 192.168.2.2 24
May 21 2020 10:40:28-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R2-GigabitEthernet0/0/1]int g2/0/0
[R2-GigabitEthernet2/0/0]ip add 192.168.3.2 24
May 21 2020 10:40:39-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet2/0/0 has entered the UP state. 
[R2-GigabitEthernet2/0/0]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 172.16.2.254 24
May 21 2020 10:40:57-08:00 R2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state.

R3:

[R3]int GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]ip add 172.16.3.254 24
May 21 2020 10:42:11-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-GigabitEthernet0/0/0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 192.168.1.3 24
May 21 2020 10:42:21-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R3-GigabitEthernet0/0/1]int g2/0/0
[R3-GigabitEthernet2/0/0]ip add 192.168.3.3 24
May 21 2020 10:42:51-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet2/0/0 has entered the UP state. 
[R3-GigabitEthernet2/0/0]
配置OSPF

R1:

[R1]OSPF 1
[R1-ospf-1]AREA 0
[R1-ospf-1-area-0.0.0.0]NETWORK 172.16.1.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]NETWORK 192.168.2.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]NETWORK 192.168.1.0 0.0.0.255

R2:

[R2]OSPF 1
[R2-ospf-1]AREA 0
[R2-ospf-1-area-0.0.0.0]NETWO	
[R2-ospf-1-area-0.0.0.0]network 172.16.2.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]NETWORK 192.168.2.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]NETWORK 192.168.3.0 0.0.0.255

R3:

[R3]OSPF 1
[R3-ospf-1]AREA 0
[R3-ospf-1-area-0.0.0.0]NETWORK 172.16.3.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]NETWORK 192.168.1.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]NETWORK 192.168.3.0 0.0.0.255
测试pc1 ping pc2,pc3

OSPF单区域配置
如此,OSPF配置完毕!

原文地址: https://www.linuxprobe.com/ospf-ensp.html


网站栏目:OSPF单区域配置
文章位置:http://bjjierui.cn/article/jogcdi.html

其他资讯