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

[已解决] BGP学习路由问题

[复制链接]
发表于 2013-12-28 15:08:20 | 显示全部楼层 |阅读模式
本帖最后由 nanpandie 于 2013-12-28 15:14 编辑





【r1】                                                          【r2】
router ospf 10                                           router ospf 10                    
network 10.0.0.0 0.0.0.255 area 0          network 30.0.0.0 0.0.0.255 area 0
network 50.0.0.0 0.0.0.255 area 0          network 50.0.0.0 0.0.0.255 area 0

router bgp 65100                                     router bgp 65100                  
no synchronization                                   no synchronization               
bgp router-id 1.1.1.1                                bgp router-id 2.2.2.2            
neighbor 10.0.0.2 remote-as 65100      neighbor 10.0.0.2 remote-as 65100
neighbor 10.0.0.2 next-hop-self             neighbor 10.0.0.2 next-hop-self  
neighbor 30.0.0.2 remote-as 65100      neighbor 30.0.0.2 remote-as 65100
neighbor 30.0.0.2 next-hop-self             neighbor 30.0.0.2 next-hop-self  
neighbor 50.0.0.2 remote-as 65100      neighbor 50.0.0.1 remote-as 65100
neighbor 50.0.0.2 next-hop-self             neighbor 50.0.0.1 next-hop-self  
no auto-summary                                     no auto-summary                  


【r3】                                                          【r4】
router ospf 10                                             router ospf 10                    
network 10.0.0.0 0.0.0.255 area 0           network 30.0.0.0 0.0.0.255 area 0

router bgp 65100                                       router bgp 65100                  
no synchronization                                      no synchronization               
bgp router-id 3.3.3.3                                  bgp router-id 4.4.4.4            
neighbor 10.0.0.1 remote-as 65100        neighbor 30.0.0.1 remote-as 65100
neighbor 10.0.0.1 next-hop-self               neighbor 30.0.0.1 next-hop-self  
neighbor 20.0.0.2 remote-as 65200        neighbor 40.0.0.2 remote-as 65300
neighbor 50.0.0.2 remote-as 65100        neighbor 50.0.0.1 remote-as 65100
neighbor 50.0.0.2 next-hop-self               neighbor 50.0.0.1 next-hop-self  
no auto-summary                                       no auto-summary                  

【r5】                                                          【r6】
interface Loopback0                                  interface Loopback0               
ip address 5.5.5.5 255.255.255.0            ip address 6.6.6.6 255.255.255.0  

router bgp 65200                                       router bgp 65300                  
no synchronization                                     no synchronization               
bgp router-id 5.5.5.5                                  bgp router-id 6.6.6.6            
network 5.5.5.0 mask 255.255.255.0      network 6.6.6.0 mask 255.255.255.0
neighbor 20.0.0.1 remote-as 65100        neighbor 40.0.0.1 remote-as 65100
no auto-summary                                       no auto-summary                  


R5#show ip route
     20.0.0.0/24 is subnetted, 1 subnets
C       20.0.0.0 is directly connected, Ethernet1/1
     5.0.0.0/24 is subnetted, 1 subnets
C       5.5.5.0 is directly connected, Loopback0

R5#show ip bgp
   Network          Next Hop            Metric LocPrf Weight Path
*> 5.5.5.0/24       0.0.0.0                  0         32768 i

R5#show ip bgp summary
Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
20.0.0.1        4 65100      50      52        2    0    0 00:33:32        0


R3#show ip route
     50.0.0.0/24 is subnetted, 1 subnets
O       50.0.0.0 [110/20] via 10.0.0.1, 00:44:36, Ethernet1/0
     20.0.0.0/24 is subnetted, 1 subnets
C       20.0.0.0 is directly connected, Ethernet1/1
     5.0.0.0/24 is subnetted, 1 subnets
B       5.5.5.0 [20/0] via 20.0.0.2, 00:34:51
     10.0.0.0/24 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, Ethernet1/0
     30.0.0.0/24 is subnetted, 1 subnets
O       30.0.0.0 [110/30] via 10.0.0.1, 00:44:36, Ethernet1/0

R3#show ip bgp
   Network          Next Hop            Metric LocPrf Weight Path
*> 5.5.5.0/24       20.0.0.2                 0             0 65200 i

R3#show ip bgp summary
Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.0.0.1        4 65100      53      55        2    0    0 00:36:56        0
20.0.0.2        4 65200      55      53        2    0    0 00:36:40        1
50.0.0.2        4 65100      52      54        2    0    0 00:36:56        0


如上图,AS 65100应该是全互联了,也配置了IGP。
看看到底是哪儿配置错了或配置漏了,导致BGP路由不完整,在r5上“ping 6.6.6.6 source 5.5.5.5”ping不通。
配置文件已上传。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?论坛注册

x
发表于 2013-12-28 15:33:06 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复 支持 反对

使用道具 举报

发表于 2013-12-28 16:28:51 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复 支持 反对

使用道具 举报

发表于 2013-12-28 16:53:19 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复 支持 反对

使用道具 举报

发表于 2013-12-28 17:08:05 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-12-30 08:47:50 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-6-26 04:45 , Processed in 0.059694 second(s), 11 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

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