Re: BGP local-as (long dump)

From: Ivan (ivan@iip.net)
Date: Sun Dec 10 2006 - 11:53:18 ART


From dump below you can find right AS from BGP-notification
-----------------------
BGP-3-NOTIFICATION: sent to neighbor 1.1.1.2 2/2 (peer in wrong AS) 2 bytes
00C8 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 002D 0104
-----------------------

00C8 - AS from peer.
From here You can tune AS onto the router with local-as statement.

R1#sh run | b router bgp
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 neighbor 1.1.1.2 remote-as 222
 no auto-summary
!

R1#
*Dec 10 17:45:27.007: %BGP-3-NOTIFICATION: sent to neighbor 1.1.1.2 2/2 (peer
in wrong AS) 2 bytes 00C8 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 002D 0104
00C8 00B4 0101 0102 1002 0601 0400 0100 0102 0280 0002 0202 00
*Dec 10 17:45:55.191: %BGP-3-NOTIFICATION: received from neighbor 1.1.1.2 2/2
(peer in wrong AS) 2 bytes 0064

---------------------------------------------------------------------------

R2#sh run | b router bgp
router bgp 200
 no synchronization
 bgp log-neighbor-changes
 neighbor 1.1.1.1 remote-as 111
 no auto-summary

R2#
*Dec 10 17:44:58.447: %BGP-3-NOTIFICATION: sent to neighbor 1.1.1.1 2/2 (peer
in wrong AS) 2 bytes 0064 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 002D 0104
0064 00B4 0101 0101 1002 0601 0400 0100 0102 0280 0002 0202 00
*Dec 10 17:45:26.035: %BGP-3-NOTIFICATION: received from neighbor 1.1.1.1 2/2
(peer in wrong AS) 2 bytes 00C8
*Dec 10 17:45:54.215: %BGP-3-NOTIFICATION: sent to neighbor 1.1.1.1 2/2 (peer
in wrong AS) 2 bytes 0064 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 002D 0104
0064 00B4 0101 0101 1002 0601 0400 0100 0102 0280 0002 0202 00

On Sunday 10 December 2006 17:07, Serdar Kut wrote:
> hi
> this is an interesting situation..I made some try about it but nothing
> works for me.I think you can know that AS number unless remote As admin
> tells you about it.
>
> any comments?
>
> On 12/10/06, Ivan <ivan@iip.net> wrote:
> > You must force the remote peer to initiate BGP-session. Then in error
> > message
> > you see AS-number wich expect from you.
> > To achieve this try to apply outbound access-list to interface directed
> > to remote peer
> >
> > access-list 150 deny ip host BGP_IP_ORIGIN host BGP_IP_PEER eq bgp
> > access-list 150 permit ip any any
> >
> > On Sunday 10 December 2006 11:53, CharlesB wrote:
> > > I am doing a task in IE labs.
> > >
> > > The task says, far end router admin mis-configured BGP AS number, and
> >
> > they
> >
> > > can not correct it now. Find a solution to peer with their router.
> > > And they indicate the far end configured AS, so we can put the local-as
> >
> > XX
> >
> > > to match with their config.
> > > Now, what if, we do not know what they put there.
> > > I keep using debug ip bgp on my end, but I can not see the info. I put
> >
> > on
> >
> > > my router wrong target AS number, wrong local-as etc. The result is
> > > that
> >
> > it
> >
> > > is hard to figure out what AS they are expecting from me.
> > > If I go to far end and do the same debug I can see what was expected AS
> > > from me in that router, but this does not help the case I am trying to
> > > figure out.
> > > Am I missing something here?
> > > May be there is no solution to this? We must know their mistake, is
> > > that correct?
> > > Any thoughts?
> > >
> > > _______________________________________________________________________
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
> >
> > --
> > Ivan
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

-- 
Ivan


This archive was generated by hypermail 2.1.4 : Tue Jan 02 2007 - 07:50:37 ART