Sie sind auf Seite 1von 2

CCIEv5 BGP Dynamic Neighbor By CCSI: Yasser Auda

BGP Dynamic neighbor Lab

BGP dynamic neighbor support allows BGP peering to a group of remote neighbors that are defined by a
range of IP addresses. Each range can be configured as a subnet IP address. BGP dynamic neighbors are
configured using a range of IP addresses and BGP peer groups.

router bgp 100


nei group192 peer-group < a peer group named group192 is created. This group will be used as a listen
range group.

bgp listen limit 200 <define the maximum number of BGP dynamic subnet range neighbors that can be
created.

bgp listen range 192.168.0.0/16 peer-group group192 < Associates a subnet range with a BGP peer
group and activates the BGP dynamic neighbors feature

neighbor group192 ebgp-multihop 255 <Accepts and attempts BGP connections to external peers
residing on networks that are not directly connected.

neighbor group192 remote-as 40000 alternate-as 50000 < Use the optional alternate-as keyword and
autonomous-system-number argument to identify up to five alternate autonomous system numbers for
listen range neighbors. In this example, the peer group named group192 is configured with two possible
autonomous system numbers.

address-family ipv4 unicast


neighbor group192 activate

1
CCIEv5 BGP Dynamic Neighbor By CCSI: Yasser Auda

R1
router bgp 100
nei group192 peer-group
bgp listen limit 200
bgp listen range 192.168.0.0/16 peer-group group192
neighbor group192 ebgp-multihop 2
neighbor group192 remote-as 200 alternate-as 300
address-family ipv4 unicast
neighbor group192 activate

R2
R2(config-if)#router bgp 200
R2(config-router)#nei 192.168.1.1 remote-as 100
R2(config-router)#net 2.2.2.2 mask 255.255.255.255

R3
R3(config-if)#router bgp 300
R3(config-router)#nei 192.168.2.1 remote-as 100
R3(config-router)#net 3.3.3.3 mask 255.255.255.255

R1-7200#sh ip bgp summ


Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
*192.168.1.2 4 200 6 8 6 0 0 00:01:39 1
*192.168.2.3 4 300 6 7 6 0 0 00:01:22 1
* Dynamically created based on a listen range command
Dynamically created neighbors: 2, Subnet ranges: 1
BGP peergroup group192 listen range group members:
192.168.0.0/16
Total dynamically created neighbors: 2/(200 max), Subnet ranges: 1

R1-7200#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 2.2.2.2/32 192.168.1.2 0 0 200 i
*> 3.3.3.3/32 192.168.2.3 0 0 300 i

Resources
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-3sg/irg-xe-3sg-
book/irg-dynamic-neighbor.html

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/15-mt/irg-15-mt-
book/irg-dynamic-neighbor.pdf

Good Luck
CCSI: Yasser Auda
https://www.facebook.com/YasserRamzyAuda
https://learningnetwork.cisco.com/people/yasser.r.a?view=documents
https://www.youtube.com/user/yasserramzyauda