10-05-2023 12:24 PM - edited 10-05-2023 12:26 PM
So here im trying to configure VLAN so that i can ping pc-a to pc-b, pc-c to pc-b, pc-a to pc-d, etc. I made 4 vlans (10,20,30,40), and assigned vlan 10 and vlan 20 to S1 (vlan 10 to pc-a, vlan 20 to pc-b), and vlan 30 and vlan 40 to s2 (vlan 30 to pc-c and vlan 40 to pc-d). So far only pc-a to pc-b pings, and i have no idea why. I configured both switches and all the vlans the same, how come the pc-c and pc-d don't ping?
My file: https://drive.google.com/file/d/1Hu09r5TU5o4cp5vmAo1sZh3fV6Noj0Dq/view?usp=sharing
Solved! Go to Solution.
10-05-2023 01:02 PM
Hello @olzhik,
The issue is on the Router:
Sub-int Gig0/0.30 and 0/0.40 are wrong. It should be configred on Gig0/1 interface like this:
After that you could ping each PC.
10-05-2023 12:39 PM
Can you post the output of "sh run"?
10-05-2023 12:53 PM
This is for S1
26R2-CS-1-301209418#sh run
Building configuration...
Current configuration : 1208 bytes
!
version 15.0
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname 26R2-CS-1-301209418
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
!
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
switchport access vlan 20
switchport mode access
!
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
!
interface GigabitEthernet0/1
switchport mode trunk
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
!
!
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
!
!
end
10-05-2023 12:54 PM
This is for S2 (the one im having issues with)
26R2-CS-2-301209418#sh run
Building configuration...
Current configuration : 1208 bytes
!
version 15.0
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname 26R2-CS-2-301209418
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
switchport access vlan 30
switchport mode access
!
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
switchport access vlan 40
switchport mode access
!
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
!
interface GigabitEthernet0/1
switchport mode trunk
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
!
!
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
!
!
end
10-05-2023
12:53 PM
- last edited on
10-05-2023
01:04 PM
by
shule
This is for router
26R2-CR-1-301209418#sh run
Building configuration...
Current configuration : 1053 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
service password-encryption
!
hostname 26R2-CR-1-301209418
!
!
!
enable secret X.X.X
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX15245147-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 172.17.10.1 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 172.17.20.1 255.255.255.0
!
interface GigabitEthernet0/0.30
encapsulation dot1Q 30
ip address 172.17.30.1 255.255.255.0
!
interface GigabitEthernet0/0.40
encapsulation dot1Q 40
ip address 172.17.40.1 255.255.255.0
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
!
interface Vlan1
no ip address
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
password X.X.X
login
!
line aux 0
!
line vty 0 4
login
!
!
!
end
10-05-2023 01:02 PM
Hello @olzhik,
The issue is on the Router:
Sub-int Gig0/0.30 and 0/0.40 are wrong. It should be configred on Gig0/1 interface like this:
After that you could ping each PC.
10-05-2023 01:07 PM
Thanks!
10-05-2023 01:11 PM - edited 10-05-2023 01:12 PM
You're welcome @olzhik
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