04-06-2015 08:53 AM - edited 03-07-2019 11:24 PM
I am new to packet tracer and I've completely hit a brick wall while setting up a small network.
I have a simple network setup with two computers. Both computers are on different subnets...
For some reason, when I ping PC1 from PC0 and vice versa, I don't get a reply. The router and the switch have not been configured. Help on this would be appreciated.
Solved! Go to Solution.
04-07-2015 11:09 AM
Your PC IPs are 192.168.0.x IPs and your router interfaces are 172.17.x.x IPs.
The PCs need an IP address from their vlan IP subnet ie. a 172.17.10.x or 172.17.20.x depending on which vlan the PC is in and their default gateways are the router subinterface IPs for their respective vlans.
You can't just assign different IPs to the PCs and router interfaces.
Jon
04-06-2015 09:45 AM
The PCs are not in the same IP subnet and their default gateways are wrong ie. the default gateway is not in either PCs subnet.
If you want the PCs to be able to ping each other without configuring anything else put them in the same IP subnet.
If you want to use different subnets for each PC then you need -
1) a vlan per IP subnet and each PC is in it's own subnet
2) a trunk from the switch to the router allowing both vlans
3) subninterfaces on the router for each vlan and the IP address on each subinterface needs to be from the IP subnet.
The PCs then have their default gateways set to the subinterface IP.
Jon
04-06-2015 12:54 PM
Hello, thanks for the reply. I've configured the switch and the router but I'm still not getting a reply when I ping. I've completely ran out of ideas so I've included a link to the packet tracer file for people to take a closer look at where I'm going wrong.
http://ge.tt/5buaVxD2/v/0
04-06-2015 01:17 PM
Most of us don't use PT.
Have you assigned the PCs into the correct vlans on the switch and do they have the correct default gateways ?
If so can you post -
1) from the switch "sh int trunk"
2) the router configuration
Jon
04-06-2015 01:54 PM
switch vlan:
Switch#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/3 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/3 10,20
Port Vlans allowed and active in management domain
Fa0/3 10,20
Port Vlans in spanning tree forwarding state and not pruned
Fa0/3 10,20
router config:
Router(config)# int fa0/0.10
Router(config-subif)#enc do 10
Router(config-subif)#ip address 172.17.10.1 255.255.255.0
Router(config-subif)#int fa0/1.20
Router(config-subif)#enc do 20
Router(config-subif)#ip address 172.17.20.1 255.255.255.0
Router(config-subif)#end
04-06-2015 02:33 PM
The configuration looks fine.
Are the PC ports in the correct vlan and using the right default gateways ?
Can they ping their own default gateways and can they both ping the other subinterface IP ?
Jon
04-07-2015 06:28 AM
No, I don't get a reply when I ping the default gateway.
04-07-2015 06:33 AM
So the PCs cannot ping their own default gateways ?
If so have you configured the ports that the PCs connect to in the correct vlans ?
Are the IPs and subnet masks of the PCs correct ?
Are all the interfaces up on the switch and the router ?
If yes to everything above can you post the switch and router configuration.
If you do post can you add them as attachments to keep the thread size manageable.
Jon
04-07-2015 07:23 AM
04-07-2015 08:15 AM
What is int fa0/1.20 meant to be doing in your router configuration ?
Jon
04-07-2015 08:18 AM
Nothing, I miss-typed the command. I typed "int fa0/1.20" instead of "int fa0/0.20".
04-07-2015 09:10 AM
Okay, can you just remove the encapsulation line just in case that is confusing the router.
Other than that your configuration look okay.
From the router can you ping both PCs ?
Jon
04-07-2015 09:45 AM
I removed the encapsulation line and still don't get a reply.
No, I cannot ping the PCs from the router.
alex
04-07-2015 09:51 AM
What are the IP settings on the PCs ?
Are the ports that the PCs connect to on the switch showing as up ?
Can you post a "sh vlan brief" from the switch ?
Jon
04-07-2015 10:58 AM
PC0 IP: 192.168.0.193
PC1 IP: 192.168.0.129
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