POLICY ROUTING

When policy based routing is applied to an interface does this policy affect both incoming and outgoing traffic or just incoming.

#ip access-list extended tcp
#permit tcp any any

#route-map tcp permit 10
#match ip address tcp
#set next hop 10.0.0.2

#int fa 0/0
#ip policy route-map tcp


sectelAsked:
Who is Participating?
 
btassureCommented:
It will only apply to traffic in the direction that it is already flowing based on routing rules. Your example will obviously affect all traffic on that interface as it states any any.

If it was host-a host-b it would only affect traffic entering that interface from host-a to host-b.

Equally the return traffic would not be affected as it has already been routed when it gets to the interface egress stage.
0
 
asavenerCommented:
Just incoming.
0
 
sectelAuthor Commented:
Asavener

You are stating that only traffic that is external to the router and is entering the router will be affected by the (#ip policy route map) statement???

J.
0
 
asavenerCommented:
Yes, that's how policy-based routing works.

0
 
sectelAuthor Commented:
Thanks

J.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.