Networking question on determining the IP

  • Thread starter Darkstar3000
  • Start date
  • Tags
    Networking
In summary: and you can choose anything you like for the host identifier, as long as it's not 0, 255, or 255.255.255.
  • #1
Darkstar3000
29
0
Consider the simple network shown below:

http://img856.imageshack.us/img856/8966/wrwrwr.png

Write down an IP address for all interfaces at all hosts and routers in the network. The IP addresses for A and E are as given. You should assign IP addresses so that interfaces on the same network have the same network-part of their IP address. Indicate the number of bits in the network-part of this address.

///////////////////////////////////////

This question is in one of my assignments and I have no idea on how to do it, I've tried looking up any relevant information but found nothing. How would I go about calculating the IP address of all the devices ?
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
Darkstar3000 said:
Consider the simple network shown below:

http://img856.imageshack.us/img856/8966/wrwrwr.png

Write down an IP address for all interfaces at all hosts and routers in the network. The IP addresses for A and E are as given. You should assign IP addresses so that interfaces on the same network have the same network-part of their IP address. Indicate the number of bits in the network-part of this address.

///////////////////////////////////////

This question is in one of my assignments and I have no idea on how to do it, I've tried looking up any relevant information but found nothing. How would I go about calculating the IP address of all the devices ?

Hi Darkstar! :smile:

Let's start with the wikipedia definition of an IP address:
http://en.wikipedia.org/wiki/IP_address

The first part of an IP address is the network identification.
The second part is the host identification.
It depends on the type op IP address where the separation between the two is.
That is, whether it is a class A, class B, or class C network address.

Can you tell which classes your given IP addresses are?
 
Last edited by a moderator:
  • #3
I like Serena said:
Hi Darkstar! :smile:

Let's start with the wikipedia definition of an IP address:
http://en.wikipedia.org/wiki/IP_address

The first part of an IP address is the network identification.
The second part is the host identification.
It depends on the type op IP address where the separation between the two is.
That is, whether it is a class A, class B, or class C network address.

Can you tell which classes your given IP addresses are?
I'm guessing that mine is a class A since "Range of first octet (decimal) for class A is 0 - 127"

and based on the information you've provided the 2 computers on the left will have "111.111." as the beginning of their ip addresses
 
  • #4
Close.
On the left you have indeed class A addresses.
The netwerk identification is the first octet (the second is not part of it).
So the 2 computers on the left start with "111.".
The second part is an arbitrary choice, although 0.0.0 (any-mask) and 255.255.255 (broadcast) have special meanings, so you shouldn't use those.
Any other choice is fine, just pick one (or rather two ;).

What about the IP addresses on the right?
 
  • #5
I like Serena said:
Close.
On the left you have indeed class A addresses.
The netwerk identification is the first octet (the second is not part of it).
So the 2 computers on the left start with "111.".
The second part is an arbitrary choice, although 0.0.0 (any-mask) and 255.255.255 (broadcast) have special meanings, so you shouldn't use those.
Any other choice is fine, just pick one (or rather two ;).

What about the IP addresses on the right?

I like Serena said:
Close.
On the left you have indeed class A addresses.
The netwerk identification is the first octet (the second is not part of it).
So the 2 computers on the left start with "111.".
The second part is an arbitrary choice, although 0.0.0 (any-mask) and 255.255.255 (broadcast) have special meanings, so you shouldn't use those.
Any other choice is fine, just pick one (or rather two ;).

What about the IP addresses on the right?

So it I can assign computer B to have it's address as 111.2.111 or does the last part change to 112 ? or does the middle part need to be 3 digits as well

and on the right we have class C and the computer would have the address 222.3.222 or something similar ?

I'm sorry if my questions sounds stupid, I'm just really confused
 
  • #6
B can have any host identification of 3 octets, for instance 111.2.111 or 0.0.2.
You still have to prefix it with the network identification, which is 111.
So B could be for instance 111.111.2.111 or 111.0.0.2.
An IP address always consists of 4 octets (each octet is in the range 0-255).

On the right we have indeed a class C network, meaning the first 3 octets (24 bits) identify the network, which is 222.222.222 (but not 222.2.222, where did you get that?).
 
  • #7
I like Serena said:
B can have any host identification of 3 octets, for instance 111.2.111 or 0.0.2.
You still have to prefix it with the network identification, which is 111.
So B could be for instance 111.111.2.111 or 111.0.0.2.
An IP address always consists of 4 octets (each octet is in the range 0-255).

On the right we have indeed a class C network, meaning the first 3 octets (24 bits) identify the network, which is 222.222.222 (but not 222.2.222, where did you get that?).

Since the second part is arbitrary, does that mean that my address for computer B can also be 111.111.7.111 ?


I was using 222.2.222 as an example answer for computer D (on the right).
 
  • #8
Darkstar3000 said:
Since the second part is arbitrary, does that mean that my address for computer B can also be 111.111.7.111 ?

Yep!


I was using 222.2.222 as an example answer for computer D (on the right).

Not an option.
The first 3 octets must be 222.222.222 since that identifies the network.
You can only choose the last octet.
 
  • #9
I like Serena said:
Yep!




Not an option.
The first 3 octets must be 222.222.222 since that identifies the network.
You can only choose the last octet.


Alright, got that part. Thank you


So computer D is going to have to be 222.222.222.222.6 (6 being arbitrary as well ?) ?
 
  • #10
Nope. Sorry. An IP address has to consist of exactly 4 octets (not 5).
 
  • #11
I like Serena said:
Nope. Sorry. An IP address has to consist of exactly 4 octets (not 5).


So 222.222.222.6 ?

In the previous post I put an extra octet because I thought I needed to use the network identifier as the prefix
 
  • #12
Yes. The network identifier has to be there as a prefix.
That leaves only 1 octet for the host identifier.
So 222.222.222.6 is indeed a proper IP address for computer D.
 
  • #13
Thank you very much.So basically all I have to do is remember the class and assigning addresses would be this simple ?

Is there a reputation system on this website ?
 
  • #14
The "network" identifier is "222.222.222".
The host identifier in this case would be "6",
 
  • #15
I like Serena said:
The "network" identifier is "222.222.222".
The host identifier in this case would be "6",

I managed to figure that out from your previous post. once again, Thank you
 
  • #16
You're welcome. :)

Darkstar3000 said:
Is there a reputation system on this website ?

Reputation system? :confused:
 
  • #17
I like Serena said:
You're welcome. :)
Reputation system? :confused:

You know, like thanking someone in a thread for helping them
 
  • #18
Ah, okay.

I'm afraid we do not have "like" or "thanks" buttons on PF.
We have medals that are assigned by staff.
And we have awards that result from elections (only in december).

Until the next december the only thing a member can do is write thanks in regular posts.
 
  • #19
I like Serena said:
Ah, okay.

I'm afraid we do not have "like" or "thanks" buttons on PF.
We have medals that are assigned by staff.
And we have awards that result from elections (only in december).

Until the next december the only thing a member can do is write thanks in regular posts.

Oh I see. Well I guess I've thanked you enough, I'll get on with the rest of my assignment :P
 

Related to Networking question on determining the IP

1. What is an IP address?

An IP address, or Internet Protocol address, is a unique numerical identifier assigned to each device on a computer network. It allows devices to communicate with each other and access the internet.

2. How do I find my IP address?

To find your IP address, you can use the command prompt on a Windows computer or the Terminal on a Mac. Simply type in "ipconfig" or "ifconfig" respectively and press enter. Your IP address will be listed under the "IPv4 Address" or "inet" section.

3. How do I determine the IP address of another device on my network?

You can use a network scanning tool, such as "Angry IP Scanner" or "Advanced IP Scanner," to scan your network and see a list of all connected devices and their corresponding IP addresses.

4. Can I change my IP address?

Yes, you can change your IP address by using a virtual private network (VPN) or by contacting your internet service provider (ISP) and requesting a new address. Keep in mind that some ISPs may charge a fee for a new IP address.

5. What is the difference between a public IP address and a private IP address?

A public IP address is assigned to a device by the ISP and is used to communicate with devices outside of the local network. A private IP address is assigned by a router to a device on a local network and is used for communication within the network. Private IP addresses are not accessible from the internet.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
3
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
635
  • Programming and Computer Science
Replies
1
Views
771
  • Computing and Technology
Replies
4
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
570
  • Programming and Computer Science
Replies
20
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
1K
Replies
13
Views
1K
  • Computing and Technology
Replies
27
Views
2K
Replies
16
Views
4K
Back
Top