386 CHAPTER 30: BGP CONFIGURATION
Enabling BGP and IGP
Route Synchronization
By default, when a BGP router receives an IBGP route, it only checks the 
reachability of the route’s next hop before advertisement. With BGP and IGP 
synchronization configured, the BGP router cannot advertise the route to EBGP 
peers unless the route is also available in the IGP routing table.
Follow these steps to configure BGP and IGP synchronization:
Configuring BGP Route
Dampening
By configuring BGP route dampening, you can suppress unstable routes from 
neither adding them to the local routing table nor advertising them to BGP peers.
Follow these steps to configure BGP route dampening:
Configuring BGP 
Route Attributes
Prerequisites Before configuring this task, you have configured BGP basic functions.
Configuration Procedure You can configure BGP route attributes to influence BGP route selection.
Follow these steps to configure BGP route attributes:
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Enter BGP view  bgp as-number - 
Enable synchronization 
between BGP and IGP 
synchronization Required
Not enabled by default
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Enter BGP view  bgp as-number - 
Configure BGP route 
dampening 
dampening [ half-life-reachable 
half-life-unreachable reuse suppress 
ceiling | route-policy 
route-policy-name ] * 
Optional
Not configured by default
To do… Use the command…  Remarks 
Enter system view system-view - 
Enter BGP view bgp as-number - 
Configure preferences for external, 
internal, local routes
preference 
{ external-preference 
internal-preference 
local-preference | 
route-policy 
route-policy-name } 
Optional
The default 
preferences of 
external, internal, 
and local routes are 
255, 255, and 130 
respectively. 
Configure the default local preference default local-preference 
value 
Optional
100 by default