実現したいこと
サブインターフェースを使って、VLAN間通信がしたい。
発生している問題
PC1⇔PC3、PC2⇔PC4の間でPingが通らない
構成図
※GNS3
###状態
◆R1
・ポートの状況
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
追記
◆PC⇒ルータ間の通信状況
・PC1⇒サブIF 1/0.1
・PC1⇒サブIF 1/0.2
・PC1⇒PC3
どなたかお知恵をお貸しいただければ幸いです。
どうぞよろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/04/18 03:57
2021/04/18 04:50
2021/04/18 07:15
2021/04/18 14:35