広告
広告
route [-f] [-p] [command [destination] [mask subnetmask] [gateway] [metric costmetric]]
IPパケットをルーティングするためのルーティングテーブルの内容表示と設定を行います。ルーティングテーブルは、おもにOSが管理するルーティング情報を保管したメモリテーブルを指します。
C:\>route print =========================================================================== Interface List 0x1 ........................... MS TCP Loopback interface 0x1000003 ...00 0c 6e 3c 16 d2 ...Intel 8255x-based Integrated Fast Ethernet =========================================================================== =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.100 1 -1 192.168.1.0 255.255.255.0 192.168.1.100 192.168.1.100 1 -2 192.168.1.100 255.255.255.255 127.0.0.1 127.0.0.1 1 -3 192.255.255.255 255.255.255.255 192.168.1.100 192.168.1.100 1 -4 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 -5 224.0.0.0 224.0.0.0 192.168.1.100 192.168.1.100 1 -6 255.255.255.255 255.255.255.255 192.168.1.100 192.168.1.100 1 -7 Default Gateway: 192.168.1.1 =========================================================================== Persistent Routes: None
「宛先IPアドレス(Destination)」が、それぞれのサブネットにおける経路となります。このネットワークや、そこに所属するホスト向けのパケットは、経路として設定されたインターフェイスからゲートウェイへと転送されることになります。インターフェース一つに付、最低限でも「自身への経路(図中 3)」、「自身の所属するネットワークへの経路(図中 2)」、「ローカルループバックへの経路(図中 5)」が必要になります。
広告