On Tue, Dec 12, 2006 at 09:11:06AM +0100, Dirk Nehring wrote:
> On Tue, Dec 12, 2006 at 08:24:42AM +0100, Waldemar Brodkorb wrote:
> > Hi,
> > On Wed, 06 Dec 2006 at 13:29 +0100, Dirk Nehring wrote:
> > > On Wed, Dec 06, 2006 at 08:56:32AM +0100, Waldemar Brodkorb wrote:
> > > > Hi,
> > > > On Tue, 05 Dec 2006 at 21:45 +0100, Dirk Nehring wrote:
> > > > > On Tue, Dec 05, 2006 at 09:02:11AM +0100, Markus Wigge wrote:
> > > > > > Hi,
> > > > > >
> > > > > > >> Modified:
> > > > > > >>    branches/freewrt_1_0/package/base-files-arch/Makefile
> > > > > > >>    
> > > > > > >> branches/freewrt_1_0/target/linux/brcm-2.4/files/etc/network/interfaces
> > > > > > >> Log:
> > > > > > >> add broadcast to interfaces template, fix switch config for 
> > > > > > >> non-switch devices
> > > > > > >   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > > > > > >
> > > > > > > Personal interest: why is this necessary?
> > > > > >
> > > > > > This option is unnecessary. AFAIK you needed to explicitly give the
> > > > > > broadcast address for 2.0 kernel series or before?
> > > > > > So this option is deprecated and only available for historical 
> > > > > > reasons I
> > > > > > think.
> > > >
> > > > It is not deprecated. If you have a more or less non-standard
> > > > netmask for your network, you need to give the broadcast address,
> > > > otherwise you get strange network problems. At least this is
> > > > definitively needed in Debian GNU/Linux 3.1, because ifupdown does
> > > > not compute the broadcast very well. (See bugs.debian.org for
> > > > references) It has nothing todo with the kernel version. This
> > > > happens to me on 2.6.x kernels.
> > > >
> > > > A correct broadcast address is always needed.
> > > >
> > > > The line does not harm, feel free to remove it on your router ;)
> > >
> > > I don't thing we need the broadcast directive even if it does not
> > > harm. busybox uses "ip" to set up the ip address and if you do not set
> > > the broadcast, it's on the kernel to choose the correct one See
> > > different outputs in "ip addr show":
> > >
> > >     inet 192.168.213.1/24 brd 192.168.213.255 scope global eth1
> > >
> > > vs.
> > >
> > >     inet 192.168.213.1/24 scope global eth1
> > >
> > > If the kernel is buggy in this case, you should give me a concrete
> > > indication so we try to fix it. Perhaps you have a bug id or example to
> > > reproduce?
> >
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=251559
> >
> > Need to get time to reproduce on FreeWRT, last timeit was a Debian
> > Server I had problems with wrong calculated broadcast addresses.
>
> iface br0:0 inet static
>         address 1.2.3.157
>         netmask 255.255.255.248
>         # broadcast 1.2.3.159
>
> # ip addr show br0 label br0:0
>     inet 1.2.3.157/29 scope global br0:0
>
> # cat /proc/net/route  | grep br0
> [...]
> br0     98030201        00000000        0001    0       0       0       
> F8FFFFFF      0       0       0
> [...]
>
> F8FFFFFF = 255.255.255.248
>
> The Kernel does it right. We can drop the broadcast example lines.

You can see the broadcast addresses with (at least with the iproute2 ip)

ip route show table all  | grep broadcast

[...]
broadcast 1.2.3.152 dev br0  table local  proto kernel  scope link  src 
1.2.3.157
broadcast 1.2.3.159 dev br0  table local  proto kernel  scope link  src 
1.2.3.157
[...]

The kernel knows the right broadcast addresses.

Dirk
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers

Reply via email to