Technical data

IP Routing Policy 181
The route policy supports importing the routes discovered by the following
protocols into the routing table:
Direct: The hop (or host) to which the local interface is directly connected.
Static: Static Route Configuration
RIP: Route discovered by RIP
OSPF: Route discovered by OSPF
OSPF-ASE: External route discovered by OSPF
OSPF-NSSA: NSSA route discovered by OSPF
BGP: Route acquired by BGP
If routing-process is BGP, you should also specify the process number or AS
number.
By default, the filtering of the received and distributed routes will not be
performed.
Displaying and Debugging the Routing Policy
Execute display command in all views to display the operation of the routing
policy configuration, and to verify the effect of the configuration.
Example: Configuring to
Filter the Received
Routing Information
Switch A communicates with Switch B, running OSPF protocol.
Redistribute three static routes through configuring the OSPF routing process
on the Switch A.
The route filtering rules can be configured on Switch B to make the received
three static routes partially visible and partially shielded. It means that routes in
the network segments 20.0.0.0 and 40.0.0.0 are visible while those in the
network segment 30.0.0.0 are shielded.
Figure 16 Filtering Received Routing Information
Configure Switch A:
1 Configure the IP address of VLAN interface.
[Switch A] interface vlan-interface 100
[Switch A-Vlan-interface100] ip address 10.0.0.1 255.0.0.0
[Switch A] interface vlan-interface 200
[Switch A-Vlan-interface200] ip address 12.0.0.1 255.0.0.0
2 Configure three static routes.
Table 139 Displaying and Debugging the Route Policy
Operation Command
Display the routing policy display route-policy [ route-policy-name ]
Display the path information of the AS filter in
BGP
display ip as-path-acl [ acl-number ]
Display the address prefix list information display ip ip-prefix [ ip-prefix-name ]
static 20.0.0.1/8
30.0.0.1/8
40.0.0.1/8
1.1.1.1
Switch A
Switch B
2.2.2.2
area 0