route-map Configuring Policy-Based Routing
Enterasys Matrix DFE-Gold Series Configuration Guide 8-43
Parameters
Defaults
None.
Mode
Routercommand,Globalconfiguration:Matrix>Router(config)#
Example
Thisexampleshowshowtodisplayroutemaplist101.Inthiscase,thepacketsourceIPaddresses
matchingACLlists2,3,4,8,or110willbeforwardedtonexthop10.2.1.1,10.2.2.1or10.2.3.1.The
routemaplistwascreatedusingtheroute‐mapcommand(“route‐map”onpage 8‐43).
Thepacket
sourceIPaddresswasthenmatchedtoanACLusingthematchipaddresscommand(“matchip
address”onpage 8‐44),andthepacket’snexthopsweredefinedusingthesetnext‐hopcommand
(“setnexthop”onpage 8‐45):
Matrix>Router#show route map 101
route-map 101, permit, sequence 1
Match clauses:
ip address 2 3 4 8 110
Set clauses:
next-hop 10.2.1.1 10.2.2.1 10.2.3.1
Policy matches: 0 packets
route-map
Usethiscommandtocreatearoutemapforpolicy‐basedroutingandtoenablepolicy‐based
routingconfigurationmode.
Syntax
route-map id-number [permit | deny] [sequence-number]
no route-map id-number
Parameters
id‐number SpecifiestheIDnumberforwhichtodisplayaconfiguredPBRroute
maplist.ValidvaluesforPBRare100‐199.
id‐number SpecifiesaroutemaplistIDnumbertowhichthisroutemapwillbe
added.IfanunusedIDnumberisspecified,anewroutemaplistwillbe
created.Validvaluesareforpolicy‐basedroutingare:100‐199.
permit (Optional)Permitsthepackettobypassroute
lookupandbeforwarded
tothenexthopconfiguredinthematchingroutemap.
deny (Optional)Deniespolicy‐basedrouting,forcingthepackettocontinue
onitsnormalroutingpath.
sequence‐number (Optional)Specifiestheorderofthismapintheroutemaplist,andthe
orderinwhichthisroutemapwill
becheckedformatchingaccesslist
criteria.Thepacketcheckwillexitwiththefirstmapinthelistwhich
matchesthepacketdata.