RTシリーズのLAN-TA機能に関するFAQ
VPNアダプタに割り当てられたIPアドレス
| 作成日 | 2000/Jul/12 |
| 最終変更日 | 2022/Dec/28 |
| 文書サイズ | 16KB |
VPNアダプタに割り当てられたIPアドレスの確認方法は?
[ IPアドレスの確認方法 ]
プロバイダ (03-123-4567)
↓
↓1B
〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜↓〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜
: : ↓ ISDN網
: : ↓
: : ↓ グローバルアドレスの付与
+-------------+ ISDN同期PPP↓ 133.176.200.163
| RTA52i | ↓
| | [ LAN-TA機能 ]
| (LAN-TA機能)| ↓
+------+------+ PPTPトンネル↓
| 192.168.0.1 ↓ 192.168.0.0/24
------+-------------------------↓--+--------------------------
↓ |192.168.0.2
+------+------+
|(VPNアダプタ)|
| |
| ゲーム端末 |
+-------------+ Windows98
「PPP Adapter」のIPアドレスに表示されます。
LANのIPアドレスやその他の情報と混同してしまいそう(区別がつかない)な場合は、
VPNアダプタの利用前に「0.0.0.0」になっていて、
VPNアダプタで接続したら「0.0.0.0」以外の値になるもの
(イーサネットアダプタ)がLAN-TA機能を利用している「PPP Adapter」です。
MS-DOSプロンプト(command.com)で、「route print」と実行す
ることにより、Windowsの保持している経路(パケットの送信先のリスト)を
表示することができます。
VPNアダプタの接続前後で「route print」を実行することにより、
付与されたIPアドレスや経路の状態変化を確認することができます。
MS-DOSプロンプト(command.com)で、「netstat -rn」と実行す
ることにより、「route print」と同等のWindowsの保持している経路
(パケットの送信先のリスト)を表示することができます。
VPNアダプタの接続前後で「netstat -rn」を実行することにより、
付与されたIPアドレスや経路の状態変化を確認することができます。
「netstat -rn」では、「route print」の情報に加えて、PPTPトンネルで
利用しているTCP接続の情報も確認することができます。
「netstat -rn」の代りに「netstat -r」と実行すると、IPアドレスをDNSホスト名に変換して表示しますが、 DNS名の解決のためにDNSサーバへ問い合せを行ないます。 また、DNS名の解決に失敗するような場合では、表示が非常に遅くなります。
[ Windows98のwinipcfg.exeによる確認例 ]
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
Active Routes:
Network Address Netmask Gateway Address Interface Metric
0.0.0.0 0.0.0.0 133.176.200.163 133.176.200.163 1
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.2 2
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
133.176.0.0 255.255.0.0 133.176.200.163 133.176.200.163 1
133.176.200.163 255.255.255.255 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 2
192.168.0.1 255.255.255.255 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 133.176.200.163 133.176.200.163 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 133.176.200.163 133.176.200.163 1
|
C:\> route -h
Manipulates network routing tables.
ROUTE [-f] [command [destination] [MASK netmask] [gateway] [METRIC metric]]
-f Clears the routing tables of all gateway entries. If this is
used in conjunction with one of the commands, the tables are
cleared prior to running the command.
command Must be one of four:
PRINT Prints a route
ADD Adds a route
DELETE Deletes a route
CHANGE Modifies an existing route
destination Specifies the destination host.
MASK Specifies that the next parameter is the 'netmask' value.
netmask Specifies a subnet mask value to be associated
with this route entry. If not specified, it defaults to
255.255.255.255.
gateway Specifies gateway.
METRIC Specifies that the next paramenter 'metric' is the
cost for this destination
All symbolic names used for destination are looked up in the network database
file NETWORKS. The symbolic names for gateway are looked up in the host name
database file HOSTS.
If the command is PRINT or DELETE, wildcards may be used for the destination
and gateway, or the gateway argument may be omitted.
診断上の注意:
(DEST & MASK) != DEST のとき、無効な MASK はエラーを発生します。
例> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1
The route addition failed: 87
例 :
> route PRINT
> route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3
^destination ^mask ^gateway ^metric
> route PRINT
> route DELETE 157.0.0.0
> route PRINT
|
[ Windows98のnetstatコマンドによる確認例 ]
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
Active Routes:
Network Address Netmask Gateway Address Interface Metric
0.0.0.0 0.0.0.0 133.176.200.163 133.176.200.163 1
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.2 2
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
133.176.0.0 255.255.0.0 133.176.200.163 133.176.200.163 1
133.176.200.163 255.255.255.255 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 2
192.168.0.1 255.255.255.255 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 133.176.200.163 133.176.200.163 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 133.176.200.163 133.176.200.163 1
Route Table
Active Connections
Proto Local Address Foreign Address State
TCP 192.168.0.2:1034 192.168.0.1:1723 ESTABLISHED
|
C:\> netstat -h
Displays protocol statistics and current TCP/IP network connections.
NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval]
-a Displays all connections and listening ports.
-e Displays Ethernet statistics. This may be combined with the -s
option.
-n Displays addresses and port numbers in numerical form.
-p proto Shows connections for the protocol specified by proto; proto
may be TCP or UDP. If used with the -s option to display
per-protocol statistics, proto may be TCP, UDP, or IP.
-r Displays the routing table.
-s Displays per-protocol statistics. By default, statistics are
shown for TCP, UDP and IP; the -p option may be used to specify
a subset of the default.
interval Redisplays selected statistics, pausing interval seconds
between each display. Press CTRL+C to stop redisplaying
statistics. If omitted, netstat will print the current
configuration information once.
|
[ 関連情報 ]
[ FAQ for RT-Series ]
[ FAQ for LAN-TA機能 / files / TA機能(シリアルポート) / NAT / ネットワーク・ゲーム / TA機能(USBポート) / ブロードバンドTA機能 ]