1. Enable
BGP
Activates
BGP on the device with a specified Autonomous System number.
Command: router bgp <AS-number>
2.
Configure BGP Router ID
Sets
a unique identifier for the BGP router, usually an IP address to ensure
consistent identification.
Command: router-id
<router-id>
3.
Configure BGP Neighbor
Defines
a BGP neighbor by specifying its IP address and AS number.
neighbor <IP-address>
remote-as <AS-number>
no neighbor <IP-address>
4. Set BGP
Keep-alive and Hold Time
Configures
the BGP hold time to detect when a neighbor becomes unreachable.
Command:
neighbor <IP-address>
timers <keepalive> <hold-time>
5. BGP
Maximum Path Configuration
Sets
the maximum number of parallel paths that BGP should consider for load
balancing.
Command:
maximum-paths <number>
6. Clear
BGP Sessions
Clears
or resets BGP sessions, useful for applying new configurations immediately.
clear bgp all
clear bgp all <neighbor-IP>
7. Display
BGP Information
Shows
bgp information for all address families.
Command:
show bgp all
8. Display
BGP Route Information
Displays
the BGP routing table with details of routes learned through BGP.
Command:
show bgp ipv4
show bgp ipv6
9. BGP
Add Path Configuration
Add
Path allows BGP to advertise multiple paths to a destination.
· Command to Advertise All Paths:
addpath-tx-all-paths
This command enables BGP to advertise all paths to a neighbor.
· Command to Advertise Best Path Per AS:
addpath-tx-bestpath-per-as
This command configures BGP to advertise only the best path per AS to a neighbor.
10. BGP
Address Family Configuration
Defines the address families (IPv4, IPv6) for BGP.
address-family ipv4 unicast
address-family ipv6 unicast