Ip Route Policy Configuration Example; Configuring To Filter The Received Routing Information - H3C S9500 Series Operation Manual

Routing switches
Hide thumbs Also See for S9500 Series:
Table of Contents

Advertisement

Operation Manual – IP Route Policy
H3C S9500 Series Routing Switches
Display the address prefix
list information

1.4 IP Route Policy Configuration Example

1.4.1 Configuring to Filter the Received Routing Information

I. 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.
II. Network diagram
sta tic 20 .0.0 .0/8
3 0.0 .0.0 /8
4 0.0 .0.0 /8
V la n -in ter fa ce 20 0
12 .0.0 .1/8
Figure 1-1 Network diagram for filtering the received routing information
III. Configuration procedure
1)
Configure Switch A.
# Configure the IP address of the 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
# 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 specify the number of the area to which the interface
belongs.
To do...
display ip ip-prefix
[ ip-prefix-name ]
Ro ute r ID: 1 .1 .1.1
V la n- in te rfa ce1 0 0
1 0.0 .0 .1 /8
S witch A
Chapter 1 IP Route Policy Configuration
Use the command...
V la n -in ter fa ce 10 0
10 .0.0 .2 /8
1-11
Remarks
Available in any view
Ro u te r ID:2 .2 .2 .2
a rea 0
S wi tch B

Advertisement

Table of Contents
loading

Table of Contents