cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2688
Views
0
Helpful
2
Replies

BGP and peer group configuration

fabio.marino
Level 1
Level 1

Hi to all, till now i was not able to figure out the basic configuration of peer group.

I'm using the following topology:

peer-group.jpg

Brief: R4, R3,R5,R6 belong to the AS 65100.

I load the following configuration into R4:

router bgp 65100
no synchronization
bgp log-neighbor-changes
neighbor internal peer-group
neighbor internal remote-as 65100
neighbor internal update-source Loopback0
neighbor internal next-hop-self
neighbor 192.168.24.1 peer-group internal
neighbor 192.168.25.1 peer-group internal
neighbor 192.168.26.1 peer-group internal

How i have to set R5,R3,R6 in order to be members of "internal" perr-group?

Thanks.

1 Accepted Solution

Accepted Solutions

Hi Fabio:

The first thing you must understand about peer-group is that they are a form to group a set of neighbors that have the same caracteristics applied. The peer-groups are local to the routers and you can declare diferents peer-groups in diferentes routers; for example you can aply the following configuration in R5

router bgp 65100
no synchronization
bgp log-neighbor-changes
neighbor other_peer_group peer-group
neighbor other_peer_group  remote-as 65100
neighbor other_peer_group  update-source Loopback0
neighbor other_peer_group  next-hop-self
neighbor 192.168.24.1 peer-group other_peer_group

neighbor 192.168.25.1 peer-group other_peer_group

neighbor 192.168.27.1 peer-group other_peer_group

It doesn't matter if in R4 you declare the peer group internal wich is diferent to the peer group define in R5, R4 and R5 will be iBGP neighbors. What I'm trying to say here is that peer-groups is a way to group neighbors that have de same caracteristics applied; It is clear if you apply the same configuration in R5 without the use of peer-groups

router bgp 65100
no synchronization
bgp log-neighbor-changes
neighbor 192.168.24.1 remote-as 65100
neighbor 192.168.24.1 update-source Loopback0
neighbor 192.168.24.1 next-hop-self

!

neighbor 192.168.25.1 remote-as 65100
neighbor 192.168.25.1 update-source Loopback0
neighbor 192.168.25.1 next-hop-self

!

neighbor 192.168.27.1 remote-as 65100
neighbor 192.168.27.1 update-source Loopback0
neighbor 192.168.27.1 next-hop-self

As you can see here if you don't configure peer-groups the configuration is longer. Peer-groups are a form to group neighbors and don't have to be the same in all the router to become iBGP neighbors.

View solution in original post

2 Replies 2

Hi Fabio:

The first thing you must understand about peer-group is that they are a form to group a set of neighbors that have the same caracteristics applied. The peer-groups are local to the routers and you can declare diferents peer-groups in diferentes routers; for example you can aply the following configuration in R5

router bgp 65100
no synchronization
bgp log-neighbor-changes
neighbor other_peer_group peer-group
neighbor other_peer_group  remote-as 65100
neighbor other_peer_group  update-source Loopback0
neighbor other_peer_group  next-hop-self
neighbor 192.168.24.1 peer-group other_peer_group

neighbor 192.168.25.1 peer-group other_peer_group

neighbor 192.168.27.1 peer-group other_peer_group

It doesn't matter if in R4 you declare the peer group internal wich is diferent to the peer group define in R5, R4 and R5 will be iBGP neighbors. What I'm trying to say here is that peer-groups is a way to group neighbors that have de same caracteristics applied; It is clear if you apply the same configuration in R5 without the use of peer-groups

router bgp 65100
no synchronization
bgp log-neighbor-changes
neighbor 192.168.24.1 remote-as 65100
neighbor 192.168.24.1 update-source Loopback0
neighbor 192.168.24.1 next-hop-self

!

neighbor 192.168.25.1 remote-as 65100
neighbor 192.168.25.1 update-source Loopback0
neighbor 192.168.25.1 next-hop-self

!

neighbor 192.168.27.1 remote-as 65100
neighbor 192.168.27.1 update-source Loopback0
neighbor 192.168.27.1 next-hop-self

As you can see here if you don't configure peer-groups the configuration is longer. Peer-groups are a form to group neighbors and don't have to be the same in all the router to become iBGP neighbors.

Thanks Jose for you answer. So far i had no time to test your suggestion, however thanks for your time.

Review Cisco Networking for a $25 gift card