コマンドプロンプト/ネットワークインタフェースの設定および確認(ipconfig)
の編集
Top
/
コマンドプロンプト
/
ネットワークインタフェースの設定および確認(ipconfig)
[
トップ
] [
編集
|
差分
|
バックアップ
|
添付
|
リロード
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
-- 雛形とするページ --
(no template pages)
#navi(../) * ネットワークインタフェースの設定および確認方法 [#def298dc] #contents #htmlinsertpcsp(win-top.html,win-sp.html) ** コマンドプロンプトの起動 [#i44df63c] +コマンドプロンプト&ref(cmd-prompt.gif);を起動します。~ []→[ファイル名を指定して実行(R)...]から実行もできます。~ ''cmd''と入力し[OK]ボタンをクリックします。 #ref(start-r-cmd.gif) ** IPアドレスの確認(ネットワークインタフェースの状態確認) [#t8763e52] 以下のコマンドを入力しenterキーを押します。 ipconfig ''ipconfig''コマンドを実行するとネットワークインタフェースの設定状態が表示されます。~ 以下のスクリーンショットでは、無線LANにIPアドレス192.168.0.22が設定されていことが確認できます。~ 有線LANはMedia disconnectedと表示されており、ネットワークケーブルが接続されていないことを意味しています。 #ref(ipconfig-01.gif) #br ** ネットワークインタフェースの詳細情報の確認 [#s9d91665] 詳細な情報を出力するには、''/all''オプションを追加しenterキーを押します。 ipconfig /all 以下のスクリーンショットを見るとDNSサーバなどの情報も表示されます。 #ref(ipconfig-02.gif) ** ipconfigの他オプション [#y99e865b] 以下のように''/?''オプションを追加しコマンドを実行すると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などがあります。~ &color(red){''/release'', ''/renew''はDHCPサーバからIPアドレスを取得する構成の場合のみ使用できます。}; ** ipconfig /release の例 [#f64d37f8] ネットワーク接続名を指定して、ネットワークを解放する例を以下に記します。 -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 の例 [#j6e7f3e4] ワイヤレス ネットワークの更新(再接続)~ /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 #br #htmlinsertpcsp(win-btm.html,win-sp.html) #br
タイムスタンプを変更しない
#navi(../) * ネットワークインタフェースの設定および確認方法 [#def298dc] #contents #htmlinsertpcsp(win-top.html,win-sp.html) ** コマンドプロンプトの起動 [#i44df63c] +コマンドプロンプト&ref(cmd-prompt.gif);を起動します。~ []→[ファイル名を指定して実行(R)...]から実行もできます。~ ''cmd''と入力し[OK]ボタンをクリックします。 #ref(start-r-cmd.gif) ** IPアドレスの確認(ネットワークインタフェースの状態確認) [#t8763e52] 以下のコマンドを入力しenterキーを押します。 ipconfig ''ipconfig''コマンドを実行するとネットワークインタフェースの設定状態が表示されます。~ 以下のスクリーンショットでは、無線LANにIPアドレス192.168.0.22が設定されていことが確認できます。~ 有線LANはMedia disconnectedと表示されており、ネットワークケーブルが接続されていないことを意味しています。 #ref(ipconfig-01.gif) #br ** ネットワークインタフェースの詳細情報の確認 [#s9d91665] 詳細な情報を出力するには、''/all''オプションを追加しenterキーを押します。 ipconfig /all 以下のスクリーンショットを見るとDNSサーバなどの情報も表示されます。 #ref(ipconfig-02.gif) ** ipconfigの他オプション [#y99e865b] 以下のように''/?''オプションを追加しコマンドを実行すると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などがあります。~ &color(red){''/release'', ''/renew''はDHCPサーバからIPアドレスを取得する構成の場合のみ使用できます。}; ** ipconfig /release の例 [#f64d37f8] ネットワーク接続名を指定して、ネットワークを解放する例を以下に記します。 -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 の例 [#j6e7f3e4] ワイヤレス ネットワークの更新(再接続)~ /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 #br #htmlinsertpcsp(win-btm.html,win-sp.html) #br
テキスト整形のルールを表示する
添付ファイル:
cmd-prompt.gif
764件
[
詳細
]
ipconfig-01.gif
1523件
[
詳細
]
ipconfig-02.gif
1160件
[
詳細
]
start-r-cmd.gif
863件
[
詳細
]