efnetwork wrote:
We have 2 datacenters in 2 locations. we are running EIGRP in Datacenters and BGP between them. Now need to create route map for a new subnet so that traffic to and from the new datacenter uses secondary VPN link rather primary MPLS link
Assuming subnet = 192.168.5.0 255.255.255.0
Destination DC subnet(s) = 192.168.10.0/24 192.168.11.0/24
access-list 101 permit ip 192.168.5.0 0.0.0.255 192.168.10.0 0.0.0.255
access-list 101 permit ip 192.168.5.0 0.0.0.255 192.168.11.0 0.0.0.255
route-map PBR permit 10
match ip address 101
set ip next-hop x.x.x.x <-- where x.x.x.x is the IP address of the next-hop towards the VPN link
then on the new subnet interface -
int vlan 10
ip policy route-map PBR
So the above will send all traffic from 192.168.5.0/24 to 192.168.10.0/24 and 192.168.11.0/24 via the next-hop in your route-map.
Note whether or not PBR is supported depends on the device (and sometimes feature set) you are trying to apply it to.
Jon