ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

计算机网络综合实验2

2021-09-13 16:01:36  阅读:161  来源: 互联网

标签:0000 area 0.0 192.168 计算机网络 Huawei 实验 ospf 综合


OSPF

 子网划分

两个区域划分两个子网,

192.168.1.0000  0000/24

        192.168.1.1  000  0000/25          area1

        192.168.1.0  000  0000/25          area2

   192.168.1.0 000 0000    192.168.1.0/25    骨干 划分三个子网,借两位

      192.168.1.0 01 0 0000   192.168.1.32/27     AR1  ---   环回

              192.168.1.001  0  0000    192.168.1.32/28

              192.168.1.001  1  0000     192.168.1.48/28

      192.168.1.0 10 0 0000    192.168.1.64/27    AR2  ---  环回

               192.168.1.010  0  0000     192.168.1.64/28

               192.168.1.010  1  0000     192.168.1.80/28

      192.168.1.0 11 0 0000     192.168.1.96/27    AR3  ---  环回

                192.168.1.011 0  0000       192.168.1.96/28

                 192.168.1.011 0  0000      192.168.1.112/28

IP配置操作代码就不贴了

 

开启OSPF协议

AR1:

[Huawei]ospf router-id 1.1.1.1
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0   0.0.0.255

AR2:

[Huawei]ospf 1 router-id 2.2.2.2
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255

AR3:

[Huawei]ospf 1 router-id 3.3.3.3
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.97 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.113 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]q
[Huawei-ospf-1]area 1
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.129 0.0.0.0

AR4:

[Huawei]ospf 1 router-id 4.4.4.4
[Huawei-ospf-1]area 1
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.130 0.0.0.0

DR/BDR选举

AR1:

interface g  0/0/0

ospf dr-priority  0

reset ospf process 
Warning: The OSPF process will be reset. Continue? [Y/N]:y

其余类似

OSPF认证

AR1:

interface g 0/0/0

ospf authentication-mode md5 1 cipher 123

AR2:

interface g 0/0/0

ospf authentication-mode md5 1 cipher 123

区域汇总

AR3:

[Huawei]ospf 1
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]abr	
[Huawei-ospf-1-area-0.0.0.0]abr-summary 192.168.1.0 255.255.255.128
[Huawei-ospf-1-area-0.0.0.0]q
[Huawei-ospf-1]area 1
[Huawei-ospf-1-area-0.0.0.1]abr	
[Huawei-ospf-1-area-0.0.0.1]abr-summary 192.168.1.128 255.255.255.128
[Huawei-ospf-1-area-0.0.0.1]q

全网可达  ---  配置缺省

AR3:

[Huawei-ospf-1]default-route-advertise always     //强制下发缺省信息
[Huawei-ospf-1]q
[Huawei]ip rou	
[Huawei]ip route-s	
[Huawei]ip route-static 0.0.0.0 192.168.1.130

配置空接口防止环路

AR3:

[R3]ip route-static 192.168.1.0 25 NULL 0
[R3]ip route-static 192.168.1.128 25 NULL 0

PING  通

 

标签:0000,area,0.0,192.168,计算机网络,Huawei,实验,ospf,综合
来源: https://blog.csdn.net/Galaxy_KVK/article/details/120265571

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有