F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101
258
Enabling 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:
Ste
p
Command
Remarks
1. Enter system view. system-view N/A
2. 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.
3. 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.
4. Specify a router ID.
router-id router-id
Optional.
By default, the global router ID is
used.
Configuring a BGP peer
To configure a BGP peer:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter BGP view.
bgp as-number
N/A
3. Create a BGP peer and
specify its AS number.
peer ip-address as-number
as-number
By default, no BGP peer is created.
4. Enable the default use of IPv4
unicast address family for the
peers that are established
using the peer as-number
command.
default ipv4-unicast
Optional.
Enabled by default.
This command is not supported in
BGP-VPN instance view.
5. Enable a peer.
peer ip-address enable
Optional.
Enabled by default.