December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You want to apply the same options to several peers.
Peer groups allow you to apply the same BGP configuration to a number of neighbors at the same time:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#router bgpRouter1(config-router)#65500neighborEBGP-PEERSpeer-groupRouter1(config-router)#neighborEBGP-PEERSprefix-listPRE-RTFILTERinRouter1(config-router)#neighborEBGP-PEERSfilter-list15outRouter1(config-router)#neighbor192.168.1.5remote-asRouter1(config-router)#65520neighbor192.168.1.5peer-groupRouter1(config-router)#EBGP-PEERSneighbor192.168.1.9remote-asRouter1(config-router)#65521neighbor192.168.1.9peer-groupRouter1(config-router)#EBGP-PEERSneighbor192.168.1.13remote-asRouter1(config-router)#65522neighbor192.168.1.13peer-groupRouter1(config-router)#EBGP-PEERSneighbor192.168.1.17remote-asRouter1(config-router)#65523neighbor192.168.1.17peer-groupRouter1(config-router)#EBGP-PEERSexitRouter1(config)#endRouter1#
Peer groups have been around since IOS Version 11.0, but they had several unfortunate restrictions that were eliminated in Version 12.0. The most important of these were that all eBGP members of the same peer group had to be members of the same IP subnet, and you couldn’t act as a transit router to eBGP neighbors that were members of the same peer group. These restrictions have been removed now, but you will still sometimes see these ...