
Router(config)# | ||
? | ||
end | End current mode and change to enable mode. | |
exit | Exit current mode and down to previous mode | |
help | Description of the interactive help system | |
match | Match values from routing table | |
no | Negate a command or set its defaults | |
Exit policy on matches | ||
quit | Exit current mode and down to previous mode | |
Create | ||
set | Set values in destination routing protocol |
One or more match and set commands typically follow a
Command | Purpose |
match interface | Match the specified interface. |
match ip address | Match a standard access list or prefix list. |
name |
|
match ip | Match a |
| access lists specified. |
match metric | Match the specified metric. |
set ip | Specify the address of the next hop. |
set metric | Set the metric value to give the redistributed routes. |
5.4.5 Set Metrics for Redistributed Routes
The metrics of one routing protocol do not necessarily translate into the metrics of another. For example, the RIP metric is a hop count and the OSPF metric is a combination of five quantities.
In such situations, an artificial metric is assigned to the redistributed route. Because of this unavoidable tampering with dynamic information, carelessly exchanging routing information between different routing protocols can create routing loops, which can seriously degrade network operation.
To use the current routing protocol’s metric value for all redistributed routes, enter the following command in router configuration mode.
Command | Purpose |
Cause the current routing protocol to use the same metric value | |
| for all redistributed routes. |
Note: The metric value range is very large for compatibility with other protocols
For RIP, valid metric value is from 1 to 16.
5.4.6 Set Administrative Distance
The administrative distance is a value that rates the trustworthiness of a routing information source, such as an individual router or a group of routers. In a large network, some routing protocols and some routers can be more reliable than others as sources of routing information. Also, when multiple routing processes are running in the same router for IP, it is possible for the same route to be advertised by more than one routing
46