09-23-2008 11:29 PM - edited 03-03-2019 11:40 PM
Hi,
Is it possible to run two BGP instances on the same router in global routing table?
i.e. this would be configuration on the router (with one instance with private AS number)
router bgp 5000
neigbor 1.1.1.1
router bgp 65002
neighbor 2.2.2.2
regards,
09-24-2008 12:41 AM
its possible though not recommended since the router will have to maintain and form two different BGP routing tables. Just use the dual-as keyword (local-as, remote-as).
http://www.cisco.com/en/US/docs/ios/12_2sr/12_2sra/feature/guide/srbgpdas.html
would be delighted if the expert suggest other solutions...
rgds
alex
09-24-2008 02:11 AM
But if this other BGP routing table had limited number of routes controled by route map I think this should work fine.
Thank you very much Alex.
09-24-2008 12:41 AM
Nope.
However, you can do route-map and prepend the other ASN if you want to advertise your two prefix each from different ASN.
For example;
!
router bgp 5000
advertising 192.168.0.0/16
Then you want to advertise 10.0.0.0/8 using ASN65002. You can create a route-map and prepend ASN65002. Your 10.0.0.0/8 (ASN65002) will look like behind ASN5000.
09-24-2008 02:16 AM
Problem is that now I have iBGP session betwwen routers R1 and R2. And I need R2 to establish eBGP session with R1 (that other sesion would be to private AS number). So unfortunatelly prepend doesn't help me.
09-24-2008 04:15 AM
Try this....
Router bgp 5000
neighbor
neighbor
neighbor
Make sure R2 knows the route of R1 loopback ip in IGP (not via other bgp session)....
Can you share if R1 and R2 having ibgp session already, why do you want to have ebgp session between them ?
Chetan !
09-24-2008 06:06 AM
Thanks,
Do I need to have both neighbor R1 loopback and interface IP? And I supose it doesn't have to be loopback IP it can be interface IP(neighbor
The reason is following. R1 is N-PE router in MPLS and R2 is router that runs full BGP to ineternet and doesn't run . I wanted somehow to inject few routes in MPLS vrf Internet, but iBGP between CPE (R1) and PE (R2) is not supported by IOS. So I needed workaround in order to establish eBGP between R1 and R2.
regards,
09-24-2008 06:57 AM
Hello Antonio,
the above configuration is NOT possible on a router.
Only one BGP process can exist on a router.
When you try to add a second one an error message appears:
see the following
RT-RM-TLD066-DMZ-C-1#sh ip prot sum
Index Process Name
0 connected
1 static
2 isis
3 bgp 8234
*** IP Routing is NSF aware ***
RT-RM-TLD066-DMZ-C-1#
RT-RM-TLD066-DMZ-C-1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RT-RM-TLD066-DMZ-C-1(config)#router bgp 5000
>>>>BGP is already running; AS is 8234
RT-RM-TLD066-DMZ-C-1(config)#^Z
RT-RM-TLD066-DMZ-C-1#sh ip prot sum
Index Process Name
0 connected
1 static
2 isis
3 bgp 8234
*** IP Routing is NSF aware ***
RT-RM-TLD066-DMZ-C-1#
as suggested you can pretend to be in another As by using the neigh x local-as y command
Hope to help
Giuseppe
09-24-2008 11:16 PM
Thanks I think I'll do that
09-25-2008 06:37 AM
thanks for your help, experts!!
having thought lately on this BGP issue, its truly forbiden to use two BGP processes on a router at the same time :)
love this forum, fully recommended
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: