Solved

a question with BGP loopback neighbor establishement

Posted on 2011-09-14
6
1,224 Views
Last Modified: 2012-05-12
hello,

i have 2 routers on GNS3, i want to configure BGP based on the loopback of each router, but it never comes to Established status, it is stuck in "Active" here is my topology:


                               R1 =================
                                                                   //================== R2

Config:

R1:

R1#show run
Building configuration...

Current configuration : 1048 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!        
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback1
 ip address 1.1.1.1 255.255.255.0
!        
interface Serial0/0
 ip address 192.168.12.1 255.255.255.0
 serial restart-delay 0
!
interface Serial0/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router bgp 1
 no synchronization
 bgp router-id 1.1.1.1
 bgp log-neighbor-changes
 network 192.168.12.0
 neighbor 2.2.2.2 remote-as 2
 neighbor 2.2.2.2 ebgp-multihop 2
 neighbor 2.2.2.2 update-source Loopback1
 no auto-summary
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!        
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
!
!
end

R1#

=================================================================


R2:

R2#show run
Building configuration...

Current configuration : 1048 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!        
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback1
 ip address 2.2.2.2 255.255.255.0
!        
interface Serial0/0
 ip address 192.168.12.2 255.255.255.0
 serial restart-delay 0
!
interface Serial0/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
!
router bgp 2
 no synchronization
 bgp router-id 2.2.2.2
 bgp log-neighbor-changes
 network 192.168.12.0
 neighbor 1.1.1.1 remote-as 1
 neighbor 1.1.1.1 ebgp-multihop 2
 neighbor 1.1.1.1 update-source Loopback1
 no auto-summary
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!        
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
!
!
end

R2#

0
Comment
Question by:zakar1a
  • 3
  • 3
6 Comments
 
LVL 24

Expert Comment

by:Ken Boone
ID: 36536915
The problem is that either router does not have a route to the other's BGP loopback address.  You have to be able to at least reach your BGP peer and right now you cannot.  Add a static route on each router to reach the other's BGP peer ip address and then it should come up.
0
 
LVL 7

Author Comment

by:zakar1a
ID: 36536940
i got this from debug:


*Mar  1 01:24:06.947: BGP: 2.2.2.2 active open failed - no route to peer, open active delayed 26593ms (35000ms max, 28% jitter)
0
 
LVL 24

Accepted Solution

by:
Ken Boone earned 500 total points
ID: 36536995
That is exactly what I mean:

On rtr 1 you need:
ip route 2.2.2.2 255.255.255.0 192.168.12.2

On rtr 2 you need:
ip route 1.1.1.1 255.255.255.0 192.168.12.1

Then each router will have a route to the other's loopback and then it will come up.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 7

Author Comment

by:zakar1a
ID: 36537069
you meant :

ip route 2.2.2.2 255.255.255.255 192.168.12.2
ip route 1.1.1.1 255.255.255.255 192.168.12.1

right?
0
 
LVL 24

Expert Comment

by:Ken Boone
ID: 36537113
yea correct.
0
 
LVL 7

Author Closing Comment

by:zakar1a
ID: 36537140
thank you
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Auto Smartport macro for Dell and HP laptops 2 72
WLC 5508 controller configuration 4 77
ospf neighbors not coming up 6 30
Help logging in to my router 12 48
In the world of WAN, QoS is a pretty important topic for most, if not all, networks. Some WAN technologies have QoS mechanisms built in, but others, such as some L2 WAN's, don't have QoS control in the provider cloud.
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question