Bgp And Igp Interaction Configuration Example - H3C LS-5100-16P-SI-OVS-H3 Configuration

Low-end ethernet switches
Table of Contents

Advertisement

Routing
H3C Low-End Ethernet Switches Configuration Examples
# 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
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
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
[S200] ip ip-prefix ospf_import index 40 permit 166.1.3.0 24
Figure
3-7, OSPF and BGP run on S400/S200. RIPv2 and BGP run on
3-13
Chapter 3 Comprehensive Configuration
Example

Advertisement

Table of Contents
loading

Table of Contents