
Route Duration: 00h19m10s
Direct Out-interface: GigabitEthernet1/0/5
Original nexthop: 10.1.1.2
Qos information : 0x0
AS-path 65002, origin igp, MED 0, pref-val 0, valid, external,
best
, select,
active, pre 255
Advertised to such 2 peers:
10.1.1.2
10.1.2.2
BGP routing table entry information of 2.2.2.9/32:
From:
10.1.2.2
(192.168.2.4)
Route Duration: 00h19m05s
Direct Out-interface: GigabitEthernet1/0/10
Original nexthop: 10.1.2.2
Qos information : 0x0
AS-path 65002, origin igp, MED 0, pref-val 0, valid, external, pre 255,
not
preferred for peer address
Not advertised to any peer yet
The preceding command output shows that the route with the next hop address 10.1.1.2 is
selected as the optimal route because its peer IP address is smaller than that of the other route.
8.28 Configuration Examples
BGP configuration examples explain networking requirements, networking diagram,
configuration notes, configuration roadmap, and configuration procedure.
Follow-up Procedure
NOTE
This document takes interface numbers and link types of the NE40E-X8 as an example. In working
situations, the actual interface numbers and link types may be different from those used in this document.
8.28.1 Example for Configuring Basic BGP Functions
After configuring basic BGP functions, you can build up a BGP network to use BGP to transmit
routing information.
Networking Requirements
Multiple ASs exist in a region. To access each other, these ASs must exchange their local routes.
As multiple routers exist in the ASs, there are a large number of routes that change frequently.
How to transmit a great deal of routing information efficiently between ASs without consuming
lots of bandwidth resources has become a problem. BGP can be used to solve this problem.
On the network shown in
, Router A is in AS 65008. Routers B, C, and D are in AS
65009. The routing tables of these routers store many routes, and the routes change frequently.
After BGP is enabled on the routers, the routers can exchange routing information. When routes
of one router changes, the router will send Update messages carrying only changed routing
information to its peers, and will not send its entire routing table. This greatly reduces bandwidth
consumption.
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.
959