- 积分
- 207
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 最后登录
- 1970-1-1
- 阅读权限
- 30
- 听众
- 收听
初级工程师
  
|
本帖最后由 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
|