F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Configuration Guide-6PW100
472
709BConfiguring basic BGP
This section describes the tasks required for a BGP network to work.
1484BEnabling BGP
A router ID is the unique identifier of a BGP router in an AS.
• To ensure the uniqueness of a router ID and enhance availability, you can specify in BGP view the
IP address of a local loopback interface as the router ID.
• If no router ID is specified in BGP view, the global router ID is used.
• If the global router ID is used and then the interface that owns the router ID is removed, the router
selects a new router ID.
• If you specify a router ID in BGP view and then remove the interface that owns the router ID, the
router does not select a new router ID. To select a new router ID, use the undo router-id command
in BGP view.
To enable BGP:
Step Command Remarks
456. Enter system view.
system-view
N/A
457. Configure a global router ID. router id router-id
Optional.
By default, no global router ID is configured.
BGP uses the highest loopback interface IP
address as the router ID. If no loopback interface
IP address is available, BGP uses the highest
physical interface IP address as the router ID
regardless of the interface status.
458. Enable BGP and enter BGP
view.
bgp as-number
Not enabled by default.
A router can reside in only one AS, so the router
can run only one BGP process.
459. Specify a router ID.
router-id router-id
Optional.
By default, the global router ID is used.
1485BConfiguring a BGP peer
To configure a BGP peer:
Step Command Remarks
460. Enter system view.
system-view N/A
461. Enter BGP view or BGP-VPN
instance view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance view:
a. bgp as-number
b. ipv4-family
vpn-instance
vpn-instance-name
Use either approach.
462. Create a BGP peer and
specify its AS number.
peer ip-address as-number
as-number
By default, no BGP peer is created.