4.19 点到点子接口运行OSPF

图片[1]-4.19 点到点子接口运行OSPF-大赛人网
图4-9  FR环境下配置OSPF网络拓扑

1.R1配置子接口

[R1]interface Serial 0/0/0.12 p2p
[R1-Serial0/0/0.12]ip address 12.1.1.1 8
[R1-Serial0/0/0.12]fr dlci 102

[R1]interface Serial 0/0/0.13 p2p
[R1-Serial0/0/0.13]ip address 13.1.1.1 8 
[R1-Serial0/0/0.13]fr dlci 103

2.R2配置子接口

[R2]interface Serial 0/0/0.12 p2p
[R2-Serial0/0/0.12]ip address 12.1.1.2 8
[R2-Serial0/0/0.12]fr dlci 201

3.R3配置子接口

[R3]interface Serial 0/0/0.13 p2p
[R3-Serial0/0/0.13]ip address 13.1.1.3 8
[R3-Serial0/0/0.13]fr dlci 301

4.R1配置子OSPF

[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 12.1.1.0 0.255.255.255
[R1-ospf-1-area-0.0.0.0]network 13.1.1.0 0.255.255.255

5.R2配置子OSPF

[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 12.1.1.0 0.255.255.255

6.R3配置子OSPF

[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 13.1.1.0 0.255.255.255

7.查看R1的OSPF网络接口,为NBMA类型

[R1]display ospf interface Serial 0/0/0.12
 Cost: 1562    State: DR        Type: NBMA      MTU: 1500  
Interface: 13.1.1.1 (Serial0/0/0.13)
 Cost: 1562    State: DR        Type: NBMA      MTU: 1500  

8.修改R1、R2、R3的OSPF网络接口类型为p2p类型

[R1]interface Serial 0/0/0.12 
[R1-Serial0/0/0.12]ospf network-type p2p
[R1]interface Serial 0/0/0.13 
[R1-Serial0/0/0.13]ospf network-type p2p

[R2]interface Serial 0/0/0.12
[R2-Serial0/0/0.12]ospf network-type p2p

[R3]interface Serial 0/0/0.13
[R3-Serial0/0/0.13]ospf network-type p2p

9.查看R1的OSPF路由信息

[R1]display ip routing-table protocol ospf 
Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        2.2.2.2/32  OSPF    10   1562        D   12.1.1.2        Serial0/0/0.12
        3.3.3.3/32  OSPF    10   1562        D   13.1.1.3        Serial0/0/0.13
© 版权声明
THE END
喜欢就支持一下吧
点赞15 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称

    请登录后查看评论内容