Article View: comp.sys.hp.hpux
Article #50Re: Subnetting Class C IP networks
From: Gary Heston
Date: Mon, 07 Mar 1994 16:43
Date: Mon, 07 Mar 1994 16:43
49 lines
3130 bytes
3130 bytes
In article <2l8fcr$5kc@medusa.aom.bt.co.uk> stevef@aom.bt.co.uk (Steve Fosdick) writes: >Ken Mintz (mintz@cup.hp.com) wrote: >> Mark Landin (landin@cherokee.nsuok.edu) wrote: >> > Can you subnet a Class C address, say by using a mask like 255.255.255.128? >> Not 128 specifically, but certainly other values, such as 192, 224 etc. >> The problem with 128 per se is that that creates a one-bit subnet id. >> Since all-zero and all-one values have special meaning, subnet id and host >> id fields must comprise at least __two__ bits each. This is correct. >We used 255.255.255.128 successfully, but we are already subnetting >because our adress is actually class B. ....and since you have Class B address space instead of Class C, you're using a nine-bit subnet mask, which is fine. The first two bytes are your *network* mask in a Class B, while the remaining two are the real *subnet* mask. In a Class C network, three bytes are the network mask, and all subnetting must be done in the final byte. (Yes, a Class A network has one byte of network mask, and can use most of the remaining three for subnetting.) Subnetting is done using bits within your address space--the bits over the assigned network aren't included. This is somewhat confusing, unfortunantly; masks are interpreted differently depending upon what type of network they're being used in. They break down like this: (decimal) (binary) Mask: 255.255.255.240 11111111.11111111.11111111.11110000 Class A: NNN SSS SSS S/H NNNNNNNN SSSSSSSS SSSSSSSS SSSSHHHH Class B: NNN NNN SSS S/H NNNNNNNN NNNNNNNN SSSSSSSS SSSSHHHH Class C: NNN NNN NNN S/H NNNNNNNN NNNNNNNN NNNNNNNN SSSSHHHH Where "N" indicates network mask, "S" indicates subnet mask, and "H" is host address bits. So, the mask 255.255.255.240 would provide a 20-bit subnet mask in a Class A network, a 12-bit in a Class B, and only a 4-bit on a Class C. -- Gary Heston SCI Systems, Inc. gary@sci.com site admin The Chairman of the Board and the CFO speak for SCI. I'm neither. "Quit while you're ahead. All the best gamblers do." Baltasar Gracian
Technical Details
Message-ID:
<1994Mar7.164302.10500@sci34hub.sci.com>Path:
arc1-ca.pugleaf.net!gmd.de!dearn!blekul11!news.cs.kuleuven.ac.be!ub4b!EU.net!howland.reston.ans.net! europa.eng.gtefsd.com!darwin.sura.net!nuance.com!scisysgw!sci34hub!garyReferences:
<1994Mar4.142909.12080@cherokee.nsuok.edu> <CM5JM7.D19@cup.hp.com> <2l8fcr$5kc@medusa.aom.bt.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcda7,5d0c824272d4a044 X-Google-Attributes: gidfcda7,public X-Google-Thread: fe659,5d0c824272d4a044 X-Google-Attributes: gidfe659,public X-Google-Thread: 10f035,5d0c824272d4a044 X-Google-Attributes: gid10f035,public X-Google-ArrivalTime: 1994-03-07 08:43:02 PST Newsgroups: comp.sys.hp.hpux,comp.sys.novell,bit.listserv.novell Path: arc1-ca.pugleaf.net!gmd.de!dearn!blekul11!news.cs.kuleuven.ac.be!ub4b!EU.net!howland.reston.ans.net! europa.eng.gtefsd.com!darwin.sura.net!nuance.com!scisysgw!sci34hub!gary From: gary@sci34hub.sci.com (Gary Heston) Subject: Re: Subnetting Class C IP networks Message-ID: <1994Mar7.164302.10500@sci34hub.sci.com> Reply-To: gary@sci34hub.sci.com (Gary Heston) Organization: SCI Systems, Inc., Huntsville, Al. References: <1994Mar4.142909.12080@cherokee.nsuok.edu> <CM5JM7.D19@cup.hp.com> <2l8fcr$5kc@medusa.aom.bt.co.uk> Date: Mon, 7 Mar 1994 16:43:02 GMT Lines: 49