BGP – Remove Private AS
The video below shows how to remove a private AS from BGP as-path list.
Consider the topology below.
AS65300 peers eBGP with R1. R1 then peers eBGP with R2.
R1 is then configured to remove all private ASs in the as-path when it advertises BGP routes to R2.
Watch the video below or download and watch it on your iPod or iPhone.
The commands used in thiss video are as below:
CE1
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0
ip address 10.0.0.1 255.255.255.252
!
router bgp 65300
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
neighbor 10.0.0.2 remote-as 1
!
R1
!
interface FastEthernet1/0
ip address 10.0.0.2 255.255.255.252
!
interface FastEthernet1/1
ip address 10.0.0.5 255.255.255.252
!
router bgp 1
no synchronization
bgp log-neighbor-changes
neighbor 10.0.0.1 remote-as 65300
neighbor 10.0.0.6 remote-as 2
neighbor 10.0.0.6 remove-private-as
no auto-summary
!
R2
!
interface FastEthernet0
ip address 10.0.0.6 255.255.255.252
!
router bgp 2
bgp log-neighbor-changes
neighbor 10.0.0.5 remote-as 1
!
On R2 we can now see the bgp route 1.1.1.1/32 with the AS65300 in its as-path.
R2
!
R2#sh ip bgp
BGP table version is 2, local router ID is 10.0.0.6
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
*> 1.1.1.1/32 10.0.0.5 0 1 i
R2#


Well, I can’t see it.
I can’t see it either
Hi Hakan
Can you tell me what exactly you cannot see. Ie the flash video, image or can you not download the ipod video.
thanks
Zarar
I think they meant your last statement of your posting.
“On R2 we can now see the bgp route 1.1.1.1/32 _with_ the AS65300 in its as-path.”
We can’t see the AS65300. And it’s ok so
http://www.roadkill.com/~dpgerdes/cisco/remove-private-as.jpg