06-24-2002 02:38 PM - edited 03-01-2019 10:32 PM
Is there a way to make the routing decision based on source address? For example to be able to route a specific source ip address to a specific interface inside the router.
06-24-2002 02:38 PM
Yes, you can route based on source IP address using Policy Based Routing. Using Policy based routing, you can also route based on the size of the packet.
http://www.cisco.com/warp/public/cc/techno/protocol/tech/plicy_wp.htm
06-25-2002 08:33 AM
>>Here is an example on how to do that...
>>Lets say that the traffic you want to apply the source routing on is from interface e0 >>with the following configuration...
interface e0
description PBR example interface
ip address 10.10.10.1 255.255.255.0
ip policy route-map pbr_map
>> And s0 is your interface to your gateway (ISP), (example here is 172.20.1.1)
interface s0
ip addresss 172.20.1.2 255.255.255.252
>> Set an access list for all traffic you want to apply source routing to...
access-list 12 permit 10.10.10.0 0.0.0.255
>> Configure a route-map (pbr_map is arbitrary, but has to match the name applied in the interface e0)
route-map pbr_map permit 10
match ip address 12
set ip next-hop 172.20.1.1
06-25-2002 08:34 AM
>>Here is an example on how to do that...
>>Lets say that the traffic you want to apply the source routing on is from interface e0 >>with the following configuration...
interface e0
description PBR example interface
ip address 10.10.10.1 255.255.255.0
ip policy route-map pbr_map
>> And s0 is your interface to your gateway (ISP), (example here is 172.20.1.1)
interface s0
ip addresss 172.20.1.2 255.255.255.252
>> Set an access list for all traffic you want to apply source routing to...
access-list 12 permit 10.10.10.0 0.0.0.255
>> Configure a route-map (pbr_map is arbitrary, but has to match the name applied in the interface e0)
route-map pbr_map permit 10
match ip address 12
set ip next-hop 172.20.1.1
07-18-2002 07:24 AM
Question?
access-list 12 permit 10.10.10.0 0.0.0.255
can it be replaced with a single host?
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