Windows/PowerShell/NET TCPIP

提供: Blanc de Zinc Wiki
< Windows
2017年10月19日 (木) 13:21時点におけるZinc (トーク | 投稿記録)による版 (Zinc がページ「Windows/NET TCPIP」を「Windows/PowerShell/NET TCPIP」に移動しました)

移動先: 案内検索

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,10ではデフォルトでCTCPが設定されている
なお、コマンドプロンプト等からnetshの下記コマンドを利用して設定値を参照しても正しい表示が得られずnoneとなる。

C:\> netsh interface tcp show global