cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1137
Views
0
Helpful
7
Replies

BGP local-as not changing AS (similar config works on a different device)

jpbourke
Level 1
Level 1

Hi,

 

I am configuring a connection to Cogent at two sites.  I need to use local-as at both sites.  One site is working Ok, the other is not changing the local-as

 

Running  16.3.5c on ISR4331/K9

 

router bgp 65010
bgp router-id A.A.A.A
!
address-family ipv4 vrf vrfFixed-Cogent
redistribute static
neighbor B.B.B.B remote-as 174
neighbor B.B.B.B local-as 202013 no-prepend replace-as
neighbor B.B.B.B timers 5 15
neighbor B.B.B.B activate
neighbor B.B.B.B soft-reconfiguration inbound

 

#sho ip bgp vpnv4 vrf vrfFixed-Cogent summary
BGP router identifier A.A.A.A, local AS number 65010

 

Can anyone help ?

 

Thanks

 

john

 

7 Replies 7

balaji.bandi
Hall of Fame
Hall of Fame

how about other one working, Same IOS ? same hardware ?

 

can you post other one working to have look ? also show version and BGP outputs

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

The other is completely different, it is a Catalyst with IP SERVICES

 

router bgp 205019

address-family ipv4 vrf vrfFixed-Cogent
neighbor C.C.C.C remote-as 174
neighbor C.C.C.C local-as 202013 no-prepend replace-as dual-as
neighbor C.C.C.C description BGP session to Cogent
neighbor C.C.C.C timers 5 15
neighbor C.C.C.C activate
neighbor C.C.C.C send-community
neighbor C.C.C.C soft-reconfiguration inbound
neighbor C.C.C.C route-map rmCogent-public out
exit-address-family

 

jpbourke
Level 1
Level 1

Update

 

I cleared the BGP and I am now sending 23456


Apr 28 12:52:27 UTC: BGP: B.B.B.B active sending OPEN, version 4, my as: 23456, holdtime 15 seconds, ID DF197229

 

 

That normally means that your neighbour doesn't support the 64-bit AS numbers. So, any 64-bit AS number in the path gets replaced with 23456.

Found the problem

 

BGP bug

 

https://bst.cloudapps.cisco.com/bugsearch/bug/CSCva92216/?rfs=iqvred

 

Apr 28 15:08:14 UTC: BGP: B.B.B.B  active rcvd OPEN w/ optional parameter type 2 (Capability) len 14
Apr 28 15:08:14 UTC: BGP: B.B.B.B active OPEN has CAPABILITY code: 5, length 12
Apr 28 15:08:14 UTC: BGP: B.B.B.B active unrecognized capability code: 5
Apr 28 15:08:14 UTC: BGP: B.B.B.B active malformed/un-supported OPEN capability

 

Hello


@jpbourke wrote:

Hi,

 

I am configuring a connection to Cogent at two sites.  I need to use local-as at both sites.  One site is working Ok, the other is not changing the local-as

 

router bgp 65010
bgp router-id A.A.A.A
!
address-family ipv4 vrf vrfFixed-Cogent
redistribute static
neighbor B.B.B.B remote-as 174
neighbor B.B.B.B local-as 202013 no-prepend replace-as
neighbor B.B.B.B timers 5 15
neighbor B.B.B.B activate
neighbor B.B.B.B soft-reconfiguration inbound

 

 


Are you wanting the router in ASN 174 to peer with the local-as number you have applied?
I would suggest not to use soft reconfiguration and use the route refresh capability instead it much less resource intensive on the router with large rib tables also append dual-as and then soft reset the bgp session which will initiate router refresh.

 

Example:

sh ip bgp neighbors | s Route refresh   <-- to check it your router and the peer supports RR, if so

 

router bgp 65010
no neighbor B.B.B.B soft-reconfiguration inbound

neighbor B.B.B.B local-as 202013 no-prepend replace-as  dual-as
exit

clear ip bgp vrf vrfFixed-Cogent ipv4 unicast 174 soft out
clear ip bgp vrf vrfFixed-Cogent ipv4 unicast 174 soft in

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul