RE: BGP as-path prepend confusion !

From: Brown, Jim (Jim.Brown@caselogic.com)
Date: Sat Dec 27 2003 - 13:42:38 GMT-3


The AS Path List reads from right to left with the leftmost side being
the origin.

The AS number is prepended to the beginning of the list which is the
left-hand side.

-----Original Message-----
From: Pun, Alec CL [mailto:Alec.CL.Pun@pccw.com]
Sent: Saturday, December 27, 2003 3:01 AM
To: ccielab@groupstudy.com
Subject: BGP as-path prepend confusion !

Hi group,

I am confused by the command "set as-path prepend" as the new AS #
should be
appended instead of prepended to the originated AS #, right ? My
assumption
of prepend is that new AS # should be added to the left of the AS-Path.

rgds,
alec

R1
router bgp 65400
 no synchronization
 bgp log-neighbor-changes
 network 3.3.3.0 mask 255.255.255.0
 neighbor 192.168.4.1 remote-as 1
 neighbor 192.168.4.1 route-map prepend-as out
 no auto-summary
route-map prepend-as permit 10
 set as-path prepend 65401 65402
!

R2#sh ip bgp
BGP table version is 8, local router ID is 204.100.100.97
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network Next Hop Metric LocPrf Weight Path
*> 3.3.3.0/24 192.168.4.2 0 0 65400 65401
65402 i



This archive was generated by hypermail 2.1.4 : Sat Jan 03 2004 - 08:25:45 GMT-3