Route Map to multiple destinations

Unanswered Question
Oct 1st, 2009
User Badges:

Hi,


I am trying to forward traffic in one vlan to two separate destinations. For any host in this network I want 80 traffic to go one way, and DHCP traffic to go another. Can this be accomplished with a single route-map? I have tried using extended access-lists in the route-map, but can't seem to figure out how to tell it to forward the interesting traffic to two different next-hop addresses.


Please help.


Thanks


D

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Giuseppe Larosa Thu, 10/01/2009 - 07:50
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

Hello Daniel,

you need to use multiple route-maps clauses for this


example


access-list 111 remark web traffic

access-list 111 permit tcp source wild any eq 80


access-list 112 remark DHCP

access-list 112 permit udp any any eq bootp


route-map myPBR permit 10

match ip address 112

set ip next-hop Nhop1


route-map myPBR permit 20

match ip address 111

set ip next-hop Nhop2


an empty final block is not needed for PBR applications all other traffic not matching will be routed by destination.


you need to apply it on interface(s) receiving traffic to be diverted


int fas0/0

ip policy route-map myPBR


another note:

usually DHCP traffic needs to be translated using an ip helper-address because client requests have non routable broadcast destination.


this is called DHCP relay and uses ip helper-address command


for this add to same interface(s)


int fas0/0

ip helper-address dhcp-server-ipaddr


multiple commands are allowed for redundancy the router will send a copy to each target server.


Hope to help

Giuseppe


Actions

This Discussion