beautypg.com

Bgp and igp synchronization configuration example, Network requirements, Configuration procedure – H3C Technologies H3C SR8800 User Manual

Page 259

background image

243

BGP and IGP synchronization configuration example

Network requirements

As shown in

Figure 91

, all routers of company A belong to AS 65008 while all routers of company B

belong to AS 65009. AS 65008 and AS 65009 are connected through Router A and Router B. It is

required that Router A can access network 9.1.2.0/24 in AS 65009, and Router C can access network
8.1.1.0/24 in AS 65008.

Figure 91 Network diagram

Configuration procedure

1.

Configure IP addresses for interfaces. (Details not shown)

2.

Configure OSPF:
Enable OSPF in AS 65009, so that Router B can obtain the route to 9.1.2.0/24.
# Configure Router B.

system-view

[RouterB] ospf 1

[RouterB-ospf-1] area 0

[RouterB-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0

[RouterB-ospf-1-area-0.0.0.0] network 9.1.1.0 0.0.0.255

[RouterB-ospf-1-area-0.0.0.0] quit

[RouterB-ospf-1] quit

# Configure Router C.

system-view

[RouterC] ospf 1

[RouterC-ospf-1] import-route direct

[RouterC-ospf-1] area 0

[RouterC-ospf-1-area-0.0.0.0] network 9.1.1.0 0.0.0.255

[RouterC-ospf-1-area-0.0.0.0] quit

[RouterC-ospf-1] quit

3.

Configure the EBGP connection:
Configure the EBGP connection and inject network 8.1.1.0/24 to the BGP routing table of Router
A, so that Router B can obtain the route to 8.1.1.0/24.
# Configure Router A.

system-view

[RouterA] bgp 65008

[RouterA-bgp] router-id 1.1.1.1

[RouterA-bgp] peer 3.1.1.1 as-number 65009

[RouterA-bgp] network 8.1.1.0 24