show ip routeについて

  • フォーラムは新サイトへ移行しました。
  • このフォーラムではゲスト投稿が禁止されています
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 .2 .3 .4 | 投稿日時 2014-6-17 19:49
hgyub  新米   投稿数: 3
早速ですが、質問させて頂きます。(IPは適当にしています。)


(Aル-タ-10.0.0.5)-(10.0.0.20 Bル-タ)-(10.0.0.30 Cル-タ-)

上記でAルーターからCルーターの10.0.0.30にいく経路の場合、
Aルーターでshow ip routeを実行時に表示されるのは、

10.0.0.30(宛先)・・・via10.0.0.20(ネクスト)・・・
となりますよね?


ある問題でネクスト部分が10.0.0.5となっているものがあります。
ネクストの部分に自身の送信ポートアドレスが載ることはあるのでしょうか?
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2014-6-18 8:46
arashi1977  長老 居住地: 広島  投稿数: 1715
引用:
ある問題でネクスト部分が10.0.0.5となっているものがあります。
問題IDはわかりますか?
設問の中での話であれば、誤記の可能性も否定できませんのでまずはそこが確認したいですね
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2014-6-18 8:59 | 最終変更
antares01  長老   投稿数: 690
自IFのアドレスが乗ることは無いと思いますが、まさかのバージョン依存とか・・・。
staticルートの設定で自IFのアドレス入れたら怒られました。

R4(config)#do show ip int b | inc up
Serial0/0 192.168.5.9 YES manual up up
FastEthernet1/0 192.168.5.193 YES manual up up
R4(config)#
R4(config)#ip route 192.168.5.64 255.255.255.192 192.168.5.9 ★
%Invalid next hop address (it's this router)
R4(config)#ip route 192.168.5.64 255.255.255.192 s0/0
R4(config)#
R4(config)#ip route 192.168.5.64 255.255.255.192 192.168.5.193 ★
%Invalid next hop address (it's this router)
R4(config)#ip route 192.168.5.64 255.255.255.192 fa1/0
R4(config)#
R4(config)#do show ip route
192.168.5.0/24 is variably subnetted, 3 subnets, 2 masks
S 192.168.5.64/26 is directly connected, Serial0/0
is directly connected, FastEthernet1/0
C 192.168.5.8/30 is directly connected, Serial0/0
C 192.168.5.192/26 is directly connected, FastEthernet1/0

※イーサの場合は設定は入ってしまいますが普通はアドレスで指定します。
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2014-6-18 20:28
antares01  長老   投稿数: 690
ICND2の11904のことかと思いましたのでEIGRPで試してみました。
解説を元にRouter3が持つインタフェースのうち、Router1側のインターフェースに
192.168.5.9を設定。最後のshow ip route を見ると分かりますが、やはりvia の次に
自IFのアドレスは載りません。

R1#show ip int b | inc up
Serial0/0 192.168.5.10 YES manual up up
Serial0/2 192.168.5.1 YES manual up up
FastEthernet1/0 192.168.5.65 YES manual up up
R1#show run | sec eigrp
router eigrp 1
network 192.168.5.0 0.0.0.3
network 192.168.5.8 0.0.0.3
network 192.168.5.64 0.0.0.63
no auto-summary

R2#show ip int b | inc up
Serial0/1 192.168.5.6 YES manual up up
Serial0/2 192.168.5.2 YES manual up up
FastEthernet1/0 192.168.5.129 YES manual up up
R2#show run | sec eigrp
router eigrp 1
network 192.168.5.0 0.0.0.3
network 192.168.5.4 0.0.0.3
network 192.168.5.128 0.0.0.63
no auto-summary

R3#show ip int b | inc up
Serial0/0 192.168.5.9 YES manual up up
Serial0/1 192.168.5.5 YES manual up up
FastEthernet1/0 192.168.5.193 YES manual up up
R3#show run | sec eigrp
router eigrp 1
network 192.168.5.4 0.0.0.3
network 192.168.5.8 0.0.0.3
network 192.168.5.192 0.0.0.63
no auto-summary

R3#show ip route
192.168.5.0/24 is variably subnetted, 6 subnets, 2 masks
D 192.168.5.64/26 [90/2172416] via 192.168.5.10, 00:07:52, Serial0/0  ★
C 192.168.5.8/30 is directly connected, Serial0/0
C 192.168.5.4/30 is directly connected, Serial0/1
D 192.168.5.0/30 [90/2681856] via 192.168.5.10, 00:07:52, Serial0/0
[90/2681856] via 192.168.5.6, 00:07:52, Serial0/1
C 192.168.5.192/26 is directly connected, FastEthernet1/0
D 192.168.5.128/26 [90/2172416] via 192.168.5.6, 00:07:53, Serial0/1
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2014-6-21 10:17
hgyub  新米   投稿数: 3
お返事ありがとうございます。
ネクストと転送IFが一緒だったのでミスだと思います。
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2014-6-24 7:15
antares01  長老   投稿数: 690
ICND2の11904がいつの間にか修正されてますね

  >フォーラム検索へ


Copyright (c) 2020 Ping-t All rights reserved.
ログイン
ユーザ名 or E-Mailアドレス:

パスワード:







Contact

LPI-Japan Logo

LPI Logo