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-13
# Apply ACL 2000 to incoming RIP routes.
[S300_B] rip
[S300_B-rip] filter-policy 2000 import
# Configure a default route and specify the next-hop IP address as 166.1.2.1.
[S300_B] ip route-static 0.0.0.0 0.0.0.0 166.1.2.1 preference 60
3.2.5 BGP and IGP Interaction Configuration Example
I. Network requirements
As shown in Figure 3-7, OSPF and BGP run on S400/S200. RIPv2 and BGP run on
S300. To ensure that devices in each AS can learn network topologies of other ASs,
configure interaction between IGP and BGP to share routes. When redistributing routes
from IGP to BGP, apply a routing policy to redistribute routes with IP prefixes
162.1.1.0/24, 162.1.2.0/24, 162.1.3.0/24, 162.1.4.0/24, 166.1.3.0/24, and 166.1.4.0/24
only.
II. Network diagram
Figure 3-7 Network diagram for BGP and IGP interaction
III. Configuration procedure
z Configure interaction between IGP and BGP on S200.
# Redistribute OSPF routes into BGP.
<S200> system-view
[S200] bgp 200
[S200-bgp] import-route ospf 1
[S200-bgp] quit
# Define a prefix list named ospf_import and permit the routes with IP prefixes
162.1.3.0/24, 162.1.4.0/24, 166.1.3.0/24, or 166.1.4.0/24.
[S200] ip ip-prefix ospf_import index 10 permit 162.1.3.0 24
[S200] ip ip-prefix ospf_import index 20 permit 162.1.4.0 24
[S200] ip ip-prefix ospf_import index 30 permit 166.1.4.0 24