RE: How to know the remote-as at your neighbor configured?

From: Scott Morris (swm@emanon.com)
Date: Fri Nov 04 2005 - 10:42:26 GMT-3


How about "debug ip bgp (neighbor ip address)" or "debug ip bgp events".
But you don't need to do that even.

Emanon-R5#sh run | b router bgp
router bgp 5
 no synchronization
 bgp log-neighbor-changes
 network 10.5.5.0 mask 255.255.255.0
 network 172.17.155.0 mask 255.255.255.0
 neighbor 172.17.1.4 remote-as 4
 neighbor 172.17.1.4 ebgp-multihop 255
 neighbor 172.17.155.1 remote-as 555
 no auto-summary
!

Emanon-R5(config)#router bgp 5
Emanon-R5(config-router)#no neighbor 172.17.155.1 remote-as 555
Emanon-R5(config-router)#

40w6d: %BGP-5-ADJCHANGE: neighbor 172.17.155.1 Down Neighbor deleted
Emanon-R5(config-router)#neighbor 172.17.155.1 remote-as 100

40w6d: %BGP-3-NOTIFICATION: sent to neighbor 172.17.155.1 2/2 (peer in wrong
AS) 2 bytes 022B
Emanon-R5(config-router)# FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 002D 0104
022B 00B4 6464 6601 1002 0601 0400 0100 0102 0280 0002 0202 00
Emanon-R5(config-router)#

The "022B" in hex is "555" in decimal which is the original AS number that I
had configured.

Emanon-R5(config-router)#no neighbor 172.17.155.1 remote-as 100
Emanon-R5(config-router)#neighbor 172.17.155.1 remote-as 555
Emanon-R5(config-router)#
40w6d: %BGP-5-ADJCHANGE: neighbor 172.17.155.1 Up
Emanon-R5(config-router)#

-----Original Message-----
From: Venkataramanaiah.R [mailto:vramanaiah@gmail.com]
Sent: Friday, November 04, 2005 3:29 AM
To: swm@emanon.com
Cc: ccielab@groupstudy.com
Subject: Re: How to know the remote-as at your neighbor configured?

Scott, I am running debug ip bgp and i do not see any clue... :-(

-Venkat

On 11/4/05, Scott Morris <swm@emanon.com> wrote:
> Are there any debugs that you are running? What do they tell you?
>
> Scott
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
> Of Venkataramanaiah.R
> Sent: Friday, November 04, 2005 2:14 AM
> To: ccielab@groupstudy.com
> Subject: How to know the remote-as at your neighbor configured?
>
> Hi,
>
> I do not have access to the ISP router. I know the remote BGP
> peer IP address, but i do not know what AS# the remote peer has
> configured towards me. Is there a way to find this information?
>
>
> for eg.,
>
> my router config is..
>
> router bgp xyz
> neighbor 1.1.1.1 remote-as 222
>
> ISP configs
>
> router bgp 222
> neighbor 1.1.1.2 remote-as xy
>
> I want to know what is the value of xy, without logging into the ISP
router.
> Is there a way to find this out on my router, by enabling any BGP
> debugs or will any show command help?
>
> -Venkat
>
> ______________________________________________________________________
> _ Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Thu Dec 01 2005 - 09:12:05 GMT-3