08-04-2004 08:38 AM - edited 03-02-2019 05:32 PM
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
08-04-2004 09:05 AM
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
08-04-2004 11:39 AM
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
08-04-2004 12:47 PM
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
08-04-2004 05:26 PM
yes it sounds ok.
thks a lot Georg
SAM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide