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

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

新規登録して質問してみよう
ただいま回答率
85.46%
VLAN

VLAN(Virtual LAN)とは、ネットワーク技術の仮想化技術の一つ。仮想LANとも呼ばれています。物理的な接続形態とは独立して、スイッチ内で論理的にLANセグメントを分割することができます。企業LANの構築時によく利用されています。

インターフェース

インターフェイスという用語はハードウェア・ソフトウェアの両方に使うことができます。 一般的に、インターフェイスは内部処理の詳細を見せないように設定されます。オブジェクト指向プログラミングにおいて、インターフェイスはabstractクラスとして定義されます。

Network Simulator

The Network Simulator

Q&A

解決済

1回答

2502閲覧

サブインターフェースを使ったVLAN間通信ができない

Rina1

総合スコア1

VLAN

VLAN(Virtual LAN)とは、ネットワーク技術の仮想化技術の一つ。仮想LANとも呼ばれています。物理的な接続形態とは独立して、スイッチ内で論理的にLANセグメントを分割することができます。企業LANの構築時によく利用されています。

インターフェース

インターフェイスという用語はハードウェア・ソフトウェアの両方に使うことができます。 一般的に、インターフェイスは内部処理の詳細を見せないように設定されます。オブジェクト指向プログラミングにおいて、インターフェイスはabstractクラスとして定義されます。

Network Simulator

The Network Simulator

0グッド

0クリップ

投稿2021/04/17 14:33

編集2021/04/18 03:47

実現したいこと

サブインターフェースを使って、VLAN間通信がしたい。

発生している問題

PC1⇔PC3、PC2⇔PC4の間でPingが通らない

構成図

※GNS3

イメージ説明

###状態

◆R1

イメージ説明

◆ESW1
イメージ説明
イメージ説明

・ポートの状況

ESW1#show interface FastEthernet1/1 switchport Name: Fa1/1 Switchport: Enabled Administrative Mode: static access Operational Mode: static access Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: native Negotiation of Trunking: Disabled Access Mode VLAN: 100 (VLAN0100) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 100 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none ESW1#show interface FastEthernet1/2 switchport Name: Fa1/2 Switchport: Enabled Administrative Mode: static access Operational Mode: static access Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: native Negotiation of Trunking: Disabled Access Mode VLAN: 100 (VLAN0100) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 100 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none ESW1#show interface FastEthernet1/3 switchport Name: Fa1/3 Switchport: Enabled Administrative Mode: static access Operational Mode: static access Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: native Negotiation of Trunking: Disabled Access Mode VLAN: 200 (VLAN0200) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 200 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none ESW1#show interface FastEthernet1/4 switchport Name: Fa1/4 Switchport: Enabled Administrative Mode: static access Operational Mode: static access Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: native Negotiation of Trunking: Disabled Access Mode VLAN: 200 (VLAN0200) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 200 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none ESW1#show interface FastEthernet1/10 switchport Name: Fa1/10 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1,100,200 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none ESW1#

###Config

◆R1

R1#show conf Using 1222 out of 522232 bytes! ! ! ! ! ! ! Last configuration change at 15:44:53 UTC Sat Apr 17 2021 ! upgrade fpd auto version 15.0 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 ! ! ! ip source-route no ip icmp rate-limit unreachable ip cef ! ! ! ! no ip domain lookup no ipv6 cef ! multilink bundle-name authenticated ! ! ! ! ! ! ! ! ! redundancy ! ! ip tcp synwait-time 5 ! ! ! ! ! ! ! ! interface FastEthernet0/0 no ip address shutdown duplex half ! ! interface FastEthernet1/0 no ip address duplex half ! ! interface FastEthernet1/0.1 encapsulation dot1Q 100 ip address 192.168.0.254 255.255.255.0 ! interface FastEthernet1/0.2 encapsulation dot1Q 200 ip address 192.168.1.254 255.255.255.0 ! ip forward-protocol nd no ip http server no ip http secure-server ! ! ! no cdp log mismatch duplex ! ! ! ! ! ! control-plane ! ! ! mgcp fax t38 ecm mgcp behavior g729-variants static-pt ! ! ! gatekeeper shutdown ! ! line con 0 exec-timeout 0 0 privilege level 15 logging synchronous stopbits 1 line aux 0 exec-timeout 0 0 privilege level 15 logging synchronous stopbits 1 line vty 0 4 login ! end R1# show conf Using 1222 out of 522232 bytes! ! ! ! ! ! ! Last configuration change at 15:44:53 UTC Sat Apr 17 2021 ! upgrade fpd auto version 15.0 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 ! ! ! ip source-route no ip icmp rate-limit unreachable ip cef ! ! ! ! no ip domain lookup no ipv6 cef ! multilink bundle-name authenticated ! ! ! ! ! ! ! ! ! redundancy ! ! ip tcp synwait-time 5 ! ! ! ! ! ! ! ! interface FastEthernet0/0 no ip address shutdown duplex half ! ! interface FastEthernet1/0 no ip address duplex half ! ! interface FastEthernet1/0.1 encapsulation dot1Q 100 ip address 192.168.0.254 255.255.255.0 ! interface FastEthernet1/0.2 encapsulation dot1Q 200 ip address 192.168.1.254 255.255.255.0 ! ip forward-protocol nd no ip http server no ip http secure-server ! ! ! no cdp log mismatch duplex ! ! ! ! ! ! control-plane ! ! ! mgcp fax t38 ecm mgcp behavior g729-variants static-pt ! ! ! gatekeeper shutdown ! ! line con 0 exec-timeout 0 0 privilege level 15 logging synchronous stopbits 1 line aux 0 exec-timeout 0 0 privilege level 15 logging synchronous stopbits 1 line vty 0 4 login ! end R1#

◆ESW1

ESW1#show conf Using 2791 out of 57336 bytes! ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption no service dhcp ! hostname ESW1 ! 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 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! vtp file nvram:vlan.dat ! ! ip tcp synwait-time 5 ! ! ! ! ! interface FastEthernet0/0 description *** Unused for Layer2 EtherSwitch *** no ip address no ip route-cache shutdown duplex auto speed auto ! interface FastEthernet0/1 description *** Unused for Layer2 EtherSwitch *** no ip address no ip route-cache shutdown duplex auto speed auto ! interface FastEthernet1/0 duplex full speed 100 ! interface FastEthernet1/1 switchport access vlan 100 duplex full speed 100 ! interface FastEthernet1/2 switchport access vlan 100 duplex full speed 100 ! interface FastEthernet1/3 switchport access vlan 200 duplex full speed 100 ! interface FastEthernet1/4 switchport access vlan 200 duplex full speed 100 ! interface FastEthernet1/5 duplex full speed 100 ! interface FastEthernet1/6 duplex full speed 100 ! interface FastEthernet1/7 duplex full speed 100 ! interface FastEthernet1/8 duplex full speed 100 ! interface FastEthernet1/9 duplex full speed 100 ! interface FastEthernet1/10 switchport mode trunk duplex full speed 100 ! interface FastEthernet1/11 duplex full speed 100 ! interface FastEthernet1/12 duplex full speed 100 ! interface FastEthernet1/13 duplex full speed 100 ! interface FastEthernet1/14 duplex full speed 100 ! interface FastEthernet1/15 duplex full speed 100 ! interface Vlan1 no ip address no ip route-cache shutdown ! interface Vlan100 no ip address ! interface Vlan200 no ip address ! ip forward-protocol nd ! ! no ip http server no ip http secure-server ! no cdp log mismatch duplex ! ! ! control-plane ! ! ! ! mgcp behavior g729-variants static-pt ! ! ! ! ! banner exec ^C *************************************************************** This is a normal Router with a SW module inside (NM-16ESW) It has been preconfigured with hard coded speed and duplex To create vlans use the command "vlan database" from exec mode After creating all desired vlans use "exit" to apply the config To view existing vlans use the command "show vlan-switch brief" Warning: You are using an old IOS image for this router. Please update the IOS to enable the "macro" command! *************************************************************** ^C ! 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 ESW1#

◆PC1
イメージ説明
◆PC2
イメージ説明
◆PC3
イメージ説明
◆PC4
イメージ説明

追記

◆ESW1のトランクポートの状況
イメージ説明

◆PC⇒ルータ間の通信状況
・PC1⇒サブIF 1/0.1
・PC1⇒サブIF 1/0.2
・PC1⇒PC3
イメージ説明

◆(参考)R1⇒PC1、R1⇒PC3の通信状況
イメージ説明

どなたかお知恵をお貸しいただければ幸いです。
どうぞよろしくお願いいたします。

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

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

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

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

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

guest

回答1

0

ベストアンサー

スイッチ-ルータ間のtrunkポートでVlan100とVlan200がallowされているように見えません。

ちなみに端末-ルータ間のpingが通るかを確認すると、不都合の箇所を絞りこめると思います。

投稿2021/04/17 15:36

HogeAnimalLover

総合スコア4830

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

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

Rina1

2021/04/18 03:57

早々にご回答いただきありがとうございます! 追記にトランクポートの状況を記載しました。allowの設定はしていなかったのですが、すべて許可になっているようです。 pingの状況も記載しました。初心者で分かっておらず恐縮ですが、PC⇒サブIF 1/0.2には通常ではpingが通るはずですよね・・。 ということは、ルータの設定が何か誤っているのでしょうか・・。
HogeAnimalLover

2021/04/18 04:50

パソコンのデフォルトゲートウェイはルータを指していますか?
HogeAnimalLover

2021/04/18 07:15

あ。デフォルトゲートウェイがルータを指していませんね。(255.255.255.0はサブネットマスクです)これではルータの先にパケットを送ることはできません。デフォルトゲートウェイを198.168.0.254なり198.168.1.254にしなければなりません(各PCと同一ネットワークの方)。
Rina1

2021/04/18 14:35

デフォルトゲートウェイを設定したところ、通信できました! 初歩的な間違いで大変失礼いたしました。 本当にありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.46%

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

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

質問する

関連した質問