Associate a subnet with a network site in Lync Server 2013

Lync Server 2013

Topic Last Modified: 2012-10-19

Every subnet in your network must be associated with a specific network site, because subnet information is used to determine the network site on which an endpoint is located while a new session is initiated. When the location of each party in a session is known, advanced Enterprise Voice features can apply that information to determine how to handle the call setup or routing.

All configured public IP addresses of the Audio/Video Edge Servers in your deployment must be added to your network configuration settings. These IP addresses are added as subnets with a mask of 32. The associated network site should correspond to the appropriate configured network site. For example, the public IP address that corresponds to the A/V Edge Server in central site Chicago would be NetworkSiteID Chicago. For details about public IP addresses, see Determine external A/V firewall and port requirements for Lync Server 2013 in the Planning documentation.
A Key Health Indicator (KHI) alert is raised, specifying a list of IP addresses that are present in your network but are either not associated with a subnet, or the subnet that includes the IP addresses is not associated with a network site. This alert will not be raised more than once within an 8-hour period. The relevant alert information and an example are as follows:
Source: CS Bandwidth Policy Service (Core)
Event number: 36034
Level: 2
Description: The subnets for the following IP addresses: <List of IP Addresses> are either not configured or the subnets are not associated to a Network Site.
Cause: The subnets for the corresponding IP addresses are missing from the network configuration settings or the subnets are not associated to a network site.
Resolution: Add subnets corresponding to the list of IP addresses into the network configuration settings and associate every subnet to a network site.
For example, if the IP address list in the alert specifies and, either these IP addresses are not associated with a subnet or the subnet they are associated with does not belong to a network site. If and are the corresponding subnets for these addresses, you can resolve this issue as follows:
  1. Be sure that IP address is associated with the subnet and IP address is associated with the subnet.

  2. Be sure that the and subnets are each associated with a network site.

For details about working with network subnets, see the Lync Server Management Shell documentation for the following cmdlets:

If you are working with a large number of subnets, we recommend using a comma-separated values (CSV) file to associate the subnets to sites. The CSV file must have the following four columns: IPAddress, mask, description, NetworkSiteID.

  1. Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2013, and then click Lync Server Management Shell.

  2. Run the New-CsNetworkSubnet cmdlet to associate a subnet with a network site:

    New-CsNetworkSubnet -SubnetID <String> -MaskBits <Int32> -NetworkSiteID <String>

    For example:

    New-CsNetworkSubnet -SubnetID - MaskBits 20 -NetworkSiteID Chicago

    In this example, you created an association between the subnet and the network site “Chicago”.

  3. Repeat step 2 for all subnets in your topology.

  1. Create a CSV file that includes all of the subnets you want to add. For example, create a file named subnet.csv with the following content:

    IPAddress, mask, description, NetworkSiteID, 24, "NA:Subnet in Portland", Portland, 24, "NA:Subnet in Reno", Reno, 25, "EMEA:Subnet in Warsaw", Warsaw, 31, "EMEA:Subnet in Paris", Paris

  2. Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2013, and then click Lync Server Management Shell.

  3. Run the following cmdlet to import subnet.csv, and then store its contents in the Lync Server management store:

    import-csv subnet.csv | foreach {New-CSNCSSubnet  _.IPAddress -MaskBits $_.mask -Description $_.description -NetworkSiteID $_.NetworkSiteID}

  1. Open a browser window, and then enter the Admin URL to open the Lync Server Control Panel. For details about the different methods you can use to start Lync Server Control Panel, see Open Lync Server 2013 administrative tools.

  2. In the left navigation bar, click Network Configuration.

  3. Click the Subnet navigation button.

  4. Click New.

  5. On the New Subnet page, click Subnet ID, and then type the first address in the IP address range defined by the subnet you want to associate with a network site.

  6. Click Mask, and then type the bitmask to apply to the subnet.

  7. Click Network site ID, and then select the site ID of the site to which you are adding this subnet.

    If you have not yet created network sites, this list will be empty. For details about the procedure, see Create or modify a network site in Lync Server 2013. You can also retrieve site IDs for your deployment by running the Get-CsNetworkSite cmdlet. For details, see the Lync Server Management Shell documentation.
  8. Optionally, click Description, and then type additional information to describe this subnet.

  9. Click Commit.

Repeat these steps to add other subnets to a network site.