cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1622
Views
0
Helpful
4
Replies

Wht Route-Map will do if no match found?

safe
Level 1
Level 1

Dear all,

I got confused about Route- Map.My Question is that

In route map match statement if nothing match found with define policies then wht will happen with Packet, will it be

a)Normal Forwarding

b)At last packet will drop like ACL ( Deny All)

How will it act in OSPF,BGP,EIGRP environment

thks

SAM

4 Replies 4

Hello,

it depends on what you use the route map for. If you want to match traffic to be forwarded to a certain interface, only the matched traffic will actually go to the interface, traffic not matched will take whatever route is there for that traffic in the routing table.

In BGP, OSPF, and EIGRP, only the matched routes are acted upon, unless you have a statement at the end of the route map allowing all other routes. So:

route-map OSPF permit 10

match ip address 1

set metric-type type-2

would actually only permit the routes specified in access list 1, whereas:

route-map OSPF permit 10

match ip address 1

set metric-type type-2

!

route-map OSPF permit 20

would set the metric of the routes specified in access list 1 to type 2, but allow all other routes as well, leaving them with the default values.

HTH,

Georg

thks for ur quick response Georg

but in Route map its behave like access list means implicite deny at last When nothing match in match condition that time also will it do normal forwarding.

Thanks

SAM

Hello Sam,

in the following example, traffic matching the route map condition would be forwarded to the next hop specified, all other traffic not matching the route map would only be forwarded if there an alternate, or a default route, otherwise it would be dropped:

route-map TRAFFIC permit 10

match ip address 1

set ip next-hop 135.13.20.1

!

ip route 0.0.0.0 0.0.0.0 ethernet0

So without the default route, traffic not matching would be dropped, in that way it is the same as the implicit deny at the end of an access list.

Does that make sense ?

Regards,

Georg

yes it sounds ok.

thks a lot Georg

SAM

Review Cisco Networking for a $25 gift card