質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.49%
Cisco IOS

Cisco IOSは、シスコシステムズ社が提供しているOSです。同社のほとんどのルーターやスイッチに使用されており、特徴のあるコマンドラインインターフェースをもちます。実行操作に制限があるユーザーモードと特権モードのセキュリティレベルがあります。

Cisco

シスコ(Cisco Systems,Inc.)は、アメリカ合衆国に本社を置く、世界最大のコンピュータネットワーク機器開発会社及び同社の製品

Q&A

解決済

2回答

995閲覧

ルーテッドポートでは以下のNW構成だと通信できない?

narururu

総合スコア170

Cisco IOS

Cisco IOSは、シスコシステムズ社が提供しているOSです。同社のほとんどのルーターやスイッチに使用されており、特徴のあるコマンドラインインターフェースをもちます。実行操作に制限があるユーザーモードと特権モードのセキュリティレベルがあります。

Cisco

シスコ(Cisco Systems,Inc.)は、アメリカ合衆国に本社を置く、世界最大のコンピュータネットワーク機器開発会社及び同社の製品

0グッド

0クリップ

投稿2018/02/10 10:37

編集2018/02/10 11:35

###環境
GNS3

イメージ説明

###実現したいこと
各PCからR3まで疎通できるようにしたい。

###現状
R1←→R3間は疎通可。
各PC←→R1間は疎通可。
各PC間疎通可。
各PC←→R2/R3間は疎通不可。

show ip route

R1#show ip route Gateway of last resort is not set C 192.168.4.0/24 is directly connected, FastEthernet1/4 S 192.168.5.0/24 [1/0] via 192.168.4.2 C 192.168.1.0/24 is directly connected, FastEthernet1/1 C 192.168.2.0/24 is directly connected, FastEthernet1/2 C 192.168.3.0/24 is directly connected, FastEthernet1/3
R2#show ip route Gateway of last resort is not set C 192.168.4.0/24 is directly connected, FastEthernet1/4 C 192.168.5.0/24 is directly connected, FastEthernet1/5
R3#show ip route Gateway of last resort is not set S 192.168.4.0/24 [1/0] via 192.168.5.2 C 192.168.5.0/24 is directly connected, FastEthernet1/5
R1#show run Building configuration... Current configuration : 1825 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 ! boot-start-marker boot-end-marker ! ! no aaa new-model memory-size iomem 5 no ip icmp rate-limit unreachable ip cef ! ! ! ! no ip domain lookup ip auth-proxy max-nodata-conns 3 ip admission max-nodata-conns 3 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ip tcp synwait-time 5 ! ! ! ! ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface Serial0/0 no ip address shutdown clock rate 2000000 ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown clock rate 2000000 ! interface Serial0/2 no ip address shutdown clock rate 2000000 ! interface FastEthernet1/0 ! interface FastEthernet1/1 no switchport ip address 192.168.1.1 255.255.255.0 ! interface FastEthernet1/2 no switchport ip address 192.168.2.1 255.255.255.0 ! interface FastEthernet1/3 no switchport ip address 192.168.3.1 255.255.255.0 ! interface FastEthernet1/4 no switchport ip address 192.168.4.1 255.255.255.0 ! interface FastEthernet1/5 ! interface FastEthernet1/6 ! interface FastEthernet1/7 ! interface FastEthernet1/8 ! interface FastEthernet1/9 ! interface FastEthernet1/10 ! interface FastEthernet1/11 ! interface FastEthernet1/12 ! interface FastEthernet1/13 ! interface FastEthernet1/14 ! interface FastEthernet1/15 ! interface Vlan1 no ip address ! ip forward-protocol nd ip route 192.168.5.0 255.255.255.0 192.168.4.2 ! ! no ip http server no ip http secure-server ! no cdp log mismatch duplex ! ! ! control-plane ! ! ! ! ! ! ! ! ! ! line con 0 exec-timeout 0 0 privilege level 15 logging synchronous line aux 0 exec-timeout 0 0 privilege level 15 logging synchronous line vty 0 4 login ! ! end
R2#show run Building configuration... Current configuration : 1672 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R2 ! boot-start-marker boot-end-marker ! ! no aaa new-model memory-size iomem 5 no ip icmp rate-limit unreachable ip cef ! ! ! ! no ip domain lookup ip auth-proxy max-nodata-conns 3 ip admission max-nodata-conns 3 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ip tcp synwait-time 5 ! ! ! ! ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface Serial0/0 no ip address shutdown clock rate 2000000 ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown clock rate 2000000 ! interface Serial0/2 no ip address shutdown clock rate 2000000 ! interface FastEthernet1/0 ! interface FastEthernet1/1 ! interface FastEthernet1/2 ! interface FastEthernet1/3 ! interface FastEthernet1/4 no switchport ip address 192.168.4.2 255.255.255.0 ! interface FastEthernet1/5 no switchport ip address 192.168.5.2 255.255.255.0 ! interface FastEthernet1/6 ! interface FastEthernet1/7 ! interface FastEthernet1/8 ! interface FastEthernet1/9 ! interface FastEthernet1/10 ! interface FastEthernet1/11 ! interface FastEthernet1/12 ! interface FastEthernet1/13 ! interface FastEthernet1/14 ! interface FastEthernet1/15 ! interface Vlan1 no ip address ! ip forward-protocol nd ! ! no ip http server no ip http secure-server ! no cdp log mismatch duplex ! ! ! control-plane ! ! ! ! ! ! ! ! ! ! line con 0 exec-timeout 0 0 privilege level 15 logging synchronous line aux 0 exec-timeout 0 0 privilege level 15 logging synchronous line vty 0 4 login ! ! end
R3#show run Building configuration... Current configuration : 1666 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R3 ! boot-start-marker boot-end-marker ! ! no aaa new-model memory-size iomem 5 no ip icmp rate-limit unreachable ip cef ! ! ! ! no ip domain lookup ip auth-proxy max-nodata-conns 3 ip admission max-nodata-conns 3 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ip tcp synwait-time 5 ! ! ! ! ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface Serial0/0 no ip address shutdown clock rate 2000000 ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown clock rate 2000000 ! interface Serial0/2 no ip address shutdown clock rate 2000000 ! interface FastEthernet1/0 ! interface FastEthernet1/1 ! interface FastEthernet1/2 ! interface FastEthernet1/3 ! interface FastEthernet1/4 ! interface FastEthernet1/5 no switchport ip address 192.168.5.3 255.255.255.0 ! interface FastEthernet1/6 ! interface FastEthernet1/7 ! interface FastEthernet1/8 ! interface FastEthernet1/9 ! interface FastEthernet1/10 ! interface FastEthernet1/11 ! interface FastEthernet1/12 ! interface FastEthernet1/13 ! interface FastEthernet1/14 ! interface FastEthernet1/15 ! interface Vlan1 no ip address ! ip forward-protocol nd ip route 192.168.4.0 255.255.255.0 192.168.5.2 ! ! no ip http server no ip http secure-server ! no cdp log mismatch duplex ! ! ! control-plane ! ! ! ! ! ! ! ! ! ! line con 0 exec-timeout 0 0 privilege level 15 logging synchronous line aux 0 exec-timeout 0 0 privilege level 15 logging synchronous line vty 0 4 login ! ! end

PCからR1まで疎通でき、スタティックルートの設定をスイッチにしているため、疎通できない理由がわかりません。どのような理由で疎通できないのでしょうか。
ご存知の方いらっしゃいましたら、私に教えていただけないでしょうか。

以上、よろしくお願いいたします。

###追記
各PCのデフォルトゲートウェイ
PC-1:192.168.1.1
PC-2:192.168.2.1
PC-3:192.168.3.1

R3の先にPC-4を新たに接続しました。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

ベストアンサー

長くなったので分割します。本件、私ならば以下のように追加します。動作未確認

R1に追加
ip route 192.168.5.0 255.255.255.0 192.168.4.2(設定済み)
ip route 192.168.6.0 255.255.255.0 192.168.4.2

R2に追加
ip route 192.168.6.0 255.255.255.0 192.168.5.3
ip route 192.168.1.0 255.255.255.0 192.168.4.1
ip route 192.168.2.0 255.255.255.0 192.168.4.1
ip route 192.168.3.0 255.255.255.0 192.168.4.1

R3に追加
ip route 192.168.4.0 255.255.255.0 192.168.5.2
ip route 192.168.1.0 255.255.255.0 192.168.5.2
ip route 192.168.2.0 255.255.255.0 192.168.5.2
ip route 192.168.3.0 255.255.255.0 192.168.5.2

ここでは以下の6通りのサブネットがあります。

192.168.1.0
192.168.2.0
192.168.3.0
192.168.4.0
192.168.5.0
192.168.6.0

ですので、各ルータにこの6通りのサブネットのルーティング設定が必要です。(show ip routeに目的サブネットが出てくるようにする)このためには自身が隣接していないサブネットについて、経由先を指定することが必要です。

投稿2018/02/10 11:17

HogeAnimalLover

総合スコア4830

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

narururu

2018/02/10 11:34 編集

ご回答ありがとうございます☺ スタティックルート設定については最終地点まできちんと指定してあげないとダメなのですね。 PC-4を加えてから、わたしもHogeさんと同じ方法で設定し疎通の確認が取れました。 アドバイス、ありがとうございました!
guest

0

PCのデフォルトゲートウェイでは?

投稿2018/02/10 10:40

HogeAnimalLover

総合スコア4830

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

narururu

2018/02/10 10:45

ご回答ありがとうございます。Hogeさん☺ 各PCにデフォルトゲートウェイを設定しております。 PC-1:192.168.1.1 PC-2:192.168.2.1 PC-3:192.168.3.1 R1までたどり着けばスタティックルートの働きにより、R3までルーティングしてくれると思っていたのです。わたし、何か勘違いしてますでしょうか(>_<)
HogeAnimalLover

2018/02/10 10:51

でしたら各PC→R3はたどりつけそうです。ただし、R3→各PCは不通です。ping試験をしているならば戻り道がないと導通確認ができないので試験の仕方を変えるか、戻り道の設定が必要です。
narururu

2018/02/10 11:09 編集

あ、勘違いしました。 先程PC-4をつないで再試験しましたが、結局戻り経路を指定しないとダメですね。 失礼しました。ちょっと、考えてみます。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.49%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問