cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3450
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?

38 Replies 38

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

This is bad for safety, if I don't want to config like that?

sorry I dont get what you mean ?

I have done these commands for S1 cause I need actually native VLAN to be VLAN123:

S1(config)#int range fa0/1,fa0/5

S1(config-if-range)#switchport trunk native vlan 123

S1(config-if-range)#switchport trunk allowed vlan 1,10,20,123

The similar thing is needed for S2 too.

it will not work, VLAN in router native is different than native vlan in SW. 
you must match it. 

So what should I fix then? You said that trunk native VLAN for Switches should be VLAN1, I need VLAN123 for that thing. Should I change something in Router configuration?

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

Thank you so much, forgot about native...

You are so so welcome 

Review Cisco Networking for a $25 gift card