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

[已解决] MPLS vpn BGP无法传路由

  [复制链接]
发表于 2012-12-16 21:38:21 | 显示全部楼层 |阅读模式
   按照拓扑图中实现R4的lo 0口4.4.4.4和R5的lo 0口5.5.5.5访问,,不知道为什么不能传送BGP路由条目,4.4.4.4的路由只能传到R2,不能传到R3,,r2配置如下:Building configuration...
Current configuration : 2042 bytes
!
upgrade fpd auto
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip cef
!
!
!
!
ip vrf a
rd 1:1
route-target export 1:1
route-target import 1:1
!         
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!         
multilink bundle-name authenticated
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
archive   
log config
  hidekeys
!         
!         
!         
!         
!         
!         
!         
!         
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!         
interface FastEthernet0/0
no ip address
shutdown
duplex half
!         
interface Serial1/0
ip address 12.1.1.2 255.255.255.0
serial restart-delay 0
!         
interface Serial1/1
ip vrf forwarding a
ip address 24.1.1.2 255.255.255.0
serial restart-delay 0
!         
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!         
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!         
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!         
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!         
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!         
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!         
router rip
version 2
no auto-summary
!        
address-family ipv4 vrf a
  redistribute bgp 1 metric transparent
  network 24.0.0.0
  no auto-summary
exit-address-family
!         
router bgp 1
no synchronization
bgp router-id 2.2.2.2
bgp log-neighbor-changes
neighbor 3.3.3.3 remote-as 1
neighbor 3.3.3.3 update-source Loopback0
no auto-summary
!        
address-family vpnv4
  neighbor 3.3.3.3 activate
  neighbor 3.3.3.3 send-community both
exit-address-family
!        
address-family ipv4 vrf a
  redistribute rip
  no synchronization
exit-address-family
!         
ip forward-protocol nd
no ip http server
no ip http secure-server
!         
!         
!         
logging alarm informational
!         
!         
!         
!         
!         
!         
control-plane
!         
!         
!         
!         
!         
!         
!         
gatekeeper
shutdown
!         
!         
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
!         
!         
end      

R3配置:Building configuration...
Current configuration : 2042 bytes
!
upgrade fpd auto
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip cef
!
!
!
!
ip vrf a
rd 1:1
route-target export 1:1
route-target import 1:1
!         
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!         
multilink bundle-name authenticated
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
archive   
log config
  hidekeys
!         
!         
!         
!         
!         
!         
!         
!         
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!         
interface FastEthernet0/0
no ip address
shutdown
duplex half
!         
interface Serial1/0
ip vrf forwarding a
ip address 35.1.1.3 255.255.255.0
serial restart-delay 0
!         
interface Serial1/1
ip address 13.1.1.3 255.255.255.0
serial restart-delay 0
!         
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!         
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!         
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!         
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!         
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!         
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!         
router rip
version 2
no auto-summary
!        
address-family ipv4 vrf a
  redistribute bgp 1 metric transparent
  network 35.0.0.0
  no auto-summary
exit-address-family
!         
router bgp 1
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 1
neighbor 2.2.2.2 update-source Loopback0
no auto-summary
!        
address-family vpnv4
  neighbor 2.2.2.2 activate
  neighbor 2.2.2.2 send-community both
exit-address-family
!        
address-family ipv4 vrf a
  redistribute rip
  no synchronization
exit-address-family
!         
ip forward-protocol nd
no ip http server
no ip http secure-server
!         
!         
!         
logging alarm informational
!         
!         
!         
!         
!         
!         
control-plane
!         
!         
!         
!         
!         
!         
!         
gatekeeper
shutdown
!         
!         
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
!         
!         
end
       1.jpg
发表于 2012-12-17 09:02:19 | 显示全部楼层
stoneguo 发表于 2012-12-17 08:36
底层跑的是rip协议,,

把配置发下看下  顺便show mpls forw 看下LFIB表
沙发 2012-12-17 09:02:19 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-12-16 21:50:54 | 显示全部楼层
R2的环回口和R3的环回口ip不可达,BGP都没建立起来,条目更不可能了
板凳 2012-12-16 21:50:54 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-12-16 21:53:42 | 显示全部楼层
从配置上看不出你底层运行的协议,你确定MPLS域通信是正常的?
地板 2012-12-16 21:53:42 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-12-16 22:15:30 | 显示全部楼层
RIP好像什么都没有呀?同一个AS内IGP路由都不可达。。。
5# 2012-12-16 22:15:30 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-12-16 23:06:07 | 显示全部楼层
拽拽的流氓 发表于 2012-12-16 22:15
RIP好像什么都没有呀?同一个AS内IGP路由都不可达。。。

2.jpg
这个就是RIP协议中的宣告,,而且这条路由我是重分布到BGP中去了,,
6# 2012-12-16 23:06:07 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-12-16 23:45:10 | 显示全部楼层
stoneguo 发表于 2012-12-16 23:06
这个就是RIP协议中的宣告,,而且这条路由我是重分布到BGP中去了,,

对对,忘了VRF了。在看看。。。
7# 2012-12-16 23:45:10 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-12-16 23:47:10 | 显示全部楼层
stoneguo 发表于 2012-12-16 23:06
这个就是RIP协议中的宣告,,而且这条路由我是重分布到BGP中去了,,

二楼说的对,你在确定下。2.2.2.2和3.3.3.3都不通你这样配置。
8# 2012-12-16 23:47:10 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-12-17 00:02:48 | 显示全部楼层
linzhidan120 发表于 2012-12-16 21:50
R2的环回口和R3的环回口ip不可达,BGP都没建立起来,条目更不可能了

犯了一个很大的错误,没有查看BGP路由建起来没有,查看一下,原来没有运行底层协议,,
9# 2012-12-17 00:02:48 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-12-17 00:12:54 | 显示全部楼层
linzhidan120 发表于 2012-12-16 21:50
R2的环回口和R3的环回口ip不可达,BGP都没建立起来,条目更不可能了

建立起了bgp协议,R4和R5都有到对方的路由,不知道为什么ping不通,,traceroute只能到24.1.1.2
10# 2012-12-17 00:12:54 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-12-17 08:19:23 | 显示全部楼层
stoneguo 发表于 2012-12-17 00:12
建立起了bgp协议,R4和R5都有到对方的路由,不知道为什么ping不通,,traceroute只能到24.1.1.2

底层跑的什么协议 如果是OSPF的话 那么就是环回口导致的标签不连续
11# 2012-12-17 08:19:23 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-12-17 08:36:24 | 显示全部楼层
qq360870025 发表于 2012-12-17 08:19
底层跑的什么协议 如果是OSPF的话 那么就是环回口导致的标签不连续

底层跑的是rip协议,,
12# 2012-12-17 08:36:24 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-12-18 18:06:30 | 显示全部楼层
赚点分,看视频
13# 2012-12-18 18:06:30 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-12-21 09:04:30 | 显示全部楼层
stoneguo 发表于 2012-12-21 00:18
把运行ospf路由器的lo 0口改了,但还是不能ping通,不过18号标签显示为弹出了,

你把R3 R4的 show mpls ldp bin 给我看下
14# 2012-12-21 09:04:30 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-12-20 23:12:07 | 显示全部楼层
qq360870025 发表于 2012-12-17 09:02
把配置发下看下  顺便show mpls forw 看下LFIB表

刚开始是因为bgp中没有下一跳才行不通的,我加上了,另外把bgp底层igp换成ospf了,但不知道为什么还是无法ping 通 5.5.5.5,配置如图,,另外在R3上查看show mpls for,本来两标签应该是pop的,不知道为什么,请问我配置出错在哪里呢?谢谢!



r5.jpg r4.jpg r3.jpg r2.jpg r1.jpg r3 show mpls for.jpg
15# 2012-12-20 23:12:07 回复 收起回复
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-4-26 05:38 , Processed in 0.305775 second(s), 26 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

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