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

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

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

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

Cisco

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

Q&A

解決済

1回答

2111閲覧

インターフェースVlanについて

narururu

総合スコア170

Cisco IOS

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

Cisco

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

0グッド

0クリップ

投稿2018/02/28 13:28

###環境
GNS3

イメージ説明


イメージ説明

###現状

同一セグメント同士の疎通可能。
ip routingの設定有の場合、異なるセグメント間の疎通可能。
PCからGWアドレスの192.168.1.254と192.168.2.254は疎通可能。
PCからR1のint vlan 10と20で設定した192.168.1.253と192.168.2.253へは疎通不可('ω')


同一セグメント同士の疎通可能。
ip routingの設定有の場合、異なるセグメント間の疎通可能。
PCからGWアドレス(R1のint vlan 10と20)の192.168.1.254と192.168.2.254疎通可能。
PCからR2のint vlan 10と20の192.168.1.253と192.168.2.253は疎通可能。

###わたしの認識
②の状態を考えると、
機器にインターフェースvlanでIPアドレスを割り振り、そのIPアドレスへpingを投げれば疎通できると思っているのですが、
①のケースではR1のint vlanへ疎通できなかったことを考えると、私の認識に間違いがあるのかなと不安になり、確認したく質問させていただきました。
また、GWアドレスとR2のインターフェースvlanで割り振ったアドレスを重複させていますが、何か問題でもありますでしょうか。
今回、GWアドレスで疎通可能だったので、R2までパケットが届いたと解釈しました。
わたしの認識に間違いがありましたら、ご指摘いただけると助かります。

###ステータス

R1#show run Building configuration... Current configuration : 1957 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 routing no ip icmp rate-limit unreachable no 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 no ip route-cache shutdown duplex auto speed auto ! interface Serial0/0 no ip address no ip route-cache shutdown clock rate 2000000 ! interface FastEthernet0/1 no ip address no ip route-cache shutdown duplex auto speed auto ! interface Serial0/1 no ip address no ip route-cache shutdown clock rate 2000000 ! interface Serial0/2 no ip address no ip route-cache shutdown clock rate 2000000 ! interface FastEthernet1/0 ! interface FastEthernet1/1 switchport access vlan 10 ! interface FastEthernet1/2 switchport access vlan 10 ! interface FastEthernet1/3 switchport access vlan 20 ! interface FastEthernet1/4 switchport access vlan 20 ! 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 switchport trunk allowed vlan 1,2,10,20,1002-1005 switchport mode trunk ! interface Vlan1 no ip address no ip route-cache ! interface Vlan10 ip address 192.168.2.253 255.255.255.0 no ip route-cache ! 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
R2#show run Building configuration... Current configuration : 1927 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 routing no ip icmp rate-limit unreachable no 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 no ip route-cache shutdown duplex auto speed auto ! interface Serial0/0 no ip address no ip route-cache shutdown clock rate 2000000 ! interface FastEthernet0/1 no ip address no ip route-cache shutdown duplex auto speed auto ! interface Serial0/1 no ip address no ip route-cache shutdown clock rate 2000000 ! interface Serial0/2 no ip address no ip route-cache shutdown clock rate 2000000 ! interface FastEthernet1/0 ! interface FastEthernet1/1 ! interface FastEthernet1/2 ! 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 switchport trunk allowed vlan 1,2,10,20,1002-1005 switchport mode trunk ! interface Vlan1 no ip address no ip route-cache ! interface Vlan10 ip address 192.168.1.254 255.255.255.0 no ip route-cache ! interface Vlan20 ip address 192.168.2.254 255.255.255.0 no ip route-cache ! 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

どうか、こんなわたしですがアドバイスを頂けないでしょうか(>_<)
以上、よろしくお願いいたします!

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

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

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

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

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

guest

回答1

0

自己解決

本当にすみません。
原因が分かりました。
①のNW構成でR1のint vlan 10の設定を間違えていました。
大変申し訳ございませんでした。
お恥ずかしい(>_<)

今回の検証で、インターフェースvlanの設定をすれば、設定した機器にpingを飛ばすことができることが分かりました。よかたです。

投稿2018/02/28 13:35

narururu

総合スコア170

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問