cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
792
Views
1
Helpful
5
Replies

Cannot ping PC on a VLAN problem

kennylee88
Level 1
Level 1

Good day, 

 

  I have a simple three routers and three-layer 2 switches. I also tried adding a layer 3 Cisco 3650 switch. 

I can ping every PCs that's on the layer 2 switch, but I cannot ping the PC that's on the layer 3 switch on VLAN 1.  Anyone can help out I greatly appreciate it.   Here is the pkt file in zip,

 

 

5 Replies 5

Martin L
VIP
VIP

Gateway of PC is Router but it should be L3 switch or any "near" L3 device (usually PC is direcly connected to L3 device).  L3 devices know about its directly connected networks if interface is UP UP state = route is added into routing table.  So, L3 switch0 and Router0 must be on the same subnet ( shared network) but not PC and L3 switch;  PC to L3 Switch0 must have different network then L3 switch0 to Router0. So, subnetting must be change;

Regards, ML
**Please Rate All Helpful Responses **

Martin, thanks for the feed back.  

So I found out if I don't use No Switchport.  All the PC and ping other networks.

 

hostname SW1

!

!

!

!

!

!

ip routing

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

!

!

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

!

interface FastEthernet0/23

!

interface FastEthernet0/24

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

ip classless

ip route 0.0.0.0 0.0.0.0 6.0.0.1

!

ip flow-export version 9

 

if I don't use No Switchport.  All the PC and ping other networks.  < not sure about this option; do u mean No Switchport or no ip routing ?  Anyway, why use L3 there? wny not L2? 

although its role and purpose vary, L3 switch is like a router but switch has more ports and does L2 vlans.

Regards, ML
**Please Rate All Helpful Responses **

@kennylee88 

 You are missing one route on the router 2

 

ip route 6.0.0.0 255.0.0.0 4.0.0.1

 

If you want to use the switch as Layer3, you need a new network to put the PC. You can create a new interface vlan to be the gateway of the PC and leave the interface fa0/24 as is.

But, you you want to keep the PC on the network 6.0.0.0 then you can do what you did and transform the Layer3 switch into a Layer2 switch by using the command "switchport" on the interface Fa 0/24

Flavio thanks for your kind help as always.