Solved

Show IP BGP

Posted on 2013-01-10
5
315 Views
Last Modified: 2013-01-13
I would like to understand why show IP bgp displays those 2 lines.
I have configured 2 routers directly connected by a serial interface.

Router2#sh ip bgp
BGP table version is 4, local router ID is 10.10.10.20
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
*> 10.10.10.0/24    0.0.0.0                  0         32768 i
* i                 10.10.10.10              0    100      0 i

Open in new window

Router1#sh ip bgp
BGP table version is 4, local router ID is 10.10.10.10
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
* i10.10.10.0/24    10.10.10.20              0    100      0 i
*>                  0.0.0.0                  0         32768 i

Open in new window



Router1#sh run
Building configuration...

Current configuration : 910 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
no ip domain lookup
ip audit po max-events 100
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/0
 ip address 10.10.10.10 255.255.255.0
 clock rate 2000000
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/1
 no ip address
 shutdown
 clock rate 2000000
!
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 10.10.10.0 mask 255.255.255.0
 neighbor 10.10.10.20 remote-as 100
 no auto-summary
!
ip classless
!
ip http server
no ip http secure-server
!
!
!
!
!
!
!
!
!
!
!
line con 0
 logging synchronous
line aux 0
line vty 0 4
!
end

Open in new window




Router2#sh run
Building configuration...

Current configuration : 910 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
no ip domain lookup
ip audit po max-events 100
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/0
 ip address 10.10.10.20 255.255.255.0
 clock rate 2000000
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/1
 no ip address
 shutdown
 clock rate 2000000
!
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 10.10.10.0 mask 255.255.255.0
 neighbor 10.10.10.10 remote-as 100
 no auto-summary
!
ip classless
!
ip http server
no ip http secure-server
!
!
!
!
!
!
!
!
!
!
!
line con 0
 logging synchronous
line aux 0
line vty 0 4
!
end

Open in new window

0
Comment
Question by:jskfan
  • 3
  • 2
5 Comments
 

Author Comment

by:jskfan
Comment Utility
I need to understand the meaning of the 2 lines:

Network          Next Hop            Metric LocPrf Weight Path
*> 10.10.10.0/24    0.0.0.0                  0         32768 i
* i                 10.10.10.10              0    100      0 i

   Network          Next Hop            Metric LocPrf Weight Path
* i10.10.10.0/24    10.10.10.20              0    100      0 i
*>                  0.0.0.0                  0         32768 i
0
 
LVL 5

Assisted Solution

by:Rakesh Madupu JNCIE-SP #02079 CCIE-SP#47613
Rakesh Madupu JNCIE-SP #02079 CCIE-SP#47613 earned 500 total points
Comment Utility
The 0.0.0.0 indicates that the prefix was learnt from the local router

As you can see

interface Serial0/0
 ip address 10.10.10.10 255.255.255.0
 clock rate 2000000

is a connected interface for R1 , and hence its showing the same.

Now , If you take the same thougth and expand, you see you have advertised the route into BGP which will be updated to the other neighbor, and here the advertised network is the same interface which is also used for peering.

Hence when R1 receives and update about R2 10.10.10.20 network , with the following command on R2, net 10.10.10.0 mask 255.255.255.0 , it will know that it can reach 10.10.10.20 via its own serial interface and also a Bgp update and '>' is what used to determine the best path , what path would be more better than a direct path :)

Regards
Game
0
 

Author Comment

by:jskfan
Comment Utility
why  next hop 0.0.0.0 is the best path.
I know you will say Local Preference (higher is better), but does it mean the router(that speaks BGP) knows that it is directly connected to other Router (that speaks BGP) then it kicks that Local Preference of 32768 ? if so, then does 32768 shows  in the table  only when 2 BGP routers are directly connected ??

thanks
0
 
LVL 5

Accepted Solution

by:
Rakesh Madupu JNCIE-SP #02079 CCIE-SP#47613 earned 500 total points
Comment Utility
Next hop is 0.0.0.0 because , when you do a "show ip route connected" , the subnet should list under your directly connected interface which is more preferred than any protocol.
0
 

Author Closing Comment

by:jskfan
Comment Utility
Thank you
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

While it is possible to put two routes in place with the secondary having a higher metric, this may not always work. In the event of a failure that does not bring down the physical interface on the router the primary route is not removed. There is a…
The Cisco RV042 router is a popular small network interfacing device that is often used as an internet gateway. Network administrators need to get at the management interface to make settings, change passwords, etc. This access is generally done usi…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now