このエントリーをはてなブックマークに追加


ネットワークインタフェースの設定および確認方法


コマンドプロンプトの起動

  1. コマンドプロンプトcmd-prompt.gifを起動します。
    []→[ファイル名を指定して実行(R)...]から実行もできます。
    cmdと入力し[OK]ボタンをクリックします。
    start-r-cmd.gif

IPアドレスの確認(ネットワークインタフェースの状態確認)

以下のコマンドを入力しenterキーを押します。

ipconfig

ipconfigコマンドを実行するとネットワークインタフェースの設定状態が表示されます。
以下のスクリーンショットでは、無線LANにIPアドレス192.168.0.22が設定されていことが確認できます。
有線LANはMedia disconnectedと表示されており、ネットワークケーブルが接続されていないことを意味しています。

ipconfig-01.gif
 

ネットワークインタフェースの詳細情報の確認

詳細な情報を出力するには、/allオプションを追加しenterキーを押します。

ipconfig /all

以下のスクリーンショットを見るとDNSサーバなどの情報も表示されます。

ipconfig-02.gif

ipconfigの他オプション

以下のように/?オプションを追加しコマンドを実行するとipconfigの使用方法が表示されます。

ipconfig /?

参考資料: http://support.microsoft.com/kb/314850/ja

C:\>ipconfig /?

USAGE:
    ipconfig [/? | /all | /renew [adapter] | /release [adapter] |
              /flushdns | /displaydns | /registerdns |
              /showclassid adapter |
              /setclassid adapter [classid] ]

where
    adapter         Connection name
                   (wildcard characters * and ? allowed, see examples)

    Options:
       /?           Display this help message
       /all         Display full configuration information.
       /release     Release the IP address for the specified adapter.
       /renew       Renew the IP address for the specified adapter.
       /flushdns    Purges the DNS Resolver cache.
       /registerdns Refreshes all DHCP leases and re-registers DNS names
       /displaydns  Display the contents of the DNS Resolver Cache.
       /showclassid Displays all the dhcp class IDs allowed for adapter.
       /setclassid  Modifies the dhcp class id.

The default is to display only the IP address, subnet mask and
default gateway for each adapter bound to TCP/IP.

For Release and Renew, if no adapter name is specified, then the IP address
leases for all adapters bound to TCP/IP will be released or renewed.

For Setclassid, if no ClassId is specified, then the ClassId is removed.

Examples:
    > ipconfig                   ... Show information.
    > ipconfig /all              ... Show detailed information
    > ipconfig /renew            ... renew all adapters
    > ipconfig /renew EL*        ... renew any connection that has its
                                     name starting with EL
    > ipconfig /release *Con*    ... release all matching connections,
                                     eg. "Local Area Connection 1" or
                                         "Local Area Connection 2"

接続の解放を行う/releaseオプションやアダプタの更新処理を行う/renewなどがあります。

/release, /renewはDHCPサーバからIPアドレスを取得する構成の場合のみ使用できます。

ipconfig /release の例

ネットワーク接続名を指定して、ネットワークを解放する例を以下に記します。

  • ipconfigにて接続名を確認します。
    ローカル エリア, ワイヤレス ネットワーク接続, Bluetooth Networkの3つが確認できます。(当方の環境)
C:\>ipconfig

Windows IP Configuration


Ethernet adapter ローカル エリア接続:

        Media State . . . . . . . . . . . : Media disconnected

Ethernet adapter ワイヤレス ネットワーク接続:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.0.22
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.0.1

Ethernet adapter Bluetooth Network:

        Media State . . . . . . . . . . . : Media disconnected
  • ローカル エリア接続の更新 ネットワークケーブルが接続されていないのでもちろんエラーとなりました。
    C:\>ipconfig /renew *ローカル*
    
    Windows IP Configuration
No operation can be performed on ローカル エリア接続 while it has its media disconnected.
  •  ワイヤレス接続の解放
    IP Adress, SubnetMaskが0.0.0.0になっています。(解放されました)
    C:\>ipconfig /release *ワイヤレス*
    
    Windows IP Configuration
    
    
    Ethernet adapter ローカル エリア接続:
    
            Media State . . . . . . . . . . . : Media disconnected
    
    Ethernet adapter ワイヤレス ネットワーク接続:
    
            Connection-specific DNS Suffix  . :
            IP Address. . . . . . . . . . . . : 0.0.0.0
            Subnet Mask . . . . . . . . . . . : 0.0.0.0
            Default Gateway . . . . . . . . . :
    
    Ethernet adapter Bluetooth Network:
    
            Media State . . . . . . . . . . . : Media disconnected

ipconfig /renew の例

ワイヤレス ネットワークの更新(再接続)
/renewオプションによりIPアドレスを取得しネットワークが更新されました。

C:\>ipconfig /renew *ワイヤレス*

Windows IP Configuration


Ethernet adapter ローカル エリア接続:

        Media State . . . . . . . . . . . : Media disconnected

Ethernet adapter ワイヤレス ネットワーク接続:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.0.22
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.0.1

Ethernet adapter Bluetooth Network:

        Media State . . . . . . . . . . . : Media disconnected
 

 

添付ファイル: filecmd-prompt.gif 761件 [詳細] fileipconfig-01.gif 1519件 [詳細] fileipconfig-02.gif 1160件 [詳細] filestart-r-cmd.gif 861件 [詳細]

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2015-03-20 (金) 22:49:31