How would I force http traffic from behind LAN_RTA's Fa0/0 interface to use RT1's link to RT3 to reach web server 10.10.1.10 using BGP's weight attribute? If I then wanted to set the local-preference value in the route map instead of the weight attribute (if there were multiple routers connected to 10.1.1.0/24 for instance) to force traffic from multiple routers to prefer the same path, would I then just need to modify the route-map to set the local-preference to, say 150? How can I then test to make sure that traffic is preferring this path?
Something like this for the weight attribute? Where would I apply the route map?
ip access-list extended HTTP_TRAFFIC
permit tcp 10.1.1.0 0.0.0.255 eq 80 any
route-map HTTP_REDIRECT permit 10
match ip address HTTP_TRAFFIC
set weight 100
route-map HTTP_REDIRECT permit 20
sorry if I have not been clear:
PBR acts on user traffic packets and it is totally unrelated from BGP.
with BGP you can make use of local preference in an AS, for example AS 65001, to select an exit point towards an IP Prefix.
BGP as a routing protocol acts on IP prefixes or subnets and does not handle different type of traffic.
If for you is acceptable to route all traffic with destination A via the same exit point, regardless of traffic type (http but also FTP, telnet and whatever application can be in use) the use of local preference on border router is a possible solution.
>> What if there were multiple routers each w/ a connection to AS65001
let's suppose all of them are eBGP peers of some border routers in AS65001
increasing the local preference on LAN_RTA will make all routers in AS 65001 to choice it as the best path to IP network behind LAN_RTA.
This BGP best path is passed to eBGP peers.
Verify that you have a full mesh iBGP in AS65001 so that return packets can be correctly routed back to eBGP peers.
Hope to help