🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.networking
Article #697

Re: broadcast of ifconfig on Linux

#697
From: patrick Lottier
Date: Mon, 16 Oct 2000 00:00
27 lines
1797 bytes
You're on a class B network, so the default netmask is 255.255.0.0, and it's
logical: the default broadcast is based on the default netmask.
So, you *must* manually set broadcast if you want to use a sub-net.

patrick Lottier
System Administrator
plottier@qc-ns.com
http://www.qc-ns.com

Bin Zhou wrote:

> hello there,
>
> Im using Debian GUN/Linux 2.2--with 2.2.16 kernel. It seems to me that, the
> /sbin/ifconfig command(version 1.39) performs strange. If I set all IP,MASK
> and
> broadcast values, everything go OK, but if I only set IP and MASK, not set
> the
> broadcast, the default broadcast is determinded by the class of the IP,
> not the correct value(IP | ^MASK). ex. the broadcast of
> 172.31.0.1/255.255.255.0
> is set to 172.31.255.255, not the 172.31.0.255. Is this the specification or
> a bug?
>
> thank you
>
> zhoubin@no.spam.circle.to.no.spam
Technical Details
Message-ID: <39EAC5CC.96A8887A@qc-ns.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8se3vo$3u5$1@nn-tk104.ocn.ad.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5392,e95968be50bc3c2f
X-Google-Attributes: gidf5392,public
X-Google-Thread: 10669a,e95968be50bc3c2f
X-Google-Attributes: gid10669a,public
X-Google-Thread: 101801,e95968be50bc3c2f
X-Google-Attributes: gid101801,public
From: patrick Lottier <p.lottier@qc-ns.com>
Subject: Re: broadcast of ifconfig on Linux
Date: 2000/10/16
Message-ID: <39EAC5CC.96A8887A@qc-ns.com>
X-Deja-AN: 683606667
Content-Transfer-Encoding: 7bit
References: <8se3vo$3u5$1@nn-tk104.ocn.ad.jp>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@completel.fr
X-Trace: s7.completel.fr 971687268 309 213.244.28.83 (16 Oct 2000 09:07:48 GMT)
Organization: Completel
Mime-Version: 1.0
NNTP-Posting-Date: 16 Oct 2000 09:07:48 GMT
Newsgroups: comp.os.linux.networking,comp.os.linux.development.system,fj.os.linux.networking