Red Hat Bugzilla – Bug 443474
nm-system-settings doesn't calculate BROADCAST address when not given
Last modified: 2008-07-09 17:47:28 EDT
Description of problem:
In the old world of Fedora networking, you could configure interfaces statically
via /etc/sysconfig/network-scripts/ifcfg-* and give an IPADDR and NETMASK
without bothering to configure the redundant BROADCAST and NETWORK values. In
case BROADCAST wasn't set, ifup would calculate the BROADCAST value (and
NETWORK) from the IPADDR and NETMASK. It used the ipcalc tool to do that.
NM doesn't appear to do this, and as a result sets a bogus 0.0.0.0 value for
BROADCAST. Presumably, the same problem would exist if using DHCP with a server
that doesn't send the broadcast address option, but I didn't test that.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
# Lite-On Communications Inc LNE100TX
2. start NetworkManager
eth1 Link encap:Ethernet HWaddr 00:A0:CC:DA:ED:04
inet addr:172.27.120.22 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::2a0:ccff:feda:ed04/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1264 errors:0 dropped:0 overruns:0 frame:0
TX packets:187 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:179845 (175.6 KiB) TX bytes:31984 (31.2 KiB)
Interrupt:16 Base address:0xf00
Bcast should be 172.27.255.255 based upon the calculation of the IPADDR and NETMASK:
>ipcalc --broadcast 172.27.120.22 255.255.0.0
>ipcalc --network 172.27.120.22 255.255.0.0
Fixed upstream in svn r3581 and later.
In latest koji builds, for example:
NetworkManager-0.7.0-0.6.8.svn3669.fc8 has been submitted as an update for Fedora 8
NetworkManager-0.7.0-0.6.9.svn3675.fc8, NetworkManager-openvpn-0.7.0-10.svn3632.fc8, NetworkManager-vpnc-0.7.0-0.7.7.svn3627.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.