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

[已解决] 帮忙看下此BGP配置问题。。

  [复制链接]
发表于 2011-10-17 16:22:50 | 显示全部楼层 |阅读模式
10鸿鹄币

R1
router bgp 100
no synchronization
bgp log-neighbor-changes
network 10.10.10.10 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 200
neighbor 2.2.2.2 ebgp-multihop 2
neighbor 2.2.2.2 update-source Loopback0
no auto-summary
!
ip route 2.2.2.0 255.255.255.0 192.168.12.2

路由表:
C    192.168.12.0/24 is directly connected, FastEthernet0/0
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
     2.0.0.0/24 is subnetted, 1 subnets
S       2.2.2.0 [1/0] via 192.168.12.2
     3.0.0.0/24 is subnetted, 1 subnets
B       3.3.3.0 [20/2297856] via 2.2.2.2, 00:01:05
     10.0.0.0/32 is subnetted, 1 subnets
C       10.10.10.10 is directly connected, Loopback10

( show ip bgp
Network          Next Hop            Metric LocPrf Weight Path
*> 3.3.3.0/24       2.2.2.2            2297856             0 200 i
*> 10.10.10.10/32   0.0.0.0                  0         32768 i )


R2
router bgp 200
no synchronization
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 ebgp-multihop 2
neighbor 1.1.1.1 update-source Loopback0
neighbor 3.3.3.3 remote-as 200
neighbor 3.3.3.3 update-source Loopback0
neighbor 3.3.3.3 next-hop-self
neighbor 4.4.4.4 remote-as 200
neighbor 4.4.4.4 update-source Loopback0
neighbor 4.4.4.4 next-hop-self
no auto-summary
!
ip route 1.1.1.0 255.255.255.0 192.168.12.1

路由表:
C    192.168.12.0/24 is directly connected, FastEthernet0/0
     1.0.0.0/24 is subnetted, 1 subnets
S       1.1.1.0 [1/0] via 192.168.12.1
     2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       2.2.2.0/24 is directly connected, Loopback0
S       2.0.0.0/8 [1/0] via 2.2.2.2
     3.0.0.0/24 is subnetted, 1 subnets
D       3.3.3.0 [90/2297856] via 192.168.23.3, 00:43:27, Serial0/0
     4.0.0.0/24 is subnetted, 1 subnets
D       4.4.4.0 [90/2809856] via 192.168.23.3, 00:43:05, Serial0/0
     10.0.0.0/32 is subnetted, 1 subnets
B       10.10.10.10 [20/0] via 1.1.1.1, 00:25:32
C    192.168.23.0/24 is directly connected, Serial0/0
D    192.168.34.0/24 [90/2681856] via 192.168.23.3, 00:43:36, Serial0/0

( show ip bgp
Network          Next Hop            Metric LocPrf Weight Path
*> 3.3.3.0/24       192.168.23.3       2297856         32768 i
*> 10.10.10.10/32   1.1.1.1                  0             0 100 i )


R3
router bgp 200
no synchronization
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 200
neighbor 2.2.2.2 update-source Loopback0
neighbor 4.4.4.4 remote-as 200
neighbor 4.4.4.4 update-source Loopback0
no auto-summary

路由表:
     2.0.0.0/24 is subnetted, 1 subnets
D       2.2.2.0 [90/2297856] via 192.168.23.2, 00:11:38, Serial0/0
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
     4.0.0.0/24 is subnetted, 1 subnets
D       4.4.4.0 [90/2297856] via 192.168.34.4, 00:40:22, Serial0/1
     10.0.0.0/32 is subnetted, 1 subnets
B       10.10.10.10 [200/0] via 2.2.2.2, 00:22:46
C    192.168.23.0/24 is directly connected, Serial0/0
C    192.168.34.0/24 is directly connected, Serial0/1

(show ip bgp
Network          Next Hop            Metric LocPrf Weight Path
r>i3.3.3.0/24       2.2.2.2            2297856    100      0 i
*>i10.10.10.10/32   2.2.2.2                  0    100      0 100 i )


R4
router bgp 200
no synchronization
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 200
neighbor 2.2.2.2 update-source Loopback0
neighbor 3.3.3.3 remote-as 200
neighbor 3.3.3.3 update-source Loopback0
no auto-summary


R1和R2能互相ping通,但R1和R3不能互相ping通loopback口,我只在R2上network了R3的loopback0 3.3.3.3,R1上network了R1的loopback10  10.10.10.10
附件: 您需要 登录 才可以下载或查看,没有账号?论坛注册

最佳答案

查看完整内容

我刚刚说的那个办法一定可以了,只要你通过的时候是路由表里有的,就一定可以了,只是要注意子网掩码的问题
发表于 2011-10-17 16:22:51 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

发表于 2011-10-17 16:49:00 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

 楼主| 发表于 2011-10-17 16:52:06 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

发表于 2011-10-17 16:54:09 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

发表于 2011-10-17 16:54:33 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

发表于 2011-10-17 16:55:40 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

发表于 2011-10-17 16:57:00 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

 楼主| 发表于 2011-10-17 16:57:20 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

发表于 2011-10-17 16:58:10 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

 楼主| 发表于 2011-10-17 16:58:10 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

发表于 2011-10-17 16:58:54 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

发表于 2011-10-17 16:59:37 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

 楼主| 发表于 2011-10-17 17:00:37 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

发表于 2011-10-17 17:08:24 | 显示全部楼层
游客,如果您要查看本帖隐藏内容请登录
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-7-5 17:08 , Processed in 0.063599 second(s), 10 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

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