ipv4 broadcast address set to 0.0.0.0

Bug #924880 reported by Arnaud FLORENT
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ifupdown (Debian)
Fix Released
Undecided
Andrej Shadura
ifupdown (Ubuntu)
Fix Released
Undecided
Stéphane Graber

Bug Description

ifupdown Version: 0.7~beta2ubuntu3

Description: Ubuntu precise (development branch)
Release: 12.04

if there is no broacast address in /etc/network/interfaces

auto eth0
iface eth0 inet static
        address 192.168.1.252
        netmask 255.255.255.0

ifup bring the interface up with 0.0.0.0 as broadcast address

eth0 Link encap:Ethernet HWaddr 00:0c:29:a4:d3:b7
          inet adr:192.168.1.252 Bcast:0.0.0.0 Masque:255.255.255.0
          adr inet6: fe80::20c:29ff:fea4:d3b7/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

ifup runs
ip addr add 192.168.1.252/255.255.255.0 dev eth0 label eth0

adding broadcast 192.168.1.255 to /etc/network/interfaces
ifup runs
ip addr add 192.168.1.252/255.255.255.0 broadcast 192.168.1.255 dev eth0 label eth0

previously (using ifconfig), the broadcast address was correctly set via
ifconfig eth0 192.168.1.254 netmask 255.255.255.0 up
whithout requiring to set this address in /etc/network/interfaces

Changed in ifupdown (Debian):
assignee: nobody → Andrew Shadura (andrewshadoura)
Changed in ifupdown (Ubuntu):
assignee: nobody → Andrew Shadura (andrewshadoura)
Changed in ifupdown (Debian):
status: New → Fix Committed
Changed in ifupdown (Ubuntu):
status: New → In Progress
Revision history for this message
Stéphane Graber (stgraber) wrote :

I'll be cherry-picking the required changes for now. Test package is currently in my experimental PPA, upload is expected for later today or early tomorrow.

Changed in ifupdown (Ubuntu):
assignee: Andrew Shadura (andrewshadoura) → Stéphane Graber (stgraber)
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ifupdown - 0.7~beta2ubuntu7

---------------
ifupdown (0.7~beta2ubuntu7) precise; urgency=low

  [ Wookey ]
  * Use cross-compiler when cross-compiling (LP: #967227)
    Also merged upstream as:
    http://anonscm.debian.org/hg/collab-maint/ifupdown/rev/b21bc14d9109

  [ Stéphane Graber ]
  * Cherry pick commits from upstream to fix the broadcast address (LP: #924880)
    http://anonscm.debian.org/hg/collab-maint/ifupdown/rev/d31ffdb89dbb
    http://anonscm.debian.org/hg/collab-maint/ifupdown/rev/b996bb5866f5
    http://anonscm.debian.org/hg/collab-maint/ifupdown/rev/fbe3c242d6f8
    http://anonscm.debian.org/hg/collab-maint/ifupdown/rev/bdfd32ad6287
    http://anonscm.debian.org/hg/collab-maint/ifupdown/rev/d144dfdd7940

  * Detect bogus dns-nameservers line in /etc/network/interfaces and
    automatically comment them (LP: #932275)
 -- Stephane Graber <email address hidden> Thu, 29 Mar 2012 17:39:32 -0400

Changed in ifupdown (Ubuntu):
status: Fix Committed → Fix Released
Changed in ifupdown (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.