Chapter 1 What’s New for FortiOS 5.2.1 : Advanced Routing : BGP Neighbor Groups
  
BGP Neighbor Groups
A Border Gateway Protocol (BGP) neighbor group can now be configured automatically based on a range of neighbors' source addresses, rather than configuring neighbors individually. A maximum number of neighbors can be set for each group to be between 1 and 1000.
Syntax
config router bgp
config neighbor-group
edit <name>
set ... (same configuration options as config neighbor)
next
config neighbor-range
edit <id>
set prefix <class_ip&net_netmask>
set max-neighbor-num <integer>
set neighbor-group <name>
end
end
end