3Com Switch 8800 Configuration Guide Chapter 22 IP Routing Policy Configuration22-1122.4 Typical IP Routing Policy Configuration Example22.4.1 Configuring to Filter the Received Routing InformationI. Network requirementsz Switch A communicates with Switch B, running OSPF protocol. The router ID ofSwitch A is 1.1.1.1, and that of Switch B is 2.2.2.2.z Import three static routes through enabling the OSPF protocol on the Switch A.z The route filtering rules can be configured on Switch B to make the received threestatic routes partially visible and partially shielded. It means that routes in thenetwork segments 20.0.0.0 and 40.0.0.0 are visible while those in the networksegment 30.0.0.0 are shielded.II. Network diagramarea 0static 20.0.0.0/830.0.0.0/840.0.0.0/8Router ID:1.1.1.110.0.0.2/8Switch A Switch BVlan-interface20012.0.0.1/8Router ID:2.2.2.2Vlan-interface10010.0.0.1/8 Vlan-interface100Figure 22-1 Network diagram for filtering the received routing informationIII. Configuration procedure1) 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.0Configure 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.2Enable the OSPF protocol and specifies the number of the area to which the interfacebelongs.[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.255Import the static routes[Switch A-ospf-1] import-route static