LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-10-2005, 10:47 PM   #1
varun_saa
Member
 
Registered: Dec 2004
Posts: 188

Rep: Reputation: 30
network subnet / bit


Hello,
I have a network subnet of 192.168.0.0.
I have been entering config as 192.168.0.0/24.

I am not really clear about this bit issue.

How to decide wether it is :

192.168.0.0/24 or 192.168.0.0/16

Where can read more about this ?

Thanks in advance

Varun
 
Old 09-10-2005, 10:51 PM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
http://www.netfilter.org/documentati...entation-howto

iptables doesn't like abbreviations of your subnets. It's not IOS.
 
Old 09-10-2005, 11:39 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
Thoreau: why do you say iptables does not like abbreviations of his subnets? Which abbreviations do you refer to? IOS is, as far as I know, a Cisco thing.

varun_saa: It's really up to you. If you need <=254 IPs, use /24. If you need >254 & <=65534 IPs, use /16. Just be consistent.
 
Old 09-11-2005, 12:24 AM   #4
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
Matir: If he's putting in route statements via iptables, you need to put in the fully qualified statement. Putting in class C and B /24 /16 hasn't worked in practice for me. Although, I don't know what the guys doing so we could be talking about the wrong topic entirely.
 
Old 09-11-2005, 12:51 AM   #5
varun_saa
Member
 
Registered: Dec 2004
Posts: 188

Original Poster
Rep: Reputation: 30
This was just a general knowledge question.
Just for the basics.
Not in iptables context.

Thanks

Varun
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
All network/broadcast pairs for subnet mask? debbo Linux - Networking 1 06-14-2004 04:27 PM
Giga bit Network Support on P4 netwizio Linux - Hardware 1 01-27-2004 08:54 PM
Subnet changed = Network Unreachable scorchen Linux - Networking 3 09-18-2003 04:13 PM
Can IP from different subnet be configured on another subnet russell Linux - Networking 1 08-23-2002 01:47 AM
2 network cards on same subnet. Is this ok? ForumKid Linux - Networking 5 01-14-2002 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:36 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration