H3C S7500 Series Ethernet Switches Release 3135 DHCP Configuration Examples

Routing Configuration Examples
H3C S7500 Series Ethernet Switches Release 3135 Chapter 3 Comprehensive Configuration Example
3-15
[S400] ip ip-prefix ospf_import index 10 permit 162.1.1.0 24
[S400] ip ip-prefix ospf_import index 20 permit 162.1.2.0 24
[S400] ip ip-prefix ospf_import index 30 permit 162.1.3.0 24
[S400] ip ip-prefix ospf_import index 40 permit 162.1.4.0 24
# Create a routing policy named ospf_import with the match mode as permit. Define
an if-match clause to permit the routes whose destination addresses match IP prefix list
ospf_import.
[S400] route-policy ospf_import permit node 10
[S400-route-policy] if-match ip-prefix ospf_import
[S400-route-policy] quit
# Redistribute BGP routes into OSPF and apply the routing policy named ospf_import.
[S400] ospf
[S400-ospf-1] import-route bgp route-policy ospf_import
3.2.6 Route Backup Configuration Example
I. Network requirements
As shown in Figure 3-8, implement route backup on S200_10. Run OSPF between
S200_10 and S200_0. The OSPF route is the primary route. Configure a default route
between S200_10 and S300_A. This route is the backup route. When the primary route
cannot work, the device switches to the backup route automatically. When the primary
route becomes feasible, the device switches to the primary route automatically. To
achieve the route backup of S200_10, configure a static route to S200_10 on S300_A
and redistribute this route into RIPv2.
II. Network diagram
Device Interface IP address AS
S300_A Vlan-int 665 166.1.5.2/24 300
S200_10 Vlan-int 665 166.1.5.1/24
Vlan-int 621 162.1.1.1/24
Vlan-int 622 162.1.2.1/24
200
Figure 3-8 Network diagram for route backup