Configure network settings for Location-Based Routing

This is a preview or early release feature.

If you haven't already done so, read Plan Location-Based Routing for Direct Routing to review other steps you'll need to take before you configure network settings for Location-Based Routing.

This article describes how to configure network settings for Location-Based Routing. After you deploy Phone System Direct Routing in your organization, the next steps are to create and set up network regions, network sites, and network subnets. To complete the steps in this article, you'll need some familiarity with PowerShell cmdlets. To learn more, see Teams PowerShell Overview.

Define network regions

A network region interconnects various parts of a network across multiple geographic areas. Use the New-CsTenantNetworkRegion cmdlet to define network regions. Note that the RegionID parameter is a logical name that represents the geography of the region and has no dependencies or restrictions and the CentralSite <site ID> parameter is optional.

New-CsTenantNetworkRegion -NetworkRegionID <region ID>  

In this example, we create a network region named India.

New-CsTenantNetworkRegion -NetworkRegionID "India"  

Define network sites

Use the New-CsTenantNetworkSite cmdlet to define network sites.

New-CsTenantNetworkSite -NetworkSiteID <site ID> -NetworkRegionID <region ID>

In this example, we create two new network sites, Delhi and Hyderabad, in the India region.

New-CsTenantNetworkSite -NetworkSiteID "Delhi" -NetworkRegionID "India" 
New-CsTenantNetworkSite -NetworkSiteID "Hyderabad" -NetworkRegionID "India" 

The following table shows the network sites defined in this example.

Site 1 Site 2
Site ID Site 1 (Delhi) Site 2 (Hyderabad)
Region ID Region 1 (India) Region 1 (India)

Define network subnets

Use the New-CsTenantNetworkSubnet cmdlet to define network subnets and associate them to network sites. Each internal subnet can only be associated with one site.

New-CsTenantNetworkSubnet -SubnetID <Subnet IP address> -MaskBits <Subnet bitmask> -NetworkSiteID <site ID> 

In this example, we create an association between subnet and the Delhi network site and between subnet 2001:4898:e8:25:844e:926f:85ad:dd8e and the Hyderabad network site.

New-CsTenantNetworkSubnet -SubnetID "" -MaskBits "24" -NetworkSiteID "Delhi" 
New-CsTenantNetworkSubnet -SubnetID "2001:4898:e8:25:844e:926f:85ad:dd8e" -MaskBits "120" -NetworkSiteID "Hyderabad" 

The following table shows the subnets defined in this example.

Site 1 Site 2
Subnet ID 2001:4898:e8:25:844e:926f:85ad:dd8e
Mask 24 120
Site ID Site (Delhi) Site 2 (Hyderabad)

For multiple subnets, you can import a CSV file by using a script such as the following.

Import-CSV C:\subnet.csv | foreach {New-CsTenantNetworkSubnet –SubnetID $_.SubnetID-MaskBits $_.Mask -NetworkSiteID $_.SiteID}  

In this example, the CSV file looks something like this:

Identity, Mask, SiteID, 24, Redmond, 24, Chicago, 25, Vancouver, 28, Paris

Define external subnets

Use the New-CsTenantTrustedIPAddress cmdlet to define external subnets and assign them to the tenant. You can define an unlimited number of subnets for a tenant.

New-CsTenantTrustedIPAddress -IPAddress <External IP address> -MaskBits <Subnet bitmask> -Description <description> 

For example:

New-CsTenantTrustedIPAddress -IPAddress -MaskBits 30 -Description "Contoso address"  

Next steps

Go to Enable Location-Based Routing for Direct Routing.