免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2056 | 回复: 10
打印 上一主题 下一主题

OSPF问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-04-08 17:19 |只看该作者 |倒序浏览
全网起OSPF后,R7无法PING通R6以外的路由器。求解!



R7配置如下:

R7#sh run

Building configuration...

Current configuration : 628 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R7

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 67.1.1.7 255.255.255.0

!

interface Serial0/0/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

network 67.1.1.0 0.0.0.255 area 2

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end







R5配置如下:

R5#sh run

Building configuration...

Current configuration : 646 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R5

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 15.1.1.5 255.255.255.0

clock rate 64000

!

interface Serial0/0/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

network 15.1.1.0 0.0.0.255 area 1

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end                                                       

论坛徽章:
0
2 [报告]
发表于 2011-04-08 17:30 |只看该作者
要R5配置干嘛来着?要R6的配置,你这个要配置虚链路                                                       

论坛徽章:
0
3 [报告]
发表于 2011-04-08 17:37 |只看该作者
条件不足,无解!                                                       

论坛徽章:
0
4 [报告]
发表于 2011-04-08 17:37 |只看该作者
记得哈,虚拟链路只能在边界路由上面做啊,别弄错了,下次要认真点点了,看仔细了!                                                       

论坛徽章:
0
5 [报告]
发表于 2011-04-08 17:53 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
6 [报告]
发表于 2011-04-08 19:02 |只看该作者
虚链路有没有做成功?检查下路由表,还有OSPF的配置,如果是路由过滤后的,要在R1上通告默认路由。请参考:
http://bbs.51cto.com/thread-821157-1.html
                                                       

论坛徽章:
0
7 [报告]
发表于 2011-04-08 20:58 |只看该作者
R1和R6上分别做好Virtual link后,所有路由器的配置如下:



R1#sh run

Building configuration...

Current configuration : 864 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R1

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 12.1.1.1 255.255.255.0

clock rate 64000

!

interface Serial0/0/1

ip address 15.1.1.1 255.255.255.0

!

interface Serial0/1/0

ip address 16.1.1.1 255.255.255.0

!

interface Serial0/1/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

area 1 virtual-link 67.1.1.6

network 12.1.1.0 0.0.0.255 area 0

network 15.1.1.0 0.0.0.255 area 1

network 16.1.1.0 0.0.0.255 area 1

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



R2#sh run

Building configuration...

Current configuration : 852 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R2

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 12.1.1.2 255.255.255.0

!

interface Serial0/0/1

ip address 23.1.1.2 255.255.255.0

clock rate 64000

!

interface Serial0/1/0

ip address 24.1.1.2 255.255.255.0

clock rate 64000

!

interface Serial0/1/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

network 12.1.1.0 0.0.0.255 area 0

network 23.1.1.0 0.0.0.255 area 3

network 24.1.1.0 0.0.0.255 area 3

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



R3#sh run

Building configuration...

Current configuration : 663 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R3

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 23.1.1.3 255.255.255.0

!

interface Serial0/0/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

network 23.1.1.0 0.0.0.255 area 3

network 24.1.1.0 0.0.0.255 area 3

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



R4#sh run

Building configuration...

Current configuration : 628 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R4

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 24.1.1.4 255.255.255.0

!

interface Serial0/0/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

network 24.1.1.0 0.0.0.255 area 3

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



R5#sh run

Building configuration...

Current configuration : 646 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R5

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 15.1.1.5 255.255.255.0

clock rate 64000

!

interface Serial0/0/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

network 15.1.1.0 0.0.0.255 area 1

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



R6#sh run

Building configuration...

Current configuration : 739 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R6

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 16.1.1.6 255.255.255.0

clock rate 64000

!

interface Serial0/0/1

ip address 67.1.1.6 255.255.255.0

clock rate 64000

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

area 1 virtual-link 16.1.1.1

network 16.1.1.0 0.0.0.255 area 1

network 67.1.1.0 0.0.0.255 area 2

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



R7#sh run

Building configuration...

Current configuration : 628 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R7

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/0/0

ip address 67.1.1.7 255.255.255.0

!

interface Serial0/0/1

no ip address

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 1

log-adjacency-changes

network 67.1.1.0 0.0.0.255 area 2

!

ip classless

!

!

!

!

!

!

!

line con 0

line vty 0 4

login

!

!

!

end



现在的情况是R7无法PING通R3和R4。不知道是不是虚拟机的问题呢?                                                       

论坛徽章:
0
8 [报告]
发表于 2011-04-09 10:06 |只看该作者
把R7和R6的路由表贴出来                                                       

论坛徽章:
0
9 [报告]
发表于 2011-04-09 10:42 |只看该作者
在 R1,R6 上做“area 1 virtual-link??R1或R6的RID”,你到R1和R6上去show 一下,看你的RID有没写正确。                                                       

论坛徽章:
0
10 [报告]
发表于 2011-04-09 20:52 |只看该作者
今天用IOU重新做了一次实验。



IOU做实验没问题。



估计是模拟器的原因。



谢谢各位!                                                       
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP