设为首页收藏本站language 语言切换
查看: 1903|回复: 14
收起左侧

[求助] ospf 路由协议 多区域 虚拟链接的问题,怎么解决

[复制链接]
发表于 2016-11-10 08:42:45 | 显示全部楼层 |阅读模式
3鸿鹄币
本帖最后由 草原土狼 于 2016-11-10 09:48 编辑

怎么配置才能实现pc1ping通192.168.6.0段的地址

怎么配置才能实现pc1ping通192.168.6.0段的地址
ospf 路由协议 多区域 虚拟链接.pkt (12.14 KB, 下载次数: 1)



pc1  ping不通  192.168.6.2、192.168.6.1。提示 :Reply from 192.168.5.1: Destination host unreachable.而能ping通其他的ip地址。


pc0能ping通所有的地址


请问怎么配置才能使pc1ping通192.168.6.0段的地址????

r2的配置
interface FastEthernet0/0
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 192.168.3.1 255.255.255.0
clock rate 64000
!
interface Serial0/1/1
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown
!
router ospf 100
log-adjacency-changes
network 192.168.2.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area 0
!
ip classless!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end


r0的配置:
interface Loopback1
ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 192.168.3.2 255.255.255.0
!
interface Serial0/1/1
ip address 192.168.6.1 255.255.255.0
clock rate 64000
!
interface Vlan1
no ip address
shutdown
!
router ospf 200
log-adjacency-changes
network 192.168.3.0 0.0.0.255 area 0
network 192.168.6.0 0.0.0.255 area 1
!
ip classless
!
!
!
!
!
!
!
line con 0
line aux 0
!
line vty 0 4
login
!
!
!
end


r1:
interface Loopback1
ip address 3.3.3.3 255.255.255.0
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 192.168.4.1 255.255.255.0
clock rate 64000
!
interface Serial0/1/1
ip address 192.168.6.2 255.255.255.0
!
interface Vlan1
no ip address
shutdown
!
router ospf 200
log-adjacency-changes
area 1 virtual-link 2.2.2.2
network 192.168.6.0 0.0.0.255 area 1
network 192.168.4.0 0.0.0.255 area 2
!
ip classless
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end


r3:
spanning-tree mode pvst
!
!
!
!
interface Loopback1
ip address 4.4.4.4 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.5.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 192.168.4.2 255.255.255.0
!
interface Serial0/1/1
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown
!
router ospf 400
log-adjacency-changes
network 192.168.4.0 0.0.0.255 area 2
network 192.168.5.0 0.0.0.255 area 2
!
ip classless
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end


最佳答案

查看完整内容

需要在router0和router1上做虚链路,使arer2能够连接到骨干区域上来。   router ospf 1   area 1 virtual-link a.a.a.a      router ospf 1   area 1 virtual-link b.b.b.b
发表于 2016-11-10 08:42:46 | 显示全部楼层
需要在router0和router1上做虚链路,使arer2能够连接到骨干区域上来。

  router ospf 1
  area 1 virtual-link a.a.a.a
  
  router ospf 1
  area 1 virtual-link b.b.b.b
沙发 2016-11-10 08:42:46 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-11-10 09:04:16 | 显示全部楼层
ywb_qh 发表于 2016-11-10 09:00
需要在router0和router1上做虚链路,使arer2能够连接到骨干区域上来。

  router ospf 1

已经做了,,除了192.168.6.0个段,全网已经互通了.现在的问题是pc1ping不通192.168.6.0段,怎么解决?
板凳 2016-11-10 09:04:16 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-11-10 09:04:27 | 显示全部楼层
ywb_qh 发表于 2016-11-10 09:00
需要在router0和router1上做虚链路,使arer2能够连接到骨干区域上来。

  router ospf 1

已经做了,,除了192.168.6.0个段,全网已经互通了.现在的问题是pc1ping不通192.168.6.0段,怎么解决?
地板 2016-11-10 09:04:27 回复 收起回复
回复

使用道具 举报

发表于 2016-11-10 09:21:24 | 显示全部楼层
你要看router3上路由表有没有192.168.6.0的路由。
5# 2016-11-10 09:21:24 回复 收起回复
回复

使用道具 举报

发表于 2016-11-10 09:24:28 | 显示全部楼层
你的虚链路是怎么做的?
6# 2016-11-10 09:24:28 回复 收起回复
回复

使用道具 举报

发表于 2016-11-10 09:28:40 | 显示全部楼层
这些你可以参考一下。
【命令列表】:
  
命令 描述
  
  
(config-route)#area x virtual-link 10.0.0.xy 创建一条虚链路。这个区域号必须是一个传输区域。这个IP地址是对端路由器的RID
  
  
#show ip ospf 显示路由器与OSPF进程相关的信息,包括所有路由器连接的所有区域。
  
  
#show ip ospf neighbor 显示路由器的OSPF邻居列表和他们的RID
  
  
#show ip ospf virtual-links 显示虚链路的状态
  
  
#show ip route 显示路由器的路由转发表
  
7# 2016-11-10 09:28:40 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2016-11-10 09:54:19 | 显示全部楼层
ywb_qh 发表于 2016-11-10 09:28
这些你可以参考一下。
【命令列表】:
  

pc1 ping 6段的地址不通,但是可以ping通pc0.我也不知道到底那块出问题了。我又上传了一个附件,你帮我看看吧。谢谢了。
8# 2016-11-10 09:54:19 回复 收起回复
回复

使用道具 举报

发表于 2016-11-10 10:14:27 | 显示全部楼层
怎么样了?
9# 2016-11-10 10:14:27 回复 收起回复
回复

使用道具 举报

发表于 2016-11-10 10:17:00 | 显示全部楼层
草原土狼 发表于 2016-11-10 09:54
pc1 ping 6段的地址不通,但是可以ping通pc0.我也不知道到底那块出问题了。我又上传了一个附件,你帮我看 ...

router3 和骨干区域有没有建立好邻居呢?
10# 2016-11-10 10:17:00 回复 收起回复
回复

使用道具 举报

发表于 2016-11-10 10:17:13 | 显示全部楼层
草原土狼 发表于 2016-11-10 09:54
pc1 ping 6段的地址不通,但是可以ping通pc0.我也不知道到底那块出问题了。我又上传了一个附件,你帮我看 ...

router3 和骨干区域有没有建立好邻居呢?
11# 2016-11-10 10:17:13 回复 收起回复
回复

使用道具 举报

发表于 2016-11-10 10:38:25 | 显示全部楼层
换个模拟器试试
12# 2016-11-10 10:38:25 回复 收起回复
回复

使用道具 举报

发表于 2016-11-14 14:38:23 | 显示全部楼层
R0 router ospf 200   area 1 virtual-link 3.3.3.3    R1  router ospf 200   area 1 virtual-link  2.2.2.2 从你配置里面看RID是这样
13# 2016-11-14 14:38:23 回复 收起回复
回复

使用道具 举报

发表于 2016-11-14 16:57:04 | 显示全部楼层
刚做了下你这个模拟实验 配置正确是没问题的  查看下配置时OSPF 的进程ID有么有搞错 因为你这里有好几个ospf id 所以你仔细看看  是不是配置了不同的进程里
14# 2016-11-14 16:57:04 回复 收起回复
回复

使用道具 举报

发表于 2016-11-14 16:58:23 | 显示全部楼层
erxing 发表于 2016-11-14 16:57
刚做了下你这个模拟实验 配置正确是没问题的  查看下配置时OSPF 的进程ID有么有搞错 因为你这里有好几个osp ...

你这里进程ID 100 200  400 都有 看看配虚电路的时候 是不是配错了进程
15# 2016-11-14 16:58:23 回复 收起回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-8 00:07 , Processed in 0.079924 second(s), 16 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表