Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: lee@sleepy.unm.edu (Lee Ward) Newsgroups: comp.sys.sun Subject: Re: TCP/IP SubNet Masks Message-ID: <2221@unmvax.unm.edu> Date: 30 Dec 88 18:21:45 GMT References: <4160@psuvax1.cs.psu.edu> Sender: usenet@rice.edu Organization: Sun-Spots Lines: 15 Approved: Sun-Spots@rice.edu Original-Date: 21 Dec 88 14:57:09 GMT X-Sun-Spots-Digest: Volume 7, Issue 82, message 4 of 18 X-Issue-Reference: v7n67 ehrlich@shire.cs.psu.edu (Dan Ehrlich) writes: >The documentation seems to imply that a subnet mask can be any number of >bits in length. Is this really true?... Yes, it is true. We have all the architectures you mention and more. For us, the ifconfig line would look like: ifcongig le0 `hostname` netmask 255.255.248.0 broadcast 129.24.15.255 Where `hostname` runs the hostname command. ifconfig looks in /etc/hosts for the address of your machine. The `netmask 255.255.248.0' gives us 5 bits of subnet. Finally, the `broadcast 129.24.15.255' sets the broadcast address to a host part of all ones. In some cases this can be inferred. --Lee (Ward)