Options

Packet Tracer - Pinging Computers w/ Private IP Addresses

DatsyukDatsyuk Registered Users Posts: 3 ■□□□□□□□□□
Hey guys, I'm just starting out in a first year networking course and have an activity for Packet Tracer.

I have to have two computers with static addresses in the 192.168.x.x private address range, and then successfully ping them.

For PC0 I assigned the IP address of 192.168.245.245, and for PC1 I assigned the IP address of 192.168.250.250.

This is essentially the extent of what I know how to do.. I then added 2950-24 switch, generic router-pt, and a generic server-pt. I'm not sure if these are necessary, although I am assuming they are.

My ping requests from one computer to another fail. Am I supposed to configure anything within the switch, server, or router?

Thanks in advance.

Edit: Was able to successfully ping by making the addresses 192.168.0.10 and 192.168.0.15.

Comments

  • Options
    tjh87tjh87 Member Posts: 66 ■■□□□□□□□□
    Oh my...please see www.cisco.com
    2013 Goals: /COLOR][COLOR=#ff0000]x[/COLOR][COLOR=#0000cd CCNP, [ ] CCDA, [ ] VCA-DCV
    2014 Goals: [ ] CCDP, [ ] CCNA Security
    , [ ] CCNP Security
    2015 Goals: [ ] Finish BS in CIS,
    [ ] CCIE R&S Written
    2016 Goals:
    [ ] CCIE R&S
  • Options
    DatsyukDatsyuk Registered Users Posts: 3 ■□□□□□□□□□
    Changed the IP addresses to 192.168.0.10 & 198.168.0.15, and it worked. I thought the addresses I listed above would work because they are within the private range. Is there a way for me to delete this thread as it is rather insignificant?

    ** Would you be able to point me in the right direction for solving this question. I have tried a couple of subnet calculators, but don't really know what I'm doing.

    The network address is 220.126.15.0, and there are 100 required nodes.

    a. What is the default subnet mask?
    I believe it is 255.255.255.0 /24
    b. What subnet mask is required to supply the required number of nodes per network?
    c. How many new networks are created?
    d. What are the first and last 2 networks created?
    e. What is broadcast address of the first and last network created?
  • Options
    JLAW904JLAW904 Member Posts: 23 ■□□□□□□□□□
    To point you in the right direction....

    You'll have a lot of trouble if you don't understand IP addresses and subnetting. Here's some easy to comprehend videos:

    Watch this first:
    IP Addresses and Subnetting - YouTube

    Then these (multiple parts):
    Subnetting Cisco CCNA -Part 1 The Magic Number - YouTube

    These videos really helped make the light bulb turn on for me when I was starting out with subnetting.
  • Options
    adam220891adam220891 Member Posts: 164 ■■■□□□□□□□
    A little off-topic, but can someone explain this to me?

    You have a router separating two PCs on the same subnet (192.168.0.10 and 192.168.0.15).

    Why does this work? Unless OP changed his mine and only used a switch, I didn't think you could do this.
  • Options
    tjh87tjh87 Member Posts: 66 ■■□□□□□□□□
    What do you mean be "separating?" Do you mean the PCs are directly connected to two separate interfaces on the router?
    2013 Goals: /COLOR][COLOR=#ff0000]x[/COLOR][COLOR=#0000cd CCNP, [ ] CCDA, [ ] VCA-DCV
    2014 Goals: [ ] CCDP, [ ] CCNA Security
    , [ ] CCNP Security
    2015 Goals: [ ] Finish BS in CIS,
    [ ] CCIE R&S Written
    2016 Goals:
    [ ] CCIE R&S
  • Options
    adam220891adam220891 Member Posts: 164 ■■■□□□□□□□
    I happen to have had my notes open from class, and I had drawn two PCs and in between the two was a router. The IP address of PC1 was 172.16.31.1/16 and the IP address of PC2 was 172.16.224.1/16. Underneath it I wrote 'Ping won't work -> Change subnet mask. Subnet mask tells you what network a host is on.'

    OP seems to have done something similar, or so I thought. I don't suppose having two PCs on two different interfaces of a router is really separating them either; I suppose having a router hooked up to another router would make it so they were separated.

    Just trying to clear this up for myself, if you could help me out.
  • Options
    mady0009mady0009 Member Posts: 11 ■□□□□□□□□□
    Thanks for sharing in this answer
  • Options
    GngoghGngogh Member Posts: 165 ■■■□□□□□□□
    Hi, for your packet tracer activity the two pcs have to be in the same subnet to be able to ping each other,
    For PC0 I assigned the IP address of 192.168.245.245, and for PC1 I assigned the IP address of 192.168.250.250.

    In your example you use the default subnet mask for class C. thats why they didnt ping each other.
    Let's understand why this happen:

    Subnet mask address determinate the network id and the host id

    In your example - 192.168.245.245 - 255.255.255.0

    the network mask is saying that the network id is 192.168.245. and the host id can be all numbers betwen 0-254

    so, you had two different network id's, ( two diferent network's 192.168.245 and 192.168.250 )

    For the two computer's to able to ping each other in a class C subnet the first 3 octets have to be identical.
    Was able to successfully ping by making the addresses 192.168.0.10 and 192.168.0.15

    the first 3 octets are now identical in your correction, the network id is now 192.168.0.

    Ofcourse this was not the only way to solve your problem, but you should understand first Class A, B and C ip address's and the correspondent mask address's.

    to solve your problem i only can see 3 solutions.

    1 - the one you have used.

    2 - change the mask address to 255.255.0.0 ( so the network id would be 192.168. )

    3 - with out changing any ip or subnet address's, create 2 vlan's on the switch and plug a router to route betwen network's
Sign In or Register to comment.