FS#24738 - [initscripts] static ip with network no broadcast

Attached to Project: Arch Linux
Opened by H.pferd (stosch) - Thursday, 16 June 2011, 15:20 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 17 June 2011, 15:44 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When setting up the network with network-daemon and a static IP no broadcast address is set. This causes Cups to fail while broadcasting the printers to the network.
What worked for me was to change a line in /etc/rc.d/network:
/usr/sbin/ip addr add $address/$netmask dev $interface || return 1
to
/usr/sbin/ip addr add $address/$netmask broadcast + dev $interface || return 1

As I'm no expert I wonder whether this is bad style or has other bad effects..


Additional info:
initscripts 2011.06.4-1

Output of "ip a" with static IP:
eth0: ...
inet xxx.xxx.xxx.xxx/24 scope global eth0
and with DHCP:
eth0: ...
inet 192.168.178.21/24 brd 192.168.178.255 scope global eth0
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Friday, 17 June 2011, 15:44 GMT
Reason for closing:  Fixed
Comment by Matthias Dienstbier (fs4000) - Thursday, 16 June 2011, 18:32 GMT Comment by H.pferd (stosch) - Thursday, 16 June 2011, 20:46 GMT
Ok, didn't see that. Thanks.

Loading...