calculating the right range for network

Asked by Michael Smith

Greetings,
I am trying to correctly populate the network in Ubuntu server. and I am using my PC to try to comprehend what needs to be incorporated in the /interfaces file. I currently have these details below as an example:-

ADDRESS 192.168.0.2
NETMASK 255.255.255.0
NETWORK 192.168.1.0
BROADCAST 192.168.1.255
GATEWAY 192.168.1.1 ( the access to the router, but not the WAN address, which is completely different)

So in summary I would like to know what piece of hardware the ADDRESS relates to as opposed to the NETWORK; and also if the IP range looks correct above.

Much thanks indeed.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

You will need 2 lines above the text you have.

auto eth0
Iface eth0 inet static

The lines will then setup eth0.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

The IP addressing looks fine.

Revision history for this message
Michael Smith (m-c-smith) said :
#3

thank you very much indeed

Revision history for this message
Michael Smith (m-c-smith) said :
#4

Many thanks, this has solved the problem

Revision history for this message
Thomas Krüger (thkrueger) said :
#5

The setup has a glitch:
The IP address (192.168.0.2) is not in the range of the network (192.168.1.0/24). Maybe you confused 1 and 0 in the third octec?