码迷,mamicode.com
首页 > 其他好文 > 详细

路由协议OSPF配置

时间:2015-04-25 00:22:13      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:思科;路由器;ospf;

一、实验拓扑图

技术分享

二、实验配置

R1配置如下:

!

interface Loopback0

 ip address 1.1.1.1 255.255.255.0

!

interface Serial0/0

 ip address 192.168.65.1 255.255.255.0

 ip ospf network point-to-point

 serial restart-delay 0

!

interface Serial0/1

 ip address 192.168.67.1 255.255.255.0

 serial restart-delay 0

!

router ospf 100

 log-adjacency-changes

 network 0.0.0.0 255.255.255.255 area 0

!


R6配置如下:

!

interface Loopback0

 ip address 2.2.2.2 255.255.255.0

!

interface Serial0/0

 ip address 192.168.65.2 255.255.255.0

 serial restart-delay 0

!

interface Serial0/1

 ip address 192.168.69.1 255.255.255.0

 serial restart-delay 0

!

interface Serial0/2

 ip address 192.168.5.1 255.255.255.0

 serial restart-delay 0

!

router ospf 100

 log-adjacency-changes

 network 0.0.0.0 255.255.255.255 area 0

!

其它路由器依次配置好,效果如下:

R3上show ip ospf database

技术分享

R3上show ip ospf neighbor

技术分享

R2(R6)上show ip ospf neighbor

技术分享

三、注意事项

1、Loopback虚拟接口的设置;

2、OSPF RID的设置(本次实验没有设置,自动选举为loopback0接口地址为RID);

3、相关调试命令

debug ip ospf events

debug ip ospf packet

show ip ospf

show ip ospf database

show ip ospf interface

show ip ospf neighbor

show ip route 


本文出自 “谢正旺” 博客,请务必保留此出处http://xiezhengwang.blog.51cto.com/6288872/1638161

路由协议OSPF配置

标签:思科;路由器;ospf;

原文地址:http://xiezhengwang.blog.51cto.com/6288872/1638161

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!