Troubleshooting Ip Routing Policy - H3C S7500 Series Operation Manual

Hide thumbs Also See for S7500 Series:
Table of Contents

Advertisement

Operation Manual – Routing Protocol
H3C S7500 Series Ethernet Switches
[SwitchA-acl-basic-2000] quit
# Configure a route-policy.
[SwitchA] route-policy ospf permit node 10
[SwitchA -route-policy] if-match acl 2000
[SwitchA -route-policy] quit
# Apply route policy when the static routes are imported.
[SwitchA] ospf
[SwitchA-ospf-1] import-route static route-policy ospf
2)
Configure Switch B:
# Configure the IP address of the interface.
<SwitchB> system-view
[SwitchB] interface vlan-interface 100
[SwitchB-Vlan-interface100] ip address 10.0.0.2 255.0.0.0
[SwitchB-Vlan-interface100] quit
# Enable the OSPF protocol and specify the ID of the area to which the interface
10.0.0.2 belongs.
[SwitchB] router id 2.2.2.2
[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

7.5 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 route fails to pass the match test against any
node, the route information will not pass the filtering of the route-policy. 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
conditions. However, if all the items are in the deny mode, no route will pass the
filtering of the ip-prefix list. Therefore, you need to define a permit 0.0.0.0 0
greater-equal 0 less-equal 32 item following multiple deny mode items to permit all
other routes to pass through (if less-equal 32 is not specified, only the default route
will be matched).
Chapter 7 IP Routing Policy Configuration
7-11

Advertisement

Table of Contents
loading

Table of Contents