File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed
winserver2016-ps/storagereplica
winserver2019-ps/storagereplica
winserver2022-ps/storagereplica Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,9 @@ Any networks not specified by this cmdlet are no longer used by Storage Replica.
3030## EXAMPLES
3131
3232### Example 1: Set a constraint for stand-alone computers
33-
33+ ```
3434This command lists available interface indexes by using the **Get-NetIPConfiguration** cmdlet. Run this command on both servers.
3535
36- ```
3736PS C:\>Get-NetIPConfiguration
3837InterfaceAlias : Ethernet
3938InterfaceIndex : 2
@@ -56,11 +55,9 @@ IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
5655IPv4DefaultGateway : 172.24.18.1
5756DNSServer : 10.177.9.210
5857 10.177.9.211
59- ```
6058
6159The next command sets the network constraint for interfaces and replication groups. The final command makes sure that the constraint takes effect immediately by using the Update-SmbMultichannelConnection cmdlet.
6260
63- ```
6461PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
6562C:\PS> Update-SmbMultichannelConnection
6663```
Original file line number Diff line number Diff line change @@ -30,10 +30,9 @@ Any networks not specified by this cmdlet are no longer used by Storage Replica.
3030## EXAMPLES
3131
3232### Example 1: Set a constraint for stand-alone computers
33-
33+ ```
3434This command lists available interface indexes by using the **Get-NetIPConfiguration** cmdlet. Run this command on both servers.
3535
36- ```
3736PS C:\>Get-NetIPConfiguration
3837InterfaceAlias : Ethernet
3938InterfaceIndex : 2
@@ -56,11 +55,9 @@ IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
5655IPv4DefaultGateway : 172.24.18.1
5756DNSServer : 10.177.9.210
5857 10.177.9.211
59- ```
6058
6159The next command sets the network constraint for interfaces and replication groups. The final command makes sure that the constraint takes effect immediately by using the **Update-SmbMultichannelConnection** cmdlet.
6260
63- ```
6461PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
6562C:\PS> Update-SmbMultichannelConnection
6663```
Original file line number Diff line number Diff line change @@ -30,10 +30,9 @@ Any networks not specified by this cmdlet are no longer used by Storage Replica.
3030## EXAMPLES
3131
3232### Example 1: Set a constraint for stand-alone computers
33-
33+ ```
3434This command lists available interface indexes by using the **Get-NetIPConfiguration** cmdlet. Run this command on both servers.
3535
36- ```
3736PS C:\>Get-NetIPConfiguration
3837InterfaceAlias : Ethernet
3938InterfaceIndex : 2
@@ -56,11 +55,9 @@ IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
5655IPv4DefaultGateway : 172.24.18.1
5756DNSServer : 10.177.9.210
5857 10.177.9.211
59- ```
6058
6159The next command sets the network constraint for interfaces and replication groups. The final command makes sure that the constraint takes effect immediately by using the Update-SmbMultichannelConnection cmdlet.
6260
63- ```
6461PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
6562C:\PS> Update-SmbMultichannelConnection
6663```
You can’t perform that action at this time.
0 commit comments