08-14-2023 02:56 PM
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:
Here are the configs:
Solved! Go to Solution.
08-14-2023 05:05 PM - edited 08-14-2023 05:05 PM
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
08-14-2023 03:13 PM
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
08-14-2023 03:56 PM
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?
08-14-2023 04:06 PM
Can you link the video or Skill?
08-14-2023 04:28 PM
08-14-2023 04:29 PM - edited 08-14-2023 04:30 PM
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?
08-14-2023 05:05 PM - edited 08-14-2023 05:05 PM
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
08-14-2023 05:10 PM
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:
08-14-2023 05:27 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide