05-21-2020 07:43 AM
Hi guys, this is my firts post here, I'm studying for the CCNA exam and now I'm learning how to use vlans. As the title says I cannot ping PCs or other objects over the first switch but I'm still able to ping sub interfaces. This is the configuration, thanks for your time:
Switc0 config: Current configuration : 1687 bytes ! version 12.2 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Switch ! ! ! ! ! ! spanning-tree mode pvst spanning-tree extend system-id ! interface FastEthernet0/1 switchport access vlan 10 switchport mode access ! interface FastEthernet0/2 switchport access vlan 10 switchport mode access ! interface FastEthernet0/3 switchport access vlan 10 switchport mode access ! interface FastEthernet0/4 ! interface FastEthernet0/5 ! interface FastEthernet0/6 ! interface FastEthernet0/7 ! interface FastEthernet0/8 ! interface FastEthernet0/9 ! interface FastEthernet0/10 switchport access vlan 20 switchport mode access ! interface FastEthernet0/11 switchport access vlan 20 switchport mode access ! interface FastEthernet0/12 switchport access vlan 20 switchport mode access ! interface FastEthernet0/13 switchport access vlan 20 switchport mode access ! interface FastEthernet0/14 switchport access vlan 20 switchport mode access ! interface FastEthernet0/15 switchport access vlan 30 switchport mode access ! interface FastEthernet0/16 switchport access vlan 40 switchport mode access ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! interface FastEthernet0/20 switchport access vlan 50 switchport mode access ! interface FastEthernet0/21 ! interface FastEthernet0/22 ! interface FastEthernet0/23 switchport mode trunk ! interface FastEthernet0/24 switchport mode trunk ! interface GigabitEthernet0/1 ! interface GigabitEthernet0/2 ! interface Vlan1 no ip address shutdown ! ! ! ! line con 0 ! line vty 0 4 login line vty 5 15 login ! ! ! ! end Router0 config: Current configuration : 1187 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Router ! ! ! ! ! ! ! ! ip cef no ipv6 cef ! ! ! ! ! ! ! ! ! ! ! ! spanning-tree mode pvst ! ! ! ! ! ! interface FastEthernet0/0 no ip address duplex auto speed auto ! interface FastEthernet0/0.1 encapsulation dot1Q 10 ip address 172.16.10.1 255.255.255.0 ! interface FastEthernet0/0.2 encapsulation dot1Q 20 ip address 172.16.20.1 255.255.255.0 ! interface FastEthernet0/0.3 encapsulation dot1Q 30 ip address 172.16.30.1 255.255.255.0 ! interface FastEthernet0/0.4 encapsulation dot1Q 40 ip address 172.16.40.1 255.255.255.0 ! interface FastEthernet0/0.5 encapsulation dot1Q 50 ip address 172.16.50.1 255.255.255.0 ! interface FastEthernet0/0.6 encapsulation dot1Q 60 ip address 172.16.60.1 255.255.255.0 ! interface FastEthernet0/0.7 encapsulation dot1Q 70 ip address 172.16.70.1 255.255.255.0 ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Vlan1 no ip address shutdown ! ip classless ! ip flow-export version 9 ! ! ! ! ! ! ! ! line con 0 ! line aux 0 ! line vty 0 4 login ! ! ! end Switch1 config: Current configuration : 1149 bytes ! version 12.2 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Switch ! ! ! ! ! ! spanning-tree mode pvst spanning-tree extend system-id ! interface FastEthernet0/1 ! interface FastEthernet0/2 ! interface FastEthernet0/3 ! interface FastEthernet0/4 ! interface FastEthernet0/5 ! interface FastEthernet0/6 ! interface FastEthernet0/7 ! interface FastEthernet0/8 ! interface FastEthernet0/9 ! interface FastEthernet0/10 ! interface FastEthernet0/11 ! interface FastEthernet0/12 ! interface FastEthernet0/13 ! interface FastEthernet0/14 ! interface FastEthernet0/15 ! interface FastEthernet0/16 ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! interface FastEthernet0/20 ! interface FastEthernet0/21 ! interface FastEthernet0/22 switchport mode trunk ! interface FastEthernet0/23 switchport mode trunk ! interface FastEthernet0/24 switchport mode trunk ! interface GigabitEthernet0/1 ! interface GigabitEthernet0/2 ! interface Vlan1 no ip address shutdown ! ! ! ! line con 0 ! line vty 0 4 login line vty 5 15 login ! ! ! ! end Switch2 config: Current configuration : 1409 bytes ! version 12.2 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Switch ! ! ! ! ! ! spanning-tree mode pvst spanning-tree extend system-id ! interface FastEthernet0/1 switchport access vlan 60 switchport mode access ! interface FastEthernet0/2 switchport access vlan 60 switchport mode access ! interface FastEthernet0/3 switchport access vlan 60 switchport mode access ! interface FastEthernet0/4 switchport access vlan 60 switchport mode access ! interface FastEthernet0/5 switchport access vlan 60 switchport mode access ! interface FastEthernet0/6 ! interface FastEthernet0/7 ! interface FastEthernet0/8 ! interface FastEthernet0/9 ! interface FastEthernet0/10 switchport access vlan 50 switchport mode access ! interface FastEthernet0/11 ! interface FastEthernet0/12 ! interface FastEthernet0/13 ! interface FastEthernet0/14 ! interface FastEthernet0/15 ! interface FastEthernet0/16 ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! interface FastEthernet0/20 ! interface FastEthernet0/21 ! interface FastEthernet0/22 ! interface FastEthernet0/23 ! interface FastEthernet0/24 switchport mode trunk ! interface GigabitEthernet0/1 ! interface GigabitEthernet0/2 ! interface Vlan1 no ip address shutdown ! ! ! ! line con 0 ! line vty 0 4 login line vty 5 15 login ! ! ! ! end Switch3 config: Current configuration : 1358 bytes ! version 12.2 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Switch ! ! ! ! ! ! spanning-tree mode pvst spanning-tree extend system-id ! interface FastEthernet0/1 switchport access vlan 70 switchport mode access ! interface FastEthernet0/2 switchport access vlan 70 switchport mode access ! interface FastEthernet0/3 switchport access vlan 70 switchport mode access ! interface FastEthernet0/4 switchport access vlan 70 switchport mode access ! interface FastEthernet0/5 switchport access vlan 70 switchport mode access ! interface FastEthernet0/6 ! interface FastEthernet0/7 ! interface FastEthernet0/8 ! interface FastEthernet0/9 ! interface FastEthernet0/10 ! interface FastEthernet0/11 ! interface FastEthernet0/12 ! interface FastEthernet0/13 ! interface FastEthernet0/14 ! interface FastEthernet0/15 ! interface FastEthernet0/16 ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! interface FastEthernet0/20 ! interface FastEthernet0/21 ! interface FastEthernet0/22 switchport mode trunk ! interface FastEthernet0/23 ! interface FastEthernet0/24 ! interface GigabitEthernet0/1 ! interface GigabitEthernet0/2 ! interface Vlan1 no ip address shutdown ! ! ! ! line con 0 ! line vty 0 4 login line vty 5 15 login ! !
Solved! Go to Solution.
05-21-2020 11:05 AM
05-21-2020 08:02 AM
do PCs have default gateways set up? like all PCs in vlan 10 should point to 172.16.10.1 and be on 172.16.10.x/24 network.
if this is in Packet tracer, please zip it and attach here, it is easier/faster to spot issue
Regards, ML
**Please Rate All Helpful Responses **
05-21-2020 08:05 AM
Yes... I can ping the pcs that are connected to the same switch as the router is connected, but can't ping over the first switch
05-21-2020 11:05 AM
05-21-2020 11:32 AM
Thanks, I really appreciate. I would like to know why tho. If you have a book or some PDF files to read about it would be nice, because in the slides from where I'm studying it's not mentioned, and I'd like to know how VLANS and protocols works in the deep. Thanks for your answer :)
05-21-2020 11:45 AM - edited 05-21-2020 11:49 AM
I think you need ccna book to pass the exam; the one by W. Odom is good one.
I look for source for your question"Why vlan x is removed from trunking?"
but compare show interface trunk before and after a "fix" was apply
Switch#sh int trunk Port Mode Encapsulation Status Native vlan Fa0/22 on 802.1q trunking 1 Port Vlans allowed on trunk Fa0/22 1-1005 Port Vlans allowed and active in management domain Fa0/22 1,70
EDIT: this switch will not let traffic in vlans 10 thru 60 pass over its trunks; only vlan 1 and 70
05-21-2020 08:24 AM
05-21-2020 12:56 PM
This is SW1 after the fix
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide