Hello,
No you CANT.
You can figure out the neighbor's AS (as Gaurav mentioned), but you
CANNOT figure out the AS that the neighbor has configured you in.
Please search the archives, this has been discussed in detail.
HTH,
On 9/8/09, GAURAV MADAN <gauravmadan1177_at_gmail.com> wrote:
> Router 1
> =======
>
> do sh run | sec router bgp
> router bgp 100
> no synchronization
> bgp log-neighbor-changes
> neighbor 1.0.0.2 remote-as 100
> no auto-summary
>
> Router 2
> ==========
>
> router bgp 200
> no synchronization
> bgp log-neighbor-changes
> neighbor 1.0.0.1 remote-as 100
> no auto-summary
>
>
> On R1 ; you will get logs like :
>
> ent
> *Sep 8 07:07:58.483: %BGP-3-NOTIFICATION: sent to neighbor 1.0.0.2
> active 2/2 (peer in wrong AS) 2 bytes 00C8
> *Sep 8 07:07:58.483: %BGP-4-MSGDUMP: unsupported or mal-formatted
> message received from 1.0.0.2:
> FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 003A 0104 00C8 00B4 1E00 0001 1D02
> 0601
> 0400 0100 0102 0280 0002 0202 0002 0383 0100 0206 4104 0000 00C8
> *Sep 8 07:07:58.487: %BGP_SESSION-5-ADJCHANGE: neighbor 1.0.0.2 IPv4
> Unicast topology base removed from session BGP Notification sent
>
>
> 00C8 in hexa is 200 in decimal .
> Thats the clue what the peer's AS is
>
> HTH
> Gaurav Madan
> CCIE
>
> On Tue, Sep 8, 2009 at 11:45 AM, omar maiah<omar.maiah_at_gmail.com> wrote:
>> Hi,
>>
>> Is there anyway to figure out what AS an EBGP peer has configured me in ?
>>
>> Regards
>>
>> --
>> Regards
>> Omar
>>
>>
>> Blogs and organic groups at http://www.ccie.net
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>
-- Best Regards, Tolulope. Blogs and organic groups at http://www.ccie.netReceived on Tue Sep 08 2009 - 09:53:52 ART
This archive was generated by hypermail 2.2.0 : Sun Oct 04 2009 - 07:42:02 ART