OSPF综合实验

该博客详细介绍了OSPF网络的配置过程,包括子网划分、IP地址分配、ospf协议启动、特殊区域设置及路由汇总。通过实例演示了在不同路由器上配置OSPF,如r3、r5、r6等,并解决邻居关系问题,如更改网络类型为p2mp。此外,还讨论了区域间的路由汇总和特殊区域(stub、nssa)的配置,以及防止环路的措施。
摘要由CSDN通过智能技术生成

子网划分,第一步应该考虑几个协议,根据协议划分网段

172.16.0.0/16

172.16.000 00000.0/19 172.16.0.0/19----A0

(p2p网路中都是里面包含两个网段,所以把它划分到-30就可以)

        172.16.0.0/24------用户网段一般是24位

                 172.16.0.0/30 ----给p2p(预留,真是的环境中是有的)

                 172.16.0.4/30 ----给p2p

                 172.16.0.8/30 ----给p2p

                 ...

        172.16.1.0/24--------给MA

                172.16.0.0/29

                172.16.0.8/29

                172.16.0.16/29

                172.16.0.32/29

                172.16.0.64/29

        172.16.2.0/24----给用户

        172.16.3.0/24

        172.16.4.0/24

        ...

        172.16.31.0/24

        p2p:172.16.0.0/24

        ma:172.16.0.0/29----里面有8-2=6个IP地址

172.16.001 00000.0/19 172.16.32.0/19----A1

        p2p:172.16.32.0/24

                        172.16.32.0/30

                        172.16.32.4/30

                        172.16.32.8/30

                        172.16.32.12/30

                        172.16.32.16/30

        ma:172.16.33.0/24

                        172.16.33.0/29

                        172.16.33.8/29

                        172.16.33.16/29

                        172.16.33.24/29

......

        其他给用户

172.16.010 00000.0/19 172.16.64.0/19----A2

        p2p:172.16.65.0/24

                        172.16.65.0/30

                        172.16.65.4/30

                        172.16.65.8/30

        ma:172.16.66.0/24

                        172.16.66.0/29

                        172.16.66.4/29

                        172.16.66.8/29

......

172.16.011 00000.0/19 172.16.96.0/19----A3

        p2p:172.16.97.0/24

        ma:172.16.98.0/24

        其他给用户

172.16.100 00000.0/19 172.16.128.0/19----A4

        p2p:172.16.128.0/24        

        ma:172.16.129.0/24

        其他用户

172.16.101 00000.0/19 172.16.160.0/19----RIP

(给两个网段就可以了)

借一位:                        172.16.160.0/29

                                     172.16.176.0/29

备用:

172.16.110 00000.0/19 172.16.192.0/19

172.16.111 00000.0/19 172.16.224.0/19

配置IP

先配置mgre环境,配置完成后配置指向中心的缺省路由

r3

[r3-Serial4/0/0]ip ad 34.0.0.1 24
[r3-Serial4/0/0]
Jan 17 2022 21:24:02-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[r3-Serial4/0/0]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<r3>sy
Enter system view, return user view with Ctrl+Z.
[r3]ip ro    
[r3]ip route
[r3]ip route-static 0.0.0.0  0 34.0.0.2 
 

isp

[isp]int s 4/0/0
[isp-Serial4/0/0]ip ad 34.0.0.2 24
[isp-Serial4/0/0]
Jan 17 2022 21:24:03-08:00 isp %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PP
P IPCP on the interface Serial4/0/0 has entered the UP state. 
[isp-Serial4/0/0]int s4/0/1
[isp-Serial4/0/1]ip ad 45.0.0.2 24
[isp-Serial4/0/1]
Jan 17 2022 21:27:28-08:00 isp %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PP

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值