3Com 3.01.01 Switch User Manual


 
158 CHAPTER 5: IP ROUTING PROTOCOL OPERATION
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 the 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.
[Switch A]ip route-static 20.0.0.1 255.255.255.255 12.0.0.1
[Switch A]ip route-static 30.0.0.1 255.255.255.255 12.0.0.1
[Switch A]ip route-static 40.0.0.1 255.255.255.255 12.0.0.1
3 Enable 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]area 0
[Switch A-ospf-area-0.0.0.0]network 10.0.0.0 0.0.0.255
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