RTシリーズとWindowsに関するFAQ
経路情報の確認方法
新規作成日 | 2000/Nov/08 |
最終変更日 | 2022/Dec/28 |
文書サイズ | 11KB |
経路情報の確認はどうしたら良いですか?
routeコマンド、または、netstatコマンドを利用することで、
経路情報を確認することができます。
routeコマンド、または、netstatコマンドは、ウィンドウでGUI動作する
ソフトウェアではありませんので、
[ routeコマンドによる確認例 ]
MS-DOSプロンプト(command.com)で、「route print」と実行す ることにより、Windowsの保持している経路(パケットの送信先のリスト)を 表示することができます。
C:\> route print Active Routes: Network Address Netmask Gateway Address Interface Metric 0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.2 1 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 192.168.0.0 255.255.255.0 192.168.0.2 192.168.0.2 1 192.168.0.2 255.255.255.255 127.0.0.1 127.0.0.1 1 192.168.0.255 255.255.255.255 192.168.0.2 192.168.0.2 1 224.0.0.0 224.0.0.0 192.168.0.2 192.168.0.2 1 255.255.255.255 255.255.255.255 192.168.0.2 0.0.0.0 1 |
C:\>route print =========================================================================== Interface List 0x1 ........................... MS TCP Loopback interface 0x1000004 ...08 00 46 0d 3e 96 ...... Intel 8255x-based Integrated Fast Ethernet =========================================================================== =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 255.255.255.255 255.255.255.255 255.255.255.255 1000004 1 =========================================================================== Persistent Routes: None |
C:\>route print =========================================================================== Interface List 0x1 ........................... MS TCP Loopback interface 0x1000004 ...08 00 46 0d 3e 96 ...... Intel 8255x-based Integrated Fast Ethernet =========================================================================== =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.2 1 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 192.168.0.0 255.255.255.0 192.168.0.2 192.168.0.2 1 192.168.0.2 255.255.255.255 127.0.0.1 127.0.0.1 1 192.168.0.255 255.255.255.255 192.168.0.2 192.168.0.2 1 224.0.0.0 224.0.0.0 192.168.0.2 192.168.0.2 1 255.255.255.255 255.255.255.255 192.168.0.2 192.168.0.2 1 Default Gateway: 192.168.0.1 =========================================================================== Persistent Routes: None |
MS-DOSプロンプト(command.com)で、「netstat -rn」と実行す
ることにより、「route print」と同等のWindowsの保持している経路
(パケットの送信先のリスト)を表示することができます。
VPNアダプタの接続前後で「netstat -rn」を実行することにより、
付与されたIPアドレスや経路の状態変化を確認することができます。
「netstat -rn」では、「route print」の情報に加えて、
利用しているTCP接続の情報も確認することができます。
「netstat -rn」の代りに「netstat -r」と実行すると、 IPアドレスをDNSホスト名に変換して表示しますが、 DNS名の解決のためにDNSサーバへ問い合せを行ないます。 また、DNS名の解決に失敗するような場合では、表示が非常に遅くなります。
C:\> netstat -rn Route Table Active Routes: Network Address Netmask Gateway Address Interface Metric 0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.2 1 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 192.168.0.0 255.255.255.0 192.168.0.2 192.168.0.2 1 192.168.0.2 255.255.255.255 127.0.0.1 127.0.0.1 1 192.168.0.255 255.255.255.255 192.168.0.2 192.168.0.2 1 224.0.0.0 224.0.0.0 192.168.0.2 192.168.0.2 1 255.255.255.255 255.255.255.255 192.168.0.2 0.0.0.0 1 Active Connections Proto Local Address Foreign Address State |
C:\>netstat -rn Route Table =========================================================================== Interface List 0x1 ........................... MS TCP Loopback interface 0x1000004 ...08 00 46 0d 3e 96 ...... Intel 8255x-based Integrated Fast Ethernet =========================================================================== =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 255.255.255.255 255.255.255.255 255.255.255.255 1000004 1 =========================================================================== Persistent Routes: None |
C:\>netstat -rn Route Table =========================================================================== Interface List 0x1 ........................... MS TCP Loopback interface 0x1000004 ...08 00 46 0d 3e 96 ...... Intel 8255x-based Integrated Fast Ethernet =========================================================================== =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.2 1 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 192.168.0.0 255.255.255.0 192.168.0.2 192.168.0.2 1 192.168.0.2 255.255.255.255 127.0.0.1 127.0.0.1 1 192.168.0.255 255.255.255.255 192.168.0.2 192.168.0.2 1 224.0.0.0 224.0.0.0 192.168.0.2 192.168.0.2 1 255.255.255.255 255.255.255.255 192.168.0.2 192.168.0.2 1 Default Gateway: 192.168.0.1 =========================================================================== Persistent Routes: None |
[ 関連FAQ ]
[ FAQ for RT-Series ]
[ FAQ for Windows / RTユーティリティ ]