[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Broadcast-Adresse wird falsch berechnet?



Stephan A. Rickauer schrieb am Mittwoch, 29. Juni 2005 um 17:10:25 +0200:
> Nene, schau dir mal mein Subnetz genauer an ... die Broadcast _muss_ 
> 172.16.3.255 sein - alles andere ist definitiv falsch.
> 


Nein: in RfC1918 (http://www.faqs.org/rfcs/rfc1918.html)
steht unter  3. Private Address Space

   The Internet Assigned Numbers Authority (IANA) has reserved the
   following three blocks of the IP address space for private internets:

     10.0.0.0        -   10.255.255.255  (10/8 prefix)
     172.16.0.0      -   172.31.255.255  (172.16/12 prefix)
     192.168.0.0     -   192.168.255.255 (192.168/16 prefix)

   We will refer to the first block as "24-bit block", the second as
   "20-bit block", and to the third as "16-bit" block. Note that (in
   pre-CIDR notation) the first block is nothing but a single class A
   network number, while the second block is a set of 16 contiguous
   class B network numbers, and third block is a set of 256 contiguous
   class C network numbers.




Das heisst, wenn du eine IP innerhalb von 172.16.x.x w�st, muss die 
Broadcastadresse 172.16.255.255 sein, es sei denn Du gibst etwas anderes
an.  Du spielst darauf an, dass Du eine /23-Netmask vorgibst. Eine
Netmask wird jedoch lediglich dazu verwandt, um zu berechnen, ob eine
Ziel-IP im gleichen Netz erreichbar ist, oder ob das zu versendende
Paket �in Gateway verschickt werden muss.

Dass die Broadcast-Adresse unbedingt auf der letzten im Subnetz g�n
liegen muss, ist meines wissens nicht definiert, es ist lediglich Usus
das so zu machen.

> Dirk Wernien schrieb:
> >Am Mittwoch, 29. Juni 2005 15:31 schrieb Stephan A. Rickauer:
> >
> >in Klasse B-Netzwerken (128.x.x.x - 191.x.x.x)
> > ist das schon so richtig
> >x.x.255.255 als Broadcast zu verwenden,
> >dirk
> >
> >>hab da mal ne Frage: Ich hab auf nem Server zwei NICs mit folgender
> >>Konfig (zeigt eine):
> >>
> >>---snip---
> >>auto eth0
> >>iface eth0 inet static
> >>address 172.16.3.240
> >>netmask 255.255.254.0
> >>broadcast 172.16.3.255
> >>---snip---
> >>
> >>Wenn ich die broadcast-Zeile weglasse, wird die Broadcast-Adresse falsch
> >>berechnet, nämlich auf 172.16.255.255 - hat ne Weile gedauert, bis ich
> >>gemerkt hab, warum meine NIS broadcast nicht ankommen ...

-- 
J�Friedrich

There are only 10 types of people:
Those who understand binary and those who don't.



Reply to: