, Router A and Router B are EBGP peers, and Router B, Router C, and Router D
are IBGP peers.
Figure 8-17
Networking
AS 100
10.1.1.1/30
10.1.1.2/30
10.1.3.1/30
10.1.3.2/30
10.1.2.1/30
10.1.2.2/30
10.1.4.1/30
10.1.4.2/30
Router B
Router D
Router C
AS 65001
IBGP
IBGP
IBGP
Router A
The configurations on Router C are as follows:
#
bgp 65001
#
ipv4-family unicast
network 10.1.2.0 255.255.255.252 //Advertise the route
10.1.2.0/30.
network 10.1.3.0 255.255.255.252 //Advertise the route
10.1.3.0/30.
import-route direct //Import direct routes.
#
The configurations on Router D are as follows:
#
bgp 65001
#
ipv4-family unicast
network 10.1.3.0 255.255.255.252 //Advertise the route
10.1.3.0/30.
network 10.1.4.0 255.255.255.252 //Advertise the route
10.1.4.0/30.
import-route direct //Import direct routes.
#
Run the
display bgp routing-table
[
ip-address
] command to check the configurations.
# Display the routing table of Router D.
[RouterD]
display bgp routing-table
BGP Local router ID is 10.1.3.2
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 10
Network NextHop MED LocPrf PrefVal Path/Ogn
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
8 BGP Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
921