5-12
2.0.0.0/8 DIRECT 0 0 2.2.2.2 Vlan-interface2
2.2.2.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0
3.0.0.0/8 RIP 100 5 6.6.6.5 Vlan-interface6
6.0.0.0/8 DIRECT 0 0 6.6.6.6 Vlan-interface6
6.6.6.6/32 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
192.168.0.0/24 DIRECT 0 0 192.168.0.39 Vlan-interface1
192.168.0.39/32 DIRECT 0 0 127.0.0.1 InLoopBack0
2) Display data forwarding paths when the main link of the OA server between Switch A and Switch C
is down.
<SwitchC> display ip routing-table
Routing Table: public net
Destination/Mask Protocol Pre Cost Nexthop Interface
1.0.0.0/8 RIP 100 6 6.6.6.5 Vlan-interface2
3.0.0.0/8 RIP 100 5 6.6.6.5 Vlan-interface6
6.0.0.0/8 DIRECT 0 0 6.6.6.6 Vlan-interface6
6.6.6.6/32 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
192.168.0.0/24 DIRECT 0 0 192.168.0.39 Vlan-interface1
192.168.0.39/32 DIRECT 0 0 127.0.0.1 InLoopBack0
Precautions
1) When you configure the apply cost command in a route policy:
z The new cost should be greater than the original one to prevent RIP from generating routing loop in
the case that a loop exists in the topology.
z The cost will become 16 if you try to set it to a value greater than 16.
z The cost will become the original one if you try to set it to 0.
z The cost will still be 16 if you try to set it to 16.
2) Using the if-match interface command will match the routes whose outgoing interface to the next
hop is the specified interface.
3) You are recommended to configure a node to match all routes not passing the preceding nodes in
a route policy.
4) If the cost of a received RIP route is equal to 16, the cost specified by the apply cost command in
a route policy will not be applied to the route, that is, the cost of the route is equal to 16.
5) Using the filter-policy command does not filter redistributed routes.
Troubleshooting IP Route Policy
Symptom
The route policy cannot filter routing information correctly when the routing protocol runs normally.