Re: incorrect broadcast address.

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

 



On Fri, 2003-11-14 at 21:57, Bret Hughes wrote:
> On Fri, 2003-11-14 at 20:14, Kwan Lowe wrote:
> > 
> > >
> > > On Fri, Nov 14, 2003 at 12:51:31PM -0600, Aaron Konstam wrote:
> > >> The network programs on out FC1 machine is calculating the wrong
> > >> broadcast address. For a machine with ip: 131.194.131.27 and
> > >> netmask: 255.255.192.0  the broadcast address should
> > >> be: 131.194.191.255
> > >>
> > >> However, running ifconfig eth0 I get  Bcast:255.255.191.255
> > >>
> > >> This causes problems with commands that do broadcasts.
> > >>

<snip>
> > 
> > [root@phi root]# ifconfig -a
> > eth0  Link encap:Ethernet  HWaddr 00:0C:29:84:7E:25
> >       inet addr:192.168.8.32  Bcast:192.168.8.255  Mask:255.255.255.
> >  [..]
> > 
> > [root@phi root]# ifconfig eth0 131.194.131.27 netmask 255.255.192.0
> > [root@phi root]# ifconfig -a
> > eth0   Link encap:Ethernet  HWaddr 00:0C:29:84:7E:25
> >        inet addr:131.194.131.27  Bcast:131.194.255.255  Mask:255.255.192.0
> >  [..]
> > 
> 
> does the same here
> 

However if you set the broadcast explicitly, it will take it.
[root@test1 root]# ifconfig eth0:1 131.194.131.27 netmask 255.255.192.0
broadcast 131.194.191.255

eth0:1    Link encap:Ethernet  HWaddr 00:30:84:3E:96:59  
          inet addr:131.194.131.27  Bcast:131.194.191.255  Mask:255.255.192.0

BTW this also does this on my 7.3 laptop.

Bret




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux