TCP/IP SubNet Masks

Lee Ward lee at sleepy.unm.edu
Sat Dec 31 04:21:45 AEST 1988


ehrlich at 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)



More information about the Comp.sys.sun mailing list