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

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

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

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

Cisco

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

Q&A

解決済

1回答

3416閲覧

ルーター3つ繋げた場合のスタティックルート疎通不可

narururu

総合スコア170

Cisco IOS

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

Cisco

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

0グッド

0クリップ

投稿2018/02/06 12:51

編集2018/02/06 13:40

###環境
GNS3
イメージ説明

R1

R1#show run Building configuration... Current configuration : 1766 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 ! interface FastEthernet1/4 ! 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.3.0 255.255.255.0 192.168.2.2 ip route 192.168.4.0 255.255.255.0 192.168.3.3 ! ! 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

R2#show run Building configuration... Current configuration : 1766 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 no switchport ip address 192.168.2.2 255.255.255.0 ! interface FastEthernet1/3 no switchport ip address 192.168.3.2 255.255.255.0 ! interface FastEthernet1/4 ! 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.1.0 255.255.255.0 192.168.2.1 ip route 192.168.4.0 255.255.255.0 192.168.3.3 ! ! 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

R3#show run Building configuration... Current configuration : 1766 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 no switchport ip address 192.168.4.3 255.255.255.0 ! interface FastEthernet1/2 ! interface FastEthernet1/3 no switchport ip address 192.168.3.3 255.255.255.0 ! interface FastEthernet1/4 ! 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.1.0 255.255.255.0 192.168.2.1 ip route 192.168.2.0 255.255.255.0 192.168.3.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

R1

Gateway of last resort is not set S 192.168.4.0/24 [1/0] via 192.168.3.3 C 192.168.1.0/24 is directly connected, FastEthernet1/1 C 192.168.2.0/24 is directly connected, FastEthernet1/2 S 192.168.3.0/24 [1/0] via 192.168.2.2

R2

Gateway of last resort is not set S 192.168.4.0/24 [1/0] via 192.168.3.3 S 192.168.1.0/24 [1/0] via 192.168.2.1 C 192.168.2.0/24 is directly connected, FastEthernet1/2 C 192.168.3.0/24 is directly connected, FastEthernet1/3

R3

Gateway of last resort is not set C 192.168.4.0/24 is directly connected, FastEthernet1/1 S 192.168.1.0/24 [1/0] via 192.168.2.1 S 192.168.2.0/24 [1/0] via 192.168.3.2 C 192.168.3.0/24 is directly connected, FastEthernet1/3

###現状
PC間の疎通ができません。
各機器を間に挟むと通信できなくなります。

以下の設定をしております。
【R1~R3】
・接続ポートにIPアドレスを設定
・スタティックルートの設定
・ip routing設定
【PC】
・IPアドレスの設定

原因がわかりません。
質問ばかりでかつ基本的な内容なので恐縮ですが、アドバイスいただけると助かります。
初歩的なレベルでネットワークの構築ができず情けないですが、よろしくお願いいたします。

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

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

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

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

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

guest

回答1

0

ベストアンサー

設定しているインターフェースと意図した結線がされていることを前提としての回答です。

ルーティングの定義が間違っているように見え、正しくは以下だと思います。

R1
192.168.3.0/24 → 192.168.2.2
192.168.4.0/24 → 192.168.2.2

R3
192.168.1.0/24 → 192.168.3.2
192.168.2.0/24 → 192.168.3.2

投稿2018/02/07 00:18

over

総合スコア4309

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

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

narururu

2018/02/07 06:07

ご回答ありがとうございます。overさん☺ ご指摘いただいた設定でPC間の疎通ができました! 【R1】 ip route 192.168.3.0 255.255.255.0 192.168.2.2 ip route 192.168.4.0 255.255.255.0 192.168.2.2 【R3】 ip route 192.168.1.0 255.255.255.0 192.168.3.2 ip route 192.168.2.0 255.255.255.0 192.168.3.2 Next Hopの設定はR1、R3共にR2のポートなんですね。納得しました。 どんなに離れていてもNext Hopは隣接機器のポートのIPアドレスで設定することを覚えておきます。 ご回答本当にありがとうございました!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問