06-11-2008 04:35 AM - edited 03-03-2019 10:19 PM
Is it possible to have two different BGP AS in the same router?
Thank's
Marcelo
Solved! Go to Solution.
06-11-2008 06:53 AM
Marcelo,
You cannot use this command on an iBGP peer. You can inverse the logic though, change your "router bgp" ASN to 65200 and use the local-as command on the peer to ASN 11664 instead as follow:
router bgp 65200
neighbor 77.1.248.25 remote-as 65200
neighbor 154.0.17.129 remote-as 11664
neighbor 154.0.17.129 local-as 65194 no-prepend replace-as
Regards,
06-11-2008 04:42 AM
Yes, in a kind of virtual manner. That is because you can manipulate AS numbers in any way you want.
06-11-2008 04:46 AM
Thank's
Can you tell me some link with an example?
Marcelo
06-11-2008 04:49 AM
Are you familiar with BGP configuration and AS path manipulation ? All that is documented in the cisco manuals.
That is the pre-requisite for what you want to do.
06-11-2008 04:51 AM
Marcelo,
You might want to check the following example.
http://www.cisco.com/en/US/docs/ios/12_4t/ip_route/configuration/guide/brbpeer.html#wp1126960
Regards,
06-11-2008 05:42 AM
I applied this configuration but I can't get the peering. There is the following error:
Jun 11 10:38:04: %BGP-3-NOTIFICATION: sent to neighbor 77.1.248.25 3/11 (invalid or corrupt AS path) 3 bytes 400200
06-11-2008 05:52 AM
Marcelo,
Can you send a bit more info about the topology and configuration that you are trying to implement.
Regards,
06-11-2008 06:06 AM
This is the configuration. I need peering with 2 differente AS. The AS 65200 see me as 65200 y de 11664 see me as 65194.
!
router bgp 65194
no synchronization
bgp log-neighbor-changes
redistribute connected
neighbor 77.1.248.25 remote-as 65200
neighbor 77.1.248.25 local-as 65200 no-prepend replace-as
neighbor 154.0.17.129 remote-as 11664
neighbor 154.0.17.129 send-community
no auto-summary
!
06-11-2008 06:53 AM
Marcelo,
You cannot use this command on an iBGP peer. You can inverse the logic though, change your "router bgp" ASN to 65200 and use the local-as command on the peer to ASN 11664 instead as follow:
router bgp 65200
neighbor 77.1.248.25 remote-as 65200
neighbor 154.0.17.129 remote-as 11664
neighbor 154.0.17.129 local-as 65194 no-prepend replace-as
Regards,
06-11-2008 10:35 AM
Thank's Hritter. Your answer resolved my issue.
Marcelo
06-11-2008 04:48 AM
Marcelo,
You can only assign one AS number to your BGP router process but you can change that AS number when you connect to BGP peers by using the local-as feature.
Regards,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide