Networking Forums

Networking Forums > Computer Networking > Linux Networking > regd. subnet mask

Reply
Thread Tools Display Modes

regd. subnet mask

 
 
ramya.xyz@gmail.com
Guest
Posts: n/a

 
      06-01-2007, 10:54 AM
Can anyone please let me know :
Why should we use an "AND"
operator between subnet number and subnet mask?

 
Reply With Quote
 
 
 
 
Moe Trin
Guest
Posts: n/a

 
      06-02-2007, 12:13 AM
On Fri, 01 Jun 2007, in the Usenet newsgroup comp.os.linux.networking, in
article <(E-Mail Removed). com>,
(E-Mail Removed) wrote:

>Can anyone please let me know :
> Why should we use an "AND"
>operator between subnet number and subnet mask?


Well, you could ask your instructor - or you could grab a copy of
the Linux Network Administrator's Guide from the LDP at
http://tldp.org/guides.html - try either

* The Linux Network Administrator's Guide, Second Edition
version: 1.1
authors: Olaf Kirch and Terry Dawson
last update: March 2000
ISBN: 1-56592-400-2
available formats:
1. HTML (read only) 2. HTML (tarred and gzipped package, 690k)
3. PDF (1.5MB)

or

* The Linux Network Administrators' Guide
version: 1.0
author: Olaf Kirch
last update: March 1996
available formats:
1. HTML (read online) 2. HTML (tarred and gzipped package, 332k)
3. other : plain text, DVI, LaTeX source, PDF, and PostScript.
4. various (non-English) translations

and if it's not obvious, then use that search engine you are posting from
to find a copy of RFC0950 and RFC1878

0950 Internet Standard Subnetting Procedure. J.C. Mogul, J. Postel.
August 1985. (Format: TXT=37985 bytes) (Updates RFC0792) (Also
STD0005) (Status: STANDARD)

1878 Variable Length Subnet Table For IPv4. T. Pummill, B. Manning.
December 1995. (Format: TXT=19414 bytes) (Obsoletes RFC1860) (Status:
HISTORIC)

The key concept is the logical AND

Address 1 192.168.0.15 1100 0000 1010 1000 0000 0000 0000 1111
Netmask 255.255.255.0 1111 1111 1111 1111 1111 1111 0000 0000
Address 2 192.168.2.158 1100 0000 1100 0000 0000 0010 1001 1110
Match? yyyy yyyy yyyy yyyy yyyy yyN

The two don't match where there is a '1' in the network mask - therefore
they aren't on the same network.

Old guy
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vpn ip and subnet mask? Johnny Windows Networking 1 03-09-2008 01:51 AM
Subnet Mask jdsanjorge Windows Networking 5 09-10-2007 10:09 AM
[ot] same ip, different subnet mask. slystoner Linux Networking 3 03-06-2007 06:58 PM
VPN Clients and subnet, NOT the usual "255.255.255.255 subnet mask" question! snowdog_2112 Windows Networking 4 09-09-2006 01:35 AM
subnet mask mn-500 cdstrand Linux Networking 1 08-06-2004 11:03 AM



1 2 3 4 5 6 7 8 9 10 11