cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
612
Views
0
Helpful
1
Replies

BGP PATH SELECTION

CSCO12754306
Level 1
Level 1

HI

i`m trying to make OUTBOUND path selection for  different subnets on the same router to 2 DIFFERENT ISP. I want to send outbound traffic from subnet 1 to IPS 1 and out subnet 2 to ISP 2 , this is my config :

router bgp 65300

network 192.168.0.0 mask 255.255.0.0
redistribute connected
neighbor 10.1.1.2 remote-as 1
neighbor 10.1.1.2 route-map 1 out    >>>> to ISP 1 
neighbor 10.1.2.2 remote-as 2   

neighbor 10.1.2.2 route-map 2 out   >>>> TO ISP 2!


!
!
!
ip prefix-list PRINCIPAL seq 10 permit 192.168.1.0/24
!
ip prefix-list RESPALDO seq 10 permit 192.168.9.0/24
!

route-map 1 permit 10
match ip address prefix-list PRINCIPAL
set local-preference 200

route-map 1 permit 20

route-map 2 permit 10
match ip address prefix-list RESPALDO
set local-preference 200

route-map 2 permit 20

This is not working please help. Is there a way to choose the outbound traffic with the as prepend ?

Thanks

1 Reply 1

Philip D'Ath
VIP Alumni
VIP Alumni

This has nothing to do with BGP, since you are trying to do source routing.  You need to use policy routing on the inbound interface on your router.

Something more like:

ip access-list extended toISP1
  permit ip 192.168.x.x 255.255.255.0 any
ip access-list extended toISP2
  permit ip 192.168.x.x 255.255.255.0 any

route-map toISP permit 10
  match ip address toISP1
  set ip next-hop a.b.c.d
route-map toISP permit 20
  match ip address toISP2
  set ip next-hop a.b.c.e

interface Gigabit x/y
  ip policy route-map toISP