LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-30-2005, 01:59 PM   #1
muppski
Member
 
Registered: Feb 2003
Posts: 149

Rep: Reputation: 15
Netmask?


Hey

I just gotta ask, I've got this home network.

1 box with 2 nics and one nic got 10.0.0.1 and and with my clients i use 10.0.0.x to get connected . and I use netmask : 255.255.255.128

.... ?
Does it matter?
If I use 10.0.0.x or 192.168.0.x ? i mean they both work
and netmask ? 255.255.255.128 or 255.255.255.0

I read something about it limits you but it was waay to hard for me to understand. I got a max of like 5 clients connected ..

If it now limits how many clients , if I make a hugh amount support like 100
but only use 1-5 can it slow me down on performance?
 
Old 01-30-2005, 02:20 PM   #2
nedian123
Member
 
Registered: Jun 2004
Location: PAKISTAN
Posts: 46

Rep: Reputation: 15
use a mask of 255.0.0.0 with the 10's n/w
use a mask of 255.255.255.0 with the 192's n/w
 
Old 01-30-2005, 02:31 PM   #3
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
You can use either one. With whatever netmask you want..

10.0.0.0 with a subnet mask of 255.255.255.128 will allow you to use a total of 126 IPs, 10.0.0.1 -> 10.0.0.126

192.168.0.0 with a subnet mask of 255.255.255.0 will allow you to use a total of 254 IPs, 192.168.0.1 -> 192.168.0.254


So the 255.255.255.128 does limit you in a way, but if you neeed to use more IP space you could change that mask to something else that will allow a larger pool of usable addresses. There are no real performance related problems with what netmask you use. The only time you may see a problem is if you had tons of hosts/traffic on the same subnet sending out all kinds of broadcast traffic.

Last edited by fur; 01-30-2005 at 02:32 PM.
 
Old 01-30-2005, 03:04 PM   #4
muppski
Member
 
Registered: Feb 2003
Posts: 149

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by nedian123
use a mask of 255.0.0.0 with the 10's n/w
use a mask of 255.255.255.0 with the 192's n/w
so changing my hostmask to 255.0.0.0 would be "optimal" for me?
 
Old 01-30-2005, 03:24 PM   #5
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Rep: Reputation: 31
Yeah it works on classes, with classless routing you get funny netmasks like 255.255.255.240 or whatever. There maybe a reason you have this subnet mask though, it might be assigned by your ISP thus changing it could stop your internet working. Who knows but yeah with classful IP addressing 192.168.0.1 = 255.255.255.0 and 10.x.x.x = 255.0.0.0, its not about optimality if you have 258 hosts you dont need and cant use 192.168.x.x addresses and if youve got 3 hosts you could use the 10.x.x.x or 192.168.x.x addresses.
 
Old 01-30-2005, 04:09 PM   #6
muppski
Member
 
Registered: Feb 2003
Posts: 149

Original Poster
Rep: Reputation: 15
I still dont get this stuff with classes yet , but I will evantually
I've read some rfc documents


Well thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
netmask problem ??? John Micheal Solaris / OpenSolaris 2 06-08-2005 07:47 PM
rtrive netmask vasdia Programming 0 02-25-2005 12:24 PM
netmask ray5_83 Linux - Networking 1 09-12-2004 11:20 AM
netmask spank Linux - Newbie 3 12-15-2003 09:12 AM
PPP netmask RHrulz Linux - Networking 3 02-04-2003 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration