Configuring BGP Basic Functions 381
Configuring BGP Basic 
Functions
The section describes BGP basic configuration.
n
■ This section does not differentiate between BGP and MP-BGP.
■ Since BGP employs TCP, you need to specify IP addresses of peers, which may 
not be neighboring routers.
■ Using logical links can also establish BGP peer relationships.
■ In general, IP addresses of loopback interfaces are used to improve stability of 
BGP connections.
Prerequisites The neighboring nodes are accessible to each other at the network layer.
Configuration Procedure Follow these steps to configure BGP basic functions:
“Configuring a Large Scale BGP 
Network” on page 390 
“Configuring BGP Peer Groups” on 
page 390 
Optional 
“Configuring BGP Community” on 
page 391 
Optional 
“Configuring a BGP Route Reflector” 
on page 392 
Optional 
“Configuring a BGP Confederation” 
on page 392 
Optional 
“Configuring BGP GR” on page 392 Optional
Task Remarks 
To do… Use the command…  Remarks 
Enter system view system-view - 
Enable BGP and enter BGP 
view
bgp as-number Required
Not enabled by default 
Specify a Router ID router-id ip-address Optional
If no IP addresses are 
configured for loopback 
interface and other interfaces, 
the task becomes required. 
Specify the AS number of a 
peer or a peer group
peer { group-name | 
ip-address } as-number 
as-number 
Required
Not specified by default 
Configure a description for a 
peer or a peer group
peer { group-name | 
ip-address } description 
description-text 
Optional
Not configured by default 
Enable IPv4 unicast address 
family for all peers
default ipv4-unicast Optional
Enabled by default 
Enable a peer peer ip-address enable Optional
Enabled by default 
Ignore a peer or peer group peer { group-name | 
ip-address } ignore 
Optional
Not ignored by default