cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3445
Views
70
Helpful
38
Replies

Can't ping Switch from PC (using VLANS)

Gugolsan
Level 1
Level 1

Hello, I'm using Cisco Packet Tracer and trying to configure VLANs and routing between them. Here are two tables, which I have used for configuring:

Device

Interface

IP address

Subnet mask

Default gateway

R1

G0/1.1

192.168.1.1

255.255.255.0

-

 

G0/1.10

192.168.10.1

255.255.255.0

-

 

G0/1.20

192.168.20.1

255.255.255.0

-

 

Lo0

209.165.200.225

255.255.255.224

-

S1

VLAN 1

192.168.1.11

255.255.255.0

192.168.1.1

S2

VLAN 1

192.168.1.12

255.255.255.0

192.168.1.1

PC-A

Fa0

192.168.10.3

255.255.255.0

192.168.10.1

PC-B

Fa0

192.168.20.3

255.255.255.0

192.168.20.1

PC-F

Fa0

192.168.20.2

255.255.255.0

192.168.20.1

PC-S

Fa0

192.168.10.2

255.255.255.0

192.168.10.1

 

PortsAttachmentNet

S1 F0/1

802.1Q Trunk

N/A

S2 F0/1

802.1Q Trunk

N/A

S1 F0/5

802.1Q Trunk

N/A

S1 F0/2

VLAN 20 – Faculty

192.168.20.0/24

S2 F0/2

VLAN 10 – Students

192.168.10.0/24

S1 F0/6

VLAN 10 – Students

192.168.10.0/24

S2 F0/18

VLAN 20 – Faculty

192.168.20.0/24

My ,pkt file looks like:

Gugolsan_0-1668909082155.png

I have connected and customized devices, customized VLANs and trunks on switches, customized routing between VLAN based on trunk. Then I have been pinging from PC-A to gateway VLAN 10 with address 192.168.10.0, from PC-A to PC-B, from PC-A to Lo0, from PC-F to PC-S and from PC-S to S2. Everything has been succeded except last: ping from PC-S to switch S2. Where can be the problem? Any ideas?

2 Accepted Solutions

Accepted Solutions

in SW1 and SW2 config trunk native VLAN to be VLAN 1 

View solution in original post

if you want to use VLAN 123 as native VLAN then 
1-remove VLAN1 and assign IP you use before for VLAN1 for VLAN 123 in both SW1 & SW2
2- in router remove G0/1.1 and config new subinterface g0/1.123 as native, and use same IP

View solution in original post

38 Replies 38

Hello,

post your zipped Packet Tracer project (.pkt) file...

Have you seen my attached file? Any suggestions?

I have forgot about passwords: for S1 and S2 - ciscoVLAN and class311, for R1 - ciscoRoute and class311

Gugolsan
Level 1
Level 1

Hello, i attached zip with .pkt here

check the VLAN in both SW1 and SW2 and if some is missing then add it.

I have checked and results seem good:

Gugolsan_0-1668970207252.png

Gugolsan_0-1668970564568.png

 

 

can you show me the config of interface g0/1 in Router ?

Here it is:

Gugolsan_0-1668971101397.png

 

are 
for all PC in VLAN 10 config the GW to be 192.168.10.1 (subinterface in router) ??
for all PC in VLAN 20 config the GW to be 192.168.20.1 (subinterface in router ) ??

Yes, it is like this. PC-A and PC-S have 192.168.10.1 and PC-B and PC-F 192.168.20.1.

OK, 
add another PC in both SW and assign VLAN1 to port connect these new PC.

What do you mean by assign VLAN1?

SW1-PC
SW1 use port x/x to connect PC 
config port x/x as following 
interface x/x
switchport access vlan 1

Done for both PCs: PC0 and PC1. Now it looks like this:

Gugolsan_0-1668974148744.png

 

Review Cisco Networking for a $25 gift card