Thanks as always Michael. I'll forward the script on to the guys that questioned it and they can run in their test environment with the real IPs.
Tony On 10 February 2014 11:07, Michael B. Smith <[email protected]> wrote: > I tested this twice on Exchange 2010 and came up with 1,245 (this is on > SP3 plus a beta CU, but I doubt that the beta CU makes any differences). > > > > These were all IPv4 addresses. I expect that IPv6 addresses would have a > FAR lower number. > > > > I have some guesses as to what leads to this limit, but I'm not aware of a > specific documented boundary. > > > > The script runs awhile (about 80 minutes in my test environment). But try > it yourself. In a test environment. > > > > New-ReceiveConnector test-connector -Bindings "0.0.0.0:10000" > -RemoteIpRanges 10.0.0.1 > > > > ($script:start = get-date).ToString() + " beginning" > > > > $connectorName = 'test-connector' > > > > [int]$script:count = 0 > > [bool]$script:gotErr = $false > > > > function add-it( [string] $network ) > > { > > if( -not $script:gotErr ) > > { > > for( $i = 1; $i -lt 254; $i++ ) > > { > > "attempting $network.$i > count = $($script:count)" > > $error.Clear() > > $rc = Get-ReceiveConnector > $connectorName > > $rc.RemoteIPRanges += > "$network.$i" > > Set-ReceiveConnector > $connectorName -RemoteIpRanges $rc.RemoteIPRanges > > if( !$? -or $error.Count > -ne 0 ) > > { > > > write-error "failed adding entry $network.$i after $count" > > > $script:gotErr = $true > > break > > } > > $script:count++ > > } > > } > > } > > > > add-it "10.0.1" > > (get-date).ToString() + " done adding 10.0.1" > > > > add-it "10.0.2" > > (get-date).ToString() + " done adding 10.0.2" > > > > add-it "10.0.3" > > (get-date).ToString() + " done adding 10.0.3" > > > > add-it "10.0.4" > > (get-date).ToString() + " done adding 10.0.4" > > > > add-it "10.0.5" > > (get-date).ToString() + " done adding 10.0.5" > > > > add-it "10.0.6" > > (get-date).ToString() + " done adding 10.0.6" > > > > "count = $($script:count)" > > (get-date).ToString() + " Done." > > ($start).ToString() + " was start time" > > > > Remove-ReceiveConnector 'test-connector' -confirm:$false > > > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Tony Patton > *Sent:* Friday, February 7, 2014 6:14 AM > *To:* Exchange List > *Subject:* [Exchange] Exchange 2010 Receive connector RemoteIPRanges limit > > > > Hi Folks, > > > > What is the upper limit for the number of IPs/entries in RemoteIPRanges on > a receive connector? > > > > In 2007 it was approx 1200, but I can't find a definitive answer for 2010. > > > > I've tried the deity Google & Technet, but not finding anything relevant. > > > > We are migrating an open relay from 2003 to 2010, at present there are > approx 500 IPs that relay via it and we want to close it down. > > > > I can reduce the list down to approx 250/300 by using subnets, but the > architect is saying that the limit is 100 which I really don't think is > correct. > > > > The environment is 4 x CAS/HT servers and the connector will be on all 4. > > > > They are running Exchange 2010 SP2 CU5, but will be going to SP3 & latest > CU within the next month. > > > > Thanks in advance, > > > > Tony >
