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
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
|
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
Comment by
Matthias Dienstbier (fs4000) -
Thursday, 16 June 2011, 18:32 GMT
This has already been fixed in git:
http://projects.archlinux.org/initscripts.git/commit/?id=3d45a70d3b7e898923638dbb795e50c2e7c378c9
Comment by H.pferd (stosch) -
Thursday, 16 June 2011, 20:46 GMT
Ok, didn't see that. Thanks.