cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1084
Views
1
Helpful
8
Replies

Cisco Packet tracer lab issue - Can't ping between devices

ZohaibAli4149
Level 1
Level 1

Hello, I've created a lab in Cisco Packet tracer and I'm trying to ping between AZ-SW01 (Switch) and Router (AZ-RT01). I have configured the VLAN 1 with an IP address for both router and switch. I've also no shut the ports that the router and switch are connected to. But I can't ping between the router and the switch:


ZohaibAli4149_0-1692050026254.png

Here are the configs:

ZohaibAli4149_1-1692050057687.png

ZohaibAli4149_2-1692050080623.png

 

ZohaibAli4149_3-1692050114880.png

 

 

 

1 Accepted Solution

Accepted Solutions

OK so what you have is a couple things going on. He also explains it in the video of why what works and what doesn't. It also explains why your other cable worked. You don't need 2 cables.

The first interface you have it connected to G0/0/1 (before you connected the second interface) is a routed port (L3) which needs an IP to be able to pass traffic and ping. When Jeremy configured the VLAN IP on the router the interfaces associated with it were L2. He even shows you cant configure the IP on the L2 interface that's why he uses the VLAN on the router. 

If you notice the second cable you connected to the router is port G0/1/2 which is in fact a L2 port and part of VLAN 1 by default (also explained in the video). 

So to recap the reason it works with the second link connected is because its a L2 port on the router and its passing the traffic to the VLAN interface you have created. It didn't work on the first port because it was a L3 port and needs the IP configured. As you have it you can remove your first connection to the router and keep the G0/1/2 connection and your lab will function as intended.

If you need further clarification please don't hesitate to ask.

 

-David

View solution in original post

8 Replies 8

Hello,

Can you try configuring Interface G0/0/1 on the router with the IP address 192.168.1.1/24 and remove the VLAN configuration on there as well.

You should not configure VLANs on routers as they are a L2 construct and stop at the L3 device such as a router. The VLAN on the router is internal and you want be able to get past the physical interface with no IP is configured.

You may also need to configure a default-gateway on the Switch if what I provide above does not work but try it without it first.

-David

I am following an online course on CBTNuggets and the guy has a live lab. I am trying to mimic his real lab set up in Cisco Packet tracer. He has configured it exactly like how it's shown in the images yet he's able to ping? How?

Can you link the video or Skill?

 

ZohaibAli4149
Level 1
Level 1

Ok very interesting. I am able to ping both Router and Switch, but I had to connect two Straight Through cable between router and switch for them to be pingable? Why is that? 

ZohaibAli4149_0-1692055792523.png

 

ZohaibAli4149_1-1692055820820.png

 

 

OK so what you have is a couple things going on. He also explains it in the video of why what works and what doesn't. It also explains why your other cable worked. You don't need 2 cables.

The first interface you have it connected to G0/0/1 (before you connected the second interface) is a routed port (L3) which needs an IP to be able to pass traffic and ping. When Jeremy configured the VLAN IP on the router the interfaces associated with it were L2. He even shows you cant configure the IP on the L2 interface that's why he uses the VLAN on the router. 

If you notice the second cable you connected to the router is port G0/1/2 which is in fact a L2 port and part of VLAN 1 by default (also explained in the video). 

So to recap the reason it works with the second link connected is because its a L2 port on the router and its passing the traffic to the VLAN interface you have created. It didn't work on the first port because it was a L3 port and needs the IP configured. As you have it you can remove your first connection to the router and keep the G0/1/2 connection and your lab will function as intended.

If you need further clarification please don't hesitate to ask.

 

-David

AHA! YES OMG YESS!!! SWEET BLISS. Thank You for explaining!!!! This was eating at my brain! But then why does he have two cables coming out of the router and going in to the switch:

ZohaibAli4149_0-1692058197214.png

 

Im not so sure he does. According to the diagram in the video the 2 router connections are going to the 2 switches and the third connection on the switch is going to an access point. If you look closely it looks like F0/3 is connected to the AP in your picture.

DavidRuess_0-1692059193297.png

 

 

Review Cisco Networking for a $25 gift card