cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
42060
Views
0
Helpful
17
Replies

can't ping a computer on the same network

alexscof1
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

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

View solution in original post

17 Replies 17

Jon Marshall
Hall of Fame
Hall of Fame

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

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

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

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

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

No, I don't get a reply when I ping the default gateway.

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

router and switch config have been attached

What is int fa0/1.20 meant to be doing in your router configuration ?

Jon

Nothing, I miss-typed the command. I typed "int fa0/1.20" instead of "int fa0/0.20".

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

I removed the encapsulation line and still don't get a reply.

 

No, I cannot ping the PCs from the router.

 

alex

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

PC0 IP: 192.168.0.193

PC1 IP: 192.168.0.129

Review Cisco Networking for a $25 gift card