You can use the following command to verify and confirm your BGP configurations. We use the topology below as an example.
Read about iBGP
To Verify iBGP Configuration, use the show ip bgp neighbors command.
The show ip bgp neighbors command displays information about the TCP and Border Gateway Protocol (BGP) connections. The ‘Established’ statement means that the connection or relationship between peers are working properly.
How to verify eBGP Configuration
To Verify eBGP Configuration, use the show ip bgp neighbors command. use the topology below as an example:
R1#show ip bgp neighbors
BGP neighbor is 172.17.100.2, remote AS 556, external link
BGP version 4, remote router ID 192.168.100.2
BGP state=Established, up 00:05:25
Last read 00:05:25, last write 00:05:25, hold time is 180, keepalive interval is 60 seconds
The show ip bgp neighbors command to display information about the TCP and Border Gateway Protocol (BGP) connections and verify if the BGP peer is established. The output of the show ip bgp neighbors command above shows the BGP state as ‘Established’, which indicates that the BGP peer relationship has been established successfully.
Note: there are similarities on the output, but the phrase ‘internal or external link’ show if the BGP configuration is internal external.