华为:OSPF虚链路技术

华为:OSPF虚链路技术

1. 每台设备上配置接口以及环回口地址:

R1:

interface GigabitEthernet0/0/0

ip address 10.0.12.1 255.255.255.0

#

interface GigabitEthernet0/0/1

ip address 10.0.13.1 255.255.255.0

#

interface LoopBack0

ip address 10.0.1.1 255.255.255.255

R2:

interface GigabitEthernet0/0/0

ip address 10.0.12.2 255.255.255.0

#

interface GigabitEthernet0/0/2

ip address 10.0.23.2 255.255.255.0

#

interface LoopBack0

ip address 10.0.2.2 255.255.255.255

R3:

interface GigabitEthernet0/0/0

ip address 10.0.34.3 255.255.255.0

#

interface GigabitEthernet0/0/1

ip address 10.0.13.3 255.255.255.0

#

interface GigabitEthernet0/0/2

ip address 10.0.23.3 255.255.255.0

#

interface LoopBack0

ip address 10.0.3.3 255.255.255.255

R4:

interface GigabitEthernet0/0/0

ip address 10.0.34.4 255.255.255.0

#

interface LoopBack0

ip address 10.0.4.4 255.255.255.255

2. 每台设备上配置ospf协议,并划好区域

R1:

ospf 1 router-id 10.0.1.1

area 0.0.0.0

network 10.0.12.0 0.0.0.255

network 10.0.1.1 0.0.0.0

area 0.0.0.1

network 10.0.13.0 0.0.0.255

R2:

ospf 1 router-id 10.0.2.2

area 0.0.0.0

network 10.0.2.2 0.0.0.0

network 10.0.12.0 0.0.0.255

area 0.0.0.1

network 10.0.23.0 0.0.0.255

R3:

ospf 1 router-id 10.0.3.3

area 0.0.0.1

network 10.0.3.3 0.0.0.0

network 10.0.23.0 0.0.0.255

network 10.0.13.0 0.0.0.255

area 0.0.0.2

network 10.0.34.0 0.0.0.255

R4:

ospf 1 router-id 10.0.4.4

area 0.0.0.2

network 10.0.4.4 0.0.0.0

network 10.0.34.0 0.0.0.255

3. 使用虚链路使区域2与区域-逻辑相连:

R1:

ospf 1

area 0.0.0.1

vlink-peer 10.0.3.3

R2:

ospf 1

area 0.0.0.1

vlink-peer 10.0.3.3

R3:

ospf 1

area 0.0.0.1

vlink-peer 10.0.2.2

vlink-peer 10.0.1.1

此时R1、R2能ping通R4

[R1]ping 10.0.4.4

PING 10.0.4.4: 56 data bytes, press CTRL_C to break

Reply from 10.0.4.4: bytes=56 Sequence=1 ttl=254 time=40 ms

Reply from 10.0.4.4: bytes=56 Sequence=2 ttl=254 time=40 ms

4. 优先使用路径R4-R3-R1,并以R4-R3-R2路径为备份路径:

R3:

interface GigabitEthernet0/0/2

ospf cost 10

R2:

interface GigabitEthernet0/0/2

ospf cost 10

5. 使用虚链路作为区域0链路的冗余备份

目前,R1与R2之间只有单条链路连接,如果出现链路故障,就会导致区域0被分割的问题。为了解决这一问题,增强网络的可靠性,可以以区域1为传输区域,在R1与R2之间建立–条虚链路作为冗余备份。

R1:

ospf 1

area 0.0.0.1

vlink-peer 10.0.1.1

R2:

ospf 1

area 0.0.0.1

vlink-peer 10.0.2.2

6. 配置虚链路的认证功能

R1:

ospf 1

area 0.0.0.1

vlink-peer 10.0.3.3 hmac-md5 1 plain huawei

vlink-peer 10.0.2.2 hmac-md5 1 plain huawei

R2:

ospf 1

area 0.0.0.1

vlink-peer 10.0.1.1 hmac-md5 1 plain huawei

vlink-peer 10.0.3.3 hmac-md5 1 plain huawei

R3:

ospf 1

area 0.0.0.1

vlink-peer 10.0.1.1 hmac-md5 1 plain huawei

vlink-peer 10.0.2.2 hmac-md5 1 plain huawei

最终配置:

R1:

sysname R1

#

interface GigabitEthernet0/0/0

ip address 10.0.12.1 255.255.255.0

#

interface GigabitEthernet0/0/1

ip address 10.0.13.1 255.255.255.0

#

interface LoopBack0

ip address 10.0.1.1 255.255.255.255

#

ospf 1 router-id 10.0.1.1

area 0.0.0.0

network 10.0.12.0 0.0.0.255

network 10.0.1.1 0.0.0.0

area 0.0.0.1

network 10.0.13.0 0.0.0.255

vlink-peer 10.0.3.3 hmac-md5 1 plain huawei

vlink-peer 10.0.2.2 hmac-md5 1 plain huawei

#

R2:

sysname R2

#

interface GigabitEthernet0/0/0

ip address 10.0.12.2 255.255.255.0

#

interface GigabitEthernet0/0/2

ip address 10.0.23.2 255.255.255.0

ospf cost 10

#

interface LoopBack0

ip address 10.0.2.2 255.255.255.255

#

ospf 1 router-id 10.0.2.2

area 0.0.0.0

network 10.0.2.2 0.0.0.0

network 10.0.12.0 0.0.0.255

area 0.0.0.1

network 10.0.23.0 0.0.0.255

vlink-peer 10.0.1.1 hmac-md5 1 plain huawei

vlink-peer 10.0.3.3 hmac-md5 1 plain huawei

#

R3:

sysname R3

#

interface GigabitEthernet0/0/0

ip address 10.0.34.3 255.255.255.0

#

interface GigabitEthernet0/0/1

ip address 10.0.13.3 255.255.255.0

#

interface GigabitEthernet0/0/2

ip address 10.0.23.3 255.255.255.0

ospf cost 10

#

interface LoopBack0

ip address 10.0.3.3 255.255.255.255

#

ospf 1 router-id 10.0.3.3

area 0.0.0.1

network 10.0.3.3 0.0.0.0

network 10.0.23.0 0.0.0.255

network 10.0.13.0 0.0.0.255

vlink-peer 10.0.1.1 hmac-md5 1 plain huawei

vlink-peer 10.0.2.2 hmac-md5 1 plain huawei

area 0.0.0.2

network 10.0.34.0 0.0.0.255

#

R4:

sysname R4

#

interface GigabitEthernet0/0/0

ip address 10.0.34.4 255.255.255.0

#

interface LoopBack0

ip address 10.0.4.4 255.255.255.255

#

ospf 1 router-id 10.0.4.4

area 0.0.0.2

network 10.0.4.4 0.0.0.0

network 10.0.34.0 0.0.0.255

#

郑重声明:本文内容及图片均整理自互联网,不代表本站立场,版权归原作者所有,如有侵权请联系管理员(admin#wlmqw.com)删除。
(0)
用户投稿
上一篇 2022年8月12日
下一篇 2022年8月12日

相关推荐

  • 荣耀放弃华为鸿蒙后,市场份额大涨,超越苹果

    本文原创,禁止搬运和抄袭,违者必究! 荣耀的蜕变 荣耀独立发展一年多了,市场份额回到了巅峰水平,甚至超越以往的成绩。现在的荣耀完全可以用“天高任鸟飞,海阔凭鱼跃”来形容。可完全按照…

    2022年6月16日
  • 鸿蒙 2022年08月20日新消息

    鸿蒙 鸿蒙 2022年08月20日新消息 入学手机还没选好?华为nova10系列手机颜值实力兼备购机首选 AITO问界M5 EV将9月7日上市 鸿蒙OS 3.0 就华为鸿蒙表态后 …

    2022年8月21日
  • 华为天才少年张霁 本科就读于这个专业

    近两年一个叫张霁的学生在网络上走红,原因是华为公司的“天才少年”项目。“天才少年”项目的最高档是年薪201万,而且只有四个人拿到,张霁就是其中之一。更值得一提的是,张霁本科就读的学…

    2022年7月2日
  • 华为nova10 7月4日发布,真机渲染图已公布,后摄金色圆环很吸睛

    今天上午,华为官宣nova10系列手机将会在7月4日发布,主打的宣传语为“主角影像”,同时还直接曝光了该机的外观渲染图,在继承上一代nova9系列的外观风格,同时也做了些许调整,增…

    2022年6月26日
  • 为迷你电脑主机正名,谈一谈我为什么选择零刻GTR5

    迷你电脑主机的出现也有些年头了,在不少人的眼中,它往往成为硬件配置差,扩展性能一般,散热效果不好的代名词。但随着科技和工业的不断发展,迷你电脑主机的这些短板也成为了过去式,就比如我…

    2022年6月20日
  • Oppo 240W闪充将应用:9分钟充满4500mAh电池,你期待吗?

    互联网消息称,一种用于超高速智能手机电池充电的新技术可能很快就会在商业市场上亮相:我们说的是240W的闪充系统。 据悉,该技术正在由某国内公司开发。它的名字没有透露,但观察人士一致…

    2022年6月29日
  • 常常听到的OSI协议、TCP/IP协议到底是什么

    OSI:开放式系统互联通信参考模型(英语:Open System Interconnection Reference Model,缩写为 OSI),简称为OSI模型(OSI mod…

    2022年7月21日
  • 华为畅享50Pro发布,1699元起?小米Mix Fold2入网

    华为畅享50Pro发布,8+128GB售价1699元,顶配8+256GB售价1899元,预订省50元。这款手机颜值看着高端,机身厚度8.4mm,重195g,后盖塑料材质。6.7英寸…

    2022年8月1日
  • 罗永浩谈收购苹果,网友:想法挺好,万一实现了呢

    7月10日,罗永浩在交个朋友直播间中谈到收购苹果的路径。 他表示,这个公司市值已一万亿美元了,大概率是我们把下一代平台做好做成,他们日渐衰落,我们日渐崛起,到了一个形势逆转的转折点…

    2022年7月13日
  • 工业互联网标识产品与设备服务平台正式发布

    6月8日,2022中国工业互联网标识大会(中部)圆满举办,会议以“标识向实 融创未来”为主题,旨在加快工业互联网与实体经济深度融合发展。大会由湖北省通信管理局、中共湖北省委网络安全…

    2022年6月21日

联系我们

联系邮箱:admin#wlmqw.com
工作时间:周一至周五,10:30-18:30,节假日休息