The default administrative distances are as below:
Directly connected : 0
Static Route : 1
Enhanced Interior Gateway Routing Protocol (EIGRP) summary route : 5
EIGRP (internal) : 90
OSPF : 110
RIP : 120
External BGP : 20
Internal BGP : 200
Unreachable : 255
The default metric for a redistributed route should be set to a value larger than the largest metric within the AS.
The proper command to set a different administrative distance is distance <admin-distance> {ip-address {wildcard-mask}}
example: distance 150 10.1.1.0 0.0.0.255
The command "distance 99 0.0.0.0 255.255.255.255 11" is used to assign an administrative distance of 99 for all routes matching access list 11 from any router.
The router will assign an administrative distance as specified in the command instead of the default AD to routes learned through this ip address. The ip-address and wildcard-mask refers to the IP address of the router from which the routes are being learned. This command is very useful when you want to assign different AD for redistributed routes into RIP from other protocols. In the example, a AD of 150 is assigned to the routes specified. This distance command should not be confused with route metrics that are used by the various routing protocols - RIP, EIGRP, OSPF, ISIS, etc.
When configuring route map, the match and set route map configuration commands are used to define the condition portion of a route map. The match command specifies a criteria that must be matched, and the set command specifies an action that is to be performed if the routing update meets the condition defined by the match command. Here the sequence number of 10 is used. Route map starts with the lowest sequence number and go on with increasing sequence numbers (if exists) till a match is occurred. Once a match occurs, it stops there and performs the match/set statements on the route. If no match occurs, there is an implicit deny at the end and the route is not redistributed or controlled.
Packets originated by the router are not policy routed. There is a feature for policy routing of locally generated traffic through local PBR. Local PBR policies are applied to the router with the global configuration command
ip local policy route-map-name