我是初学者,我对 BGP 有问题。我真的不明白为什么它不能正常工作。
这是我的拓扑:


我需要从 R8 ping 到 R10。
这是R8的配置:
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R8
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/1
ip address 199.168.1.9 255.255.255.252
serial restart-delay 0
!
interface Serial1/2
ip address 50.1.0.1 255.0.0.0
serial restart-delay 0
!
interface Serial1/3
ip address 199.168.1.2 255.255.255.252
serial restart-delay 0
!
interface FastEthernet2/0
no ip address
shutdown
duplex half
!
interface FastEthernet3/0
no ip address
shutdown
duplex half
!
interface FastEthernet4/0
no ip address
shutdown
duplex half
!
interface Serial5/0
ip address 199.168.1.22 255.255.255.252
serial restart-delay 0
!
interface Serial5/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial5/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial5/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 1
redistribute bgp 100 metric 100 100 100 100 100
network 199.168.1.0 0.0.0.3
network 199.168.1.8 0.0.0.3
network 199.168.1.20 0.0.0.3
auto-summary
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network 50.1.0.0 mask 255.255.255.0
neighbor 50.1.0.2 remote-as 200
neighbor 50.1.0.2 next-hop-self
neighbor 199.168.1.1 remote-as 100
no auto-summary
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
no cdp log mismatch duplex
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
escape-character 3
line vty 5 15
login
escape-character 3
!
!
end
这是R10的配置:
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R10
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
ip address 50.1.0.2 255.0.0.0
serial restart-delay 0
!
interface Serial1/1
ip address 195.16.1.10 255.255.255.252
serial restart-delay 0
!
interface Serial1/2
ip address 195.16.1.22 255.255.255.252
serial restart-delay 0
!
interface Serial1/3
ip address 195.16.1.13 255.255.255.252
serial restart-delay 0
!
interface FastEthernet2/0
no ip address
shutdown
duplex half
!
interface FastEthernet3/0
no ip address
shutdown
duplex half
!
interface FastEthernet4/0
no ip address
shutdown
duplex half
!
router eigrp 2
redistribute bgp 200 metric 100 100 100 100 100
network 195.16.1.8 0.0.0.3
network 195.16.1.12 0.0.0.3
network 195.16.1.20 0.0.0.3
auto-summary
!
router bgp 200
no synchronization
bgp log-neighbor-changes
network 50.1.0.0 mask 255.255.255.0
redistribute eigrp 2
neighbor 50.1.0.1 remote-as 100
neighbor 50.1.0.1 next-hop-self
neighbor 195.16.1.14 remote-as 200
no auto-summary
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
no cdp log mismatch duplex
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
!
end
当我show ip bgp在 R8 中运行命令时,我有:
R8#show ip bgp
BGP table version is 7, local router ID is 199.168.1.22
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* i195.16.1.0/30 20.1.0.2 0 100 0 200 ?
*> 50.1.0.2 2681856 0 200 ?
* i195.16.1.4/30 20.1.0.2 2681856 100 0 200 ?
*> 50.1.0.2 2681856 0 200 ?
* i195.16.1.8/30 20.1.0.2 2681856 100 0 200 ?
*> 50.1.0.2 0 0 200 ?
* i195.16.1.12/30 20.1.0.2 0 100 0 200 ?
*> 50.1.0.2 0 0 200 ?
* i195.16.1.16/30 20.1.0.2 0 100 0 200 ?
*> 50.1.0.2 2681856 0 200 ?
* i195.16.1.20/30 20.1.0.2 2681856 100 0 200 ?
*> 50.1.0.2 0 0 200 ?
请帮我。