Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Route Map to multiple destinations

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 REPLY
Hall of Fame Super Silver

Re: Route Map to multiple destinations

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

213
Views
0
Helpful
1
Replies
CreatePlease to create content