traceroute6
スポンサーリンク
何するコマンド?
どんな経路を通って通信相手のところまで行くか確認するときに使うコマンド(IPv6版)
書き方
traceroute6 [オプション] [対象のIPv6アドレス]
オプション
| オプション | 説明 |
|---|---|
| -4 | IPv4を使う |
| -6 | IPv6を使う |
| -I | ICMPパケットを使って調査する |
| -T | TCPパケットを使って調査する |
| -U | UDPパケットを使って調査する |
| -d | デバッグ・モードで動く |
| -F | フラグメントするな!フラグをセットする? Set the "Don’t Fragment" bit. This tells intermediate routers not to fragment the packet when they find it’s too big for a network hop’s MTU. |
| -f | 最初に送るTTLの値を指定する |
| -g【ゲートウェイ】 | 経由したいゲートウェイを指定する? Tells traceroute6 to add an IP source routing option to the outgoing packet that tells the network to route the packet through the specified gateway. Not very useful, because most routers have disabled source routing for security reasons. |
| -i【インターフェース】 | 使うインターフェース(ネットワークカード名)を指定する |
| -m【最大TTL】 | TTLの最大値を指定する |
| -N | Specifies the number of probe packets sent out simultaneously. Sending several probes concurrently can speed up traceroute6 considerably. The default value is 15. Note that some routers and hosts can use ICMP rate throttling. In such a situation specifying too large number can lead to loss of some responses. |
| -n | 結果をIPアドレスで表示する |
| -p【ポート】 | パケットを送り付けるポートを指定する |
| -t【TOS】 | パケットのTOSを指定する For IPv4, set the Type of Service (TOS) and Precedence value. Useful values are 16 (low delay) and 8 (high throughput). Note that in order to use some TOS precendence values, you have to be super user. For IPv6, set the Traffic Control value. |
| -l【ラベル】 | Use specified flow_label for IPv6 packets |
| -w【秒】 | タイムアウトと判断する時間を指定する |
| -q【回数】 | 1つの経由地に対する試行回数を指定する |
| -r | ルーティングテーブルを気にしないで、指定したところに直接送り付ける |
| -s【ソースアドレス】 | Chooses an alternative source address. Note that you must select the address of one of the interfaces. By default, the address of the outgoing interface is used. |
| -z | Minimal time interval between probes (default 0). If the value is more than 10, then it specifies a number in milliseconds, else it is a number of seconds (float point values allowed too). Useful when some routers use rate-limit for icmp messages. |
| -A | Perform AS path lookups in routing registries and print results directly after the corresponding addresses |
| -V | バージョン情報を表示する |
補足事項
使い方は、オプションを何も指定しない
traceroute6 8fe0::8f61:ac8:30cd:a16e
のような使い方で、ほぼ事足ります。
オプションは調査条件を変えるものがほとんどです。
必要になってから必要な分だけ覚えれば良いと思います。
あと、私はCentOS上でコマンドの動作確認をしているのですけどね。
私の環境では「traceroute」コマンドに「-6」オプションを指定した
traceroute -6 [対象のIPv6アドレス]
と
traceroute6 [対象のIPv6アドレス]
は同じ動きをしました。
ということで「traceroute」の使い方をご存じの方は「traceroute6」の説明を見る必要はないと思います。
違いは、対象の指定をIPv4でやるか、IPv6でやるか、くらいのはずです。
あっ、でもUbuntuの場合は違うのかな。
使ってないから分からないや。
ごめんなさい。
