3com 8807 User Guide

Page of 883
402
C
HAPTER
 34: IP R
OUTING
 P
OLICY
 C
ONFIGURATION
# Configure three static routes.
[Switch A] ip route-static 20.0.0.1 255.0.0.0 12.0.0.2
 
[Switch A] ip route-static 30.0.0.1 255.0.0.0 12.0.0.2
 
[Switch A] ip route-static 40.0.0.1 255.0.0.0 12.0.0.2 
# Enable the OSPF protocol and specifies the number of the area to which the 
interface belongs.
[Switch A] router id 1.1.1.1
 
[Switch A] ospf
 
[Switch A-ospf-1] area 0
 
[Switch A-ospf-1-area-0.0.0.0] network 10.0.0.0 0.255.255.255 
# Import the static routes
[Switch A-ospf-1] import-route static 
Configure Switch B:
# Configure the IP address of VLAN interface.
[Switch B] interface vlan-interface 100
 
[Switch B-Vlan-interface100] ip address 10.0.0.2 255.0.0.0 
# Configure the access control list.
[Switch B] acl number 2000
 
[Switch B-acl-basic-2000] rule deny source 30.0.0.0 0.255.255.255
 
[Switch B-acl-basic-2000] rule permit source any 
# Enable OSPF protocol and specifies the number of the area to which the 
interface belongs.
[Switch B] router id 2.2.2.2
 
[Switch B] ospf
 
[Switch B-ospf-1] area 0
 
[Switch B-ospf-1-area-0.0.0.0] network 10.0.0.0 0.255.255.255 
# Configure OSPF to filter the external routes received.
[Switch B-ospf-1] filter-policy 2000 import 
Troubleshooting 
Routing Policy
Symptom 1: Routing information filtering cannot be implemented in normal 
operation of the routing protocol
Solution: Check for the following faults:
The if-match mode of at least one node of the Route-policy should be the permit 
mode. When a Route-policy is used for the routing information filtering, if a piece 
of routing information does not pass the filtering of any node, then it means that 
the route information does not pass the filtering of the Route-policy. When all the 
nodes of the Route-policy are in the deny mode, then all the routing information 
cannot pass the filtering of the Route-policy.