如此风流 发表于 2016-2-17 14:29:17

ping 不通R1的1.1.1.1 但是有R1的路由 BGP邻居也是全的

R1#show run | sec bgp
router bgp 100
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 1.1.1.0 mask 255.255.255.0
neighbor 2.2.2.2 remote-as 200
neighbor 2.2.2.2 ebgp-multihop 255
neighbor 2.2.2.2 update-source Loopback0
no auto-summary
R1#show run int s0/0
Building configuration...

Current configuration : 86 bytes
!
interface Serial0/0
ip address 12.1.1.1 255.255.255.0
serial restart-delay 0
end

R1#show run | sec ip route
ip route 2.2.2.0 255.255.255.0 12.1.1.2



R2#show run | sec bgp
router bgp 200
no synchronization
bgp router-id 2.2.2.2
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 ebgp-multihop 255
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
no auto-summary

R2#show run | sec ip route
ip route 1.1.1.0 255.255.255.0 12.1.1.1

R2#show run | sec rip
router rip
version 2
network 2.0.0.0
network 23.0.0.0
no auto-summary



R3#show run | sec rip
router rip
version 2
network 3.0.0.0
network 23.0.0.0
no auto-summary
R3#show run | sec bgp
router bgp 200
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 200
neighbor 2.2.2.2 update-source Loopback0
no auto-summary

motive6 发表于 2016-2-17 15:01:54

因为R1上没有R3的loopback接口和s0/0接口的路由,可以在R1上写一条默认路由
页: [1]
查看完整版本: ping 不通R1的1.1.1.1 但是有R1的路由 BGP邻居也是全的