Which two statements are correct regarding the routes to be redistributed into OSPF?

Refer to the exhibit. Which two statements are correct regarding the routes to be
redistributed into OSPF? (Choose two.)
Router ospf 10
redistribute rip route-map rip-in
!
route-map rip-in permit 10
match ip address 10 20
set metric 100
set metric-type type-1
!
route-map rip-in deny 20
match ip address 30
!
route-map rip-in permit 30
set metric 200
set metric-type type-2
!
access-list 10 permit 10.0.10.0 0.0.0.255
access-list 20 permit 192.168.1.0 0.0.0.255
access-list 30 permit 10.0.0.0 0.255.255.255

Refer to the exhibit. Which two statements are correct regarding the routes to be
redistributed into OSPF? (Choose two.)
Router ospf 10
redistribute rip route-map rip-in
!
route-map rip-in permit 10
match ip address 10 20
set metric 100
set metric-type type-1
!
route-map rip-in deny 20
match ip address 30
!
route-map rip-in permit 30
set metric 200
set metric-type type-2
!
access-list 10 permit 10.0.10.0 0.0.0.255
access-list 20 permit 192.168.1.0 0.0.0.255
access-list 30 permit 10.0.0.0 0.255.255.255

A.
The network 192.168.1.0 will be allowed and assigned a metric of 100.

B.
The network 192.168.1.0 will be allowed and assigned a metric of 200.

C.
All networks except 10.0.0.0/8 will be allowed and assigned a metric of 200.

D.
The network 172.16.0.0/16 will be allowed and assigned a metric of 200.

E.
The network 10.0.10.0/24 will be allowed and assigned a metric of 200.

Explanation:
These rules apply when using route-map with an access-list:
* If you use an ACL in a route-map permit clause, routes that are permitted by the ACL are
redistributed.
* If you use an ACL in a route-map deny clause, routes that are permitted by the ACL are
not redistributed.
* If you use an ACL in a route-map permit or deny clause, and the ACL denies a route, then
the route-map clause match is not found and the next route-map clause is evaluated.
And in each route-map:
* Multiple match criteria in the same line use a logical OR
* Each vertical match uses a logical AND
Therefore in this question, the networks in the access lists 10 and 20 (10.0.10.0/24 &
192.168.1.0/24) will be permitted while the networkin access list 30 (10.0.0.0/8) will be
denied.
Notice that there is no “match” line in the clause 30 so all networks that are not matched
with clause 10 & 20 will be matched in the clause 30 and will be set a metric of 200, type 2 -> answer D is correct.
In this question please don’t be confused between the route-map clause number (sequence
number) and the access-list number. The “match ip address” specifies which access lists
are matched. The route-map clause number only uses to specify the order in which the
clauses are executed.



Leave a Reply 0

Your email address will not be published. Required fields are marked *