3com 8807 사용자 가이드

다운로드
페이지 883
Displaying and Debugging the Routing Policy
401
bgp: Route acquired by BGP
By default, the filtering of the received and advertised routes will not be 
performed.
Displaying and 
Debugging the 
Routing Policy
After the above configuration, execute the display command in any view to 
display the running of the routing policy configuration, and to verify the effect of 
the configuration.
Typical IP Routing 
Policy Configuration 
Example
Configuring to Filter the 
Received Routing 
Information
Network requirements
Switch A communicates with Switch B, running OSPF protocol. The router ID of 
Switch A is 1.1.1.1, and that of Switch B is 2.2.2.2.
Import three static routes through enabling the OSPF protocol 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.
Network diagram
Figure 95   Network diagram for filtering the received routing information
Configuration procedure
Configure Switch A:
# 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 
Table 402   Display and debug 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 ]
area 0
static 20.0.0.0/8
 30.0.0.0/8
 40.0.0.0/8
Router ID:1.1.1.1
10.0.0.2/8
Switch A
Switch B
Vlan-interface200
12.0.0.1/8
Router ID:2.2.2.2
Vlan-interface100
10.0.0.1/8
Vlan-interface100