Article View: alt.free.newsservers
Article #158062Re: Do you see anything strange in these routing tables that would cause this problem?
From: William Unruh
Date: Sun, 19 Oct 2014 16:26
Date: Sun, 19 Oct 2014 16:26
96 lines
6021 bytes
6021 bytes
On 2014-10-19, Cybe R. Wizard <cybe_r_wizard@WizardsTower.invalid> wrote:
> On Sat, 18 Oct 2014 16:53:57 +0100
> Richard Kettlewell <rjk@greenend.org.uk> wrote:
>
>> "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> writes:
>> > Jasen Betts <jasen@xnet.co.nz> wrote:
>> >> Cybe R. Wizard <cybe_r_wizard@WizardsTower.invalid> wrote:
>> >>> Assuming no typo, it (255.255.255.255) is the broadcast address
>> >>> for the local network.
>> >>
>> >> no. it's the broadcast address for the whole internet. but that's
>> >> not where it's being used. (and even if it were it probably
>> >> wouldn't work)
>> >>
>> >> It's beeing used as a netmask, in this context it allows no
>> >> variance meaning the route only applies to a single address.
>> >
>> > Quoting myself quoting wikipedia:
>> [...]
>> > If you have a site for refutation of that, please let me know.
>>
>> The man page for ???route???.
>>
> Cool, I read that. In fact, I read it three times. The only thing I
> found that seems to me to relate is this:
> ----------
> Genmask
> The netmask for the destination net; '255.255.255.255' for a
> host destination and '0.0.0.0' for the default route.
> ----------
Let me repeat. A routing entry is used as follows. Express both the
destination address and the netmask in binary form. The destination
address is taken and a bitwise AND is taken with the netmask. (a Bitwise
and is : if the two bits are 1 the output is 1. All other cases give an
output of 0) Ie, each bit of the addresses is ANDed with each
correspoinding bit of the netmask. If the output of that operation
equals the first address on the line, then that routing entry applies.
If many lines apply then the line that has the most 1 in the netmask
expressed in binary form, is the one that is used.
A netmask of 255.255.255.255 is a netmask of all 1, no 0. That means
that if you take the AND of that with the addreess, the output will
again be the address. Every 1 in th e address will produce a 1 in the
output. Every 0 in the address will produce a 0 in the output. Thus the
adddress must exactly match the first entry in the line.
A netmask of 0.0.0.0 produces 0.0.0.0 as an output no matter what
address is ADDed to it. If the first item in the line is 0.0.0.0 this
will match all addresses and is thus the default route. If no other line
matches the input address with a netmask which has at least one 1 in it,
then this one will apply. That is why it is called the default.
> Truthfully, that doesn't make a lot of sense to me.
>
> OTOH, I also found this:
><http://www.answers.com/Q/What_is_the_Significance_of_ip_address_255.255.255.255>
> which states:
> ----------
> "A special type of IP address is the limited broadcast address
> 255.255.255.255. A broadcast involves delivering a message from one
> sender to many recipients. Senders direct an IP broadcast to
> 255.255.255.255 to indicate all other nodes on the local network (LAN)
> should pick up that message. This broadcast is 'limited' in that it
> does not reach every node on the Internet, only nodes on the LAN."
That is a destination address. not a netmask. If a destination address
ends in 255, it is a broadcast. When that comes over a net it is
addressed to all machines that receive it. It is used for example to set
up the arp table-- a broadcast message is sent out asking all machines
to send their MAC address (ethernet address) if their IP address is the
same as that being asked about. (In tcpdump this is the "Who has"
message.
But broadcast is a destination address, NOT a netmask.
> ----------
> ,,,which seems to support my position. Additionally, there is this:
><http://en.wikipedia.org/wiki/IP_address#IP_addressing>
> which states:
> ----------
> Broadcast: In IPv4 it is possible to send data to all possible
> destinations ("all-hosts broadcast"), which permits the sender to send
> the data only once, and all receivers receive a copy of it. In the IPv4
> protocol, the address 255.255.255.255 is used for local broadcast.
> ----------
>
> Are you sure you aren't thinking of 255.255.255.0?
So, it depends on the context. What was that quartet of bytes? Was it a
destination address or was it a netmask?
Technical Details
Message-ID:
<m20oo4$42r$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mailReferences:
<m1lfic$gfj$1@news.albasani.net> <m1mgku$10p6$1@saria.nerim.net> <20141015184216.0cb6ea31@WizardsTower.invalid> <m1ns8q$1eb8$2@saria.nerim.net> <m1omsu$sjr$1@dont-email.me> <20141016125731.5d5abf45@WizardsTower.invalid> <m1sv9n$aeo$2@gonzo.reversiblemaps.ath.cx> <20141018092634.5481f06d@wizardstower> <wwva94twezu.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf87AxnpFoA.invalid> <20141019090222.676730f7@wizardstower>Show Full Headers
Complete Article Headers
Message-ID: <m20oo4$42r$1@dont-email.me> Subject: Re: Do you see anything strange in these routing tables that would cause this problem? Date: Sun, 19 Oct 2014 16:26:44 +0000 From: William Unruh <unruh@invalid.ca> References: <m1lfic$gfj$1@news.albasani.net> <m1mgku$10p6$1@saria.nerim.net> <20141015184216.0cb6ea31@WizardsTower.invalid> <m1ns8q$1eb8$2@saria.nerim.net> <m1omsu$sjr$1@dont-email.me> <20141016125731.5d5abf45@WizardsTower.invalid> <m1sv9n$aeo$2@gonzo.reversiblemaps.ath.cx> <20141018092634.5481f06d@wizardstower> <wwva94twezu.fsf@l1AntVDjLrnP7Td3DQJ8ynzIq3lJMueXf87AxnpFoA.invalid> <20141019090222.676730f7@wizardstower> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Newsgroups: alt.os.linux,alt.os.linux.ubuntu,alt.free.newsservers Organization: A noiseless patient Spider Lines: 96 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Sun, 19 Oct 2014 16:26:44 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="bce60fb4c4f81b126f867f22d396ac27"; logging-data="4187"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+p0cWScOyzxR+5kxGZ0kSx" User-Agent: slrn/0.9.9p1 (Linux) Cancel-Lock: sha1:ov3aCAOik/0qm3IqvaUWffmzwkk=