04-18-2023 07:49 PM
Hey everyone,
I hope this message finds you well. I'm currently taking a class on static routing for Cisco Packet Tracer and I'm feeling a bit lost. I'm having trouble getting PC-A to ping PC-B and I'm not sure why. Just trying to gain more insight. Any explanation and help would be greatly appreciated.
04-18-2023 08:35 PM
Hi @LearningCisco22 ,
Lee_R1 gi0/0/1 is connected to Lee_SW1 gi0/1, which is a trunk port. Lee_R1 needs to be configured with a sub interface for each vlan 341 (PC A) and 342 (PC B) as follow:
interface GigabitEthernet0/0/1
no ip address
!
interface GigabitEthernet0/0/1.341
encapsulation dot1Q 341
ip address 10.34.0.1 255.255.248.0
!
interface GigabitEthernet0/0/1.342
encapsulation dot1Q 342
ip address 10.34.9.1 255.255.254.0
!
With this configuration, you should be able to ping between PC A and PC B.
Regards,
04-19-2023 05:08 AM
Hello,
Please, open this file I attached and walk it through and study every detail of it. Compare with your configurations. You did a lot of mistakes, I will point a few out:
You made conceptual mistake like not configuring the router properly. If you are connecting the router to a Layer2 switch, you better configure trunk on the router in order the router be the gateway for the Vlans on the switch. Look how I did configure the routers interface. Pay attention on the encapsulation dot1q which is the same as trunk config on the switch.
You did not configured ip address on the interface between routers. I put the ip address and added static route between them.
You also made some mistakes with the addressing. The exercise explict tells you what to use and where but you have hosts with wrong gateway on it. And wrong mask also. Please, revise every device, compare with what the exercise ask and try to build on your own.
Good luck on your studies.
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