Operation Manual – Routing Protocol
H3C S3600 Series Ethernet Switches-Release 1510 Chapter 5
IP Routing Policy Configuration
5-9
[SwitchB] ospf
[SwitchB-ospf-1] area 0
[SwitchB-ospf-1-area-0.0.0.0] network 10.0.0.0 0.255.255.255
[SwitchB-ospf-1-area-0.0.0.0] quit
[SwitchB-ospf-1] quit
# Display the OSPF routing table on SwitchB and check if route policy takes effect.
<SwitchB> display ospf routing
OSPF Process 1 with Router ID 2.2.2.2
Routing Tables
Routing for Network
Destination Cost Type NextHop AdvRouter Area
10.0.0.0/8 1 Transit 10.0.0.2 1.1.1.1 0.0.0.0
Routing for ASEs
Destination Cost Type Tag NextHop AdvRouter
20.0.0.0/8 1 Type2 1 10.0.0.1 1.1.1.1
40.0.0.0/8 1 Type2 1 10.0.0.1 1.1.1.1
Total Nets: 3
Intra Area: 1 Inter Area: 0 ASE: 2 NSSA: 0
5.7 Troubleshooting IP Routing Policy
Symptom: Routing information cannot be filtered when the routing protocol runs
normally.
Solution: Check to see the following requirements are satisfied.
At least one node in a route-policy should be in permit mode. When a route-policy is
used to filter routing information, if a piece of routing information filters through no
node in the route-policy, it means that the route information does not pass the filtering
of the route-policy. Therefore, when all the nodes in the route-policy are in the deny
mode, no routing information will pass the filtering of the route-policy.
At least one item in an ip-prefix list should be in permit mode. The items in deny
mode can be defined first to rapidly filter out the routing information not meeting the
condition. However, if all the items are in the deny mode, no route will pass the
ip-prefix filtering. You can define the item “permit 0.0.0.0 0 less-equal 32” after
multiple items in the deny mode for all other routes to pass the filtering (if less-equal
32 is not specified, only the default route will be matched).