cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1020
Views
0
Helpful
7
Replies

Trunking issue

olzhik
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

M02@rt37
VIP
VIP

Hello @olzhik,

The issue is on the Router:

M02rt37_0-1696536089037.png

Sub-int Gig0/0.30 and 0/0.40 are wrong. It should be configred on Gig0/1 interface like this:

M02rt37_1-1696536143499.png

After that you could ping each PC.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

7 Replies 7

Reza Sharifi
Hall of Fame
Hall of Fame

Can you post the output of "sh run"?

 

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

 

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

 

 

 

olzhik
Level 1
Level 1

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

M02@rt37
VIP
VIP

Hello @olzhik,

The issue is on the Router:

M02rt37_0-1696536089037.png

Sub-int Gig0/0.30 and 0/0.40 are wrong. It should be configred on Gig0/1 interface like this:

M02rt37_1-1696536143499.png

After that you could ping each PC.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

olzhik
Level 1
Level 1

Thanks!

You're welcome @olzhik 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.