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

[已解决] 在帧中继网络写RIP,路由表学不到是怎么回事?求助~

[复制链接]
发表于 2010-4-24 12:19:57 | 显示全部楼层 |阅读模式
学不到是因为有环路吗?
配置。
r1:
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial1/0
ip address 192.168.2.1 255.255.255.0
encapsulation frame-relay
!
interface Serial1/1
no ip address
shutdown
!
interface Serial1/2
no ip address
shutdown
!
interface Serial1/3
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown
!
router rip
version 2
network 192.168.3.0
network 192.168.4.0
no auto-summary
!
ip classless

r1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

C    192.168.1.0/24 is directly connected, FastEthernet0/0
C    192.168.2.0/24 is directly connected, Serial1/0

r2:

interface FastEthernet0/0
ip address 192.168.3.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial1/0
ip address 192.168.2.2 255.255.255.0
encapsulation frame-relay
!
interface Serial1/1
no ip address
shutdown
!
interface Serial1/2
no ip address
shutdown
!
interface Serial1/3
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown
!
router rip
version 2
network 192.168.1.0
no auto-summary
!
r2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

C    192.168.2.0/24 is directly connected, Serial1/0
C    192.168.3.0/24 is directly connected, FastEthernet0/0

r3:
router rip
version 2
network 192.168.1.0
no auto-summary

r3#show ip rou
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

C    192.168.2.0/24 is directly connected, Serial1/0
C    192.168.4.0/24 is directly connected, FastEthernet0/0

top

top
发表于 2010-4-24 19:27:34 | 显示全部楼层
  
沙发 2010-4-24 19:27:34 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2010-4-24 20:51:59 | 显示全部楼层
你没映射IP-DLCI号 在接口配置一条frame-relay map ip 10.1.1.1 102 broadcast  
远程IP地址+ 本地DLCI 号
板凳 2010-4-24 20:51:59 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2010-4-25 10:47:13 | 显示全部楼层
   你的路由器上的动态路由协议发布的网络号错误了,因为要发布与它直连的网络号
地板 2010-4-25 10:47:13 回复 收起回复
回复 支持 反对

使用道具 举报

 成长值: 63430
发表于 2010-4-26 10:09:08 | 显示全部楼层
杯具
5# 2010-4-26 10:09:08 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2010-4-27 19:58:58 | 显示全部楼层
子接口~~~
6# 2010-4-27 19:58:58 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2010-4-27 21:47:51 | 显示全部楼层
R1的S1/0要用点到点子接口 还要在本地和对端配置DLCI号...
7# 2010-4-27 21:47:51 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2010-4-28 19:21:53 | 显示全部楼层
1、配置帧中继时建议关闭arp和iarp
2、定义intf-type,也就是DTE与DCE
3、定义本地DLCI和远端IP,建议末尾加上broadcast,开启链路广播
4、HUB-spoke模式注意路由协议的水平分割问题,有的协议默认开启水平分割(例如RIP),而配置帧中继时,如果不是配置子接口模式,会导致互相spoke两端无法学到路由(虽然HUB上可以学到全部路由)
5、OSPF帧中继,注意OSPF接口网络模式,默认是NBMA。需要手动指定邻居,不然互相收不到hello
6、全部设备配置完成后,再no shutdown
7、多利用show frame map和show frame pvc查看链路状态,解决问题
你还需要配不少东西,给你个示例吧
这是HUB上的(也就是R1)
interface Serial1/2
ip address 192.168.2.1 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
no ip split-horizon(这条命令敲下去后,在show run中是看不到的,但是起作用)
no arp frame-relay
frame-relay map ip 192.168.2.2 102 broadcast
frame-relay map ip 192.168.2.3 103 broadcast
no frame-relay inverse-arp
frame-relay intf-type dte(这条命令敲下去后,在show run中是看不到的,但是起作用)
end

这是spoke上的
R2
interface Serial1/2
ip address 192.168.2.2 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
no arp frame-relay
frame-relay map ip 192.168.2.1 201 broadcast
frame-relay map ip 192.168.2.3 201 broadcast
no frame-relay inverse-arp
frame-relay intf-type dte(这条命令敲下去后,在show run中是看不到的,但是起作用)

end

R3
interface Serial1/2
ip address 192.168.2.3 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
no arp frame-relay
frame-relay map ip 192.168.2.1 301 broadcast
frame-relay map ip 192.168.2.2 301 broadcast
no frame-relay inverse-arp
frame-relay intf-type dte(这条命令敲下去后,在show run中是看不到的,但是起作用)

end


全部手打的哦,够全面吧,呵呵
8# 2010-4-28 19:21:53 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2010-4-28 19:51:12 | 显示全部楼层

7楼的兄弟正解,我要是版主给你100币奖励
9# 2010-4-28 19:51:12 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2010-5-8 15:56:12 | 显示全部楼层
    
10# 2010-5-8 15:56:12 回复 收起回复
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-6 16:39 , Processed in 0.068090 second(s), 15 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

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