Professional Documents
Culture Documents
Simple BGP Configurations
Simple BGP Configurations
Simple BGP Configurations
The AS number is a unique identifier for your autonomous system. The router ID is used
to identify your router to other BGP routers.
The neighbor IP address is the IP address of the other BGP router that you want to
establish a neighbor relationship with. The neighbor AS number is the AS number of the
other BGP router.
The network address and network mask are the IP address and network mask of the
network that you want to advertise.
The show ip bgp summary command will show you a summary of your BGP
configuration, including the AS number, router ID, and networks that you are
advertising. The show ip bgp neighbors command will show you a list of your BGP
neighbors and the status of each neighbor relationship.
Example:
Router 1:
router bgp 1
bgp router-id x.x.y.y
network 172.x.y.0 mask 255.255.255.0
network 173.x.y.0 mask 255.255.255.0
neighbor 10.x.x.0 remote-as 2
Router 2:
router bgp 2
bgp router-id x.x.y
network 172.x.y.0 mask 255.255.255.0
network 173.x.y mask 255.255.255.0
neighbor 10.x.x.0 remote-as 1
neighbor 10.x.x.4 remote-as 3
Router 3:
router bgp 3
bgp router-id x.x.y.y
network 172.x.x.x.x mask 255.255.255.0
network 173.x.y.0 mask 255.255.255.0
neighbor 10.x.x.8 remote-as 2
neighbor 10.x.x.4 remote-as 4
Router 4:
router bgp 4
bgp router-id x.x.y.y
network 172.x.y.0 mask 255.255.255.0
network 173.x.y.x.x mask 255.255.255.0
neighbor 10.x.x.8 remote-as 3
To verify the BGP configuration, you can use the following commands:
Router 1:
Router 2:
The output of the show ip bgp summary command should look something like this:
BGP router identifier 192.168.1.1, local AS number 1
Neighbor V AS MsgRcvd MsgSent Discarded
192.168.2.1 4 2 1102 1101 0
The output of the show ip bgp neighbors command should look something like this:
If you see this output, then your BGP configuration is correct. You should now be able
to exchange routes with the other router.