Router Design

Translate to English Translate to German Translate to Spanish Translate to French Translate to Russian Translate to Dutch Translate to Italian Translate to Portuguese Translate to Japanese Translate to Korean Translate to Chinese Translate to Greek

How do you calculate a Network Router IP given your IP address and Subnet Mask?

same as above. this is for a data comm assignment. i'm trying to learn how to do these types of problems...can you guys please help me out. here is an ex:

The IP Address 192.168.0.0 has two octets of network prefix and two octets of network suffix. The subnet mask is 255.255.0.0.
What is the IP for the network router?
How many nodes are available to be attached to this network?.

thanks in advance!

Public Comments

1. Impossible to tell. By CONVENTION some administrators use the .1 address for the router, but your network might be different. All 1's are reserved for the broadcast address 192.168.255.255. All 0's are usually reserved 192.168.0.0. All other addresses are available 256 x 256 - 2.

2. Do an bitwise and operation on the ip address and the subnet. The result is the default gateway which will likely be the network router. The more detailed answer is the IP address range is limited by the subnet mask. The first and last ip addresses are special and refer to the default gateway and the broadcast addresses, repspectively.

The number of nodes that the network can support depends on how addresses it can provide. You are told in the question how much of the ip address represents network and how many represent hosts so it should be trivial to calculate the maximum number of unique hosts that can be represented.

3. 192.168.0.1 <-- Network IP (router)
255.255.0.0 < -- 16bit subnet. (8bits per octet) or aka Class B subnet
********
254 nodes can be attached. 192.168.0.254 - 192.168.0.1

************

4. let me explain this way ...you have 3 addresses

1st address =router
2nd addres =network
3rd address =usable range


now you need to determine how many hosts or devices you need

the total is - 4 now that means since its a low number of devices
now lets up the ante to 25 computers on the number line( another episode to be continued ) you would use 5 bits of the 8 bits in the last octet to determine the the usable range for 25 computers, and the subnet. So instead of 255.255.255.0 you get 255.255.255.224.
now for the IP address 192.168 1.1 you get 192.168.1.
the network address would be 192.168.1.32 to 192.168.1.55

and the broadcasts is 192.168.1.56 for your router.. hope this makes
sense but its really easy.....good luck