「Windows/PowerShell/NET TCPIP」の版間の差分

提供: Blanc de Zinc Wiki
移動先: 案内検索
18行目: 18行目:
 
  PS> Get-NetTransportFilter | Where DestinationPrefix -eq '*' | Get-NetTcpSetting
 
  PS> Get-NetTransportFilter | Where DestinationPrefix -eq '*' | Get-NetTcpSetting
 
CongestionProviderの値が現在の設定値<br />
 
CongestionProviderの値が現在の設定値<br />
Windows 8/8.1ではデフォルトでCTCPが設定されている
+
Windows 8/8.1ではデフォルトでCTCPが設定されている<br />
 +
なお、コマンドプロンプト等からnetshの下記コマンドを利用して設定値を参照しても正しい表示が得られずnoneとなる。
 +
C:\> netsh interface tcp show global

2014年6月16日 (月) 14:00時点における版

IPインターフェイス

MTUの設定値

確認

PS> Get-NetIPInterface

NlMtu(Bytes)が各インターフェイスのMTU設定値

設定

PS> Set-NetIPInterface -InterfaceIndex n -NlMtuBytes mtu

nはGet-NetIPInterfaceで確認できるインターフェイスの番号
mtuは設定したい値

TCP設定

輻輳プロバイダの設定

確認

PS> Get-NetTransportFilter | Where DestinationPrefix -eq '*' | Get-NetTcpSetting

CongestionProviderの値が現在の設定値
Windows 8/8.1ではデフォルトでCTCPが設定されている
なお、コマンドプロンプト等からnetshの下記コマンドを利用して設定値を参照しても正しい表示が得られずnoneとなる。

C:\> netsh interface tcp show global