Bug#634331: no longer works on a bridge interface

2011-07-18 Thread martin f krafft
Package: dhcpcd5
Version: 5.2.12-1
Severity: normal

dhcpcd5 fails to obtain an address (it fails to put packets on the
wire) when the interface is a bridge. Manual configuration works, as
does IPv6 autoconf and isc-dhcp-client, so the problem seems to be
with dhcpcd.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-rc6-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dhcpcd5 depends on:
ii  libc6 2.13-10Embedded GNU C Library: Shared lib

Versions of packages dhcpcd5 recommends:
ii  openresolv3.4.0-1management framework for resolv.co

Versions of packages dhcpcd5 suggests:
pn  dhcpcd-gtknone (no description available)

-- no debconf information


-- 
 .''`.   martin f. krafft madduck@d.o  Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Bug#634331: no longer works on a bridge interface

2011-07-18 Thread Roy Marples
On Mon, 2011-07-18 at 19:14 +0200, martin f krafft wrote:
 dhcpcd5 fails to obtain an address (it fails to put packets on the
 wire) when the interface is a bridge. Manual configuration works, as
 does IPv6 autoconf and isc-dhcp-client, so the problem seems to be
 with dhcpcd.

Seems to work fine for me.

sudo brctl addbr br0
sudo brctl addif br0 wlan0 eth0
sudo dhcpcd -dB br0
dhcpcd[4182]: version 5.2.12 starting
dhcpcd[4182]: br0: using hwaddr 00:19:e0:82:33:92
dhcpcd[4182]: br0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason
PREINIT
dhcpcd[4182]: br0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason
CARRIER
dhcpcd[4182]: br0: reading lease `/var/db/dhcpcd-br0.lease'
dhcpcd[4182]: br0: checking for 169.254.15.125
dhcpcd[4182]: br0: sending ARP probe (1 of 3), next in 1.89 seconds
dhcpcd[4182]: br0: sending ARP probe (2 of 3), next in 1.65 seconds
dhcpcd[4182]: br0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd[4182]: br0: using IPv4LL address 169.254.15.125
dhcpcd[4182]: br0: adding IP address 169.254.15.125/16
dhcpcd[4182]: br0: adding route to 169.254.0.0/16
dhcpcd[4182]: br0: writing lease `/var/db/dhcpcd-br0.lease'
dhcpcd[4182]: br0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason
IPV4LL
dhcpcd[4182]: br0: sending ARP announce (1 of 2), next in 2.00 seconds
dhcpcd[4182]: br0: sending ARP announce (2 of 2)
dhcpcd[4182]: br0: broadcasting for a lease
dhcpcd[4182]: br0: sending DISCOVER (xid 0x7f13dfa6), next in 4.96
seconds
dhcpcd[4182]: br0: sending DISCOVER (xid 0x7f13dfa6), next in 7.48
seconds
dhcpcd[4182]: br0: offered 10.73.0.196 from 10.73.0.1 `uberserver'
dhcpcd[4182]: br0: sending REQUEST (xid 0x7f13dfa6), next in 3.85
seconds
dhcpcd[4182]: br0: acknowledged 10.73.0.196 from 10.73.0.1 `uberserver'
dhcpcd[4182]: br0: checking for 10.73.0.196
dhcpcd[4182]: br0: sending ARP probe (1 of 3), next in 1.39 seconds
dhcpcd[4182]: br0: sending ARP probe (2 of 3), next in 1.99 seconds
dhcpcd[4182]: br0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd[4182]: br0: leased 10.73.0.196 for 86400 seconds
dhcpcd[4182]: br0: adding IP address 10.73.0.196/24
dhcpcd[4182]: br0: deleting IP address 169.254.15.125/16
dhcpcd[4182]: br0: using Classless Static Routes (RFC3442)
dhcpcd[4182]: br0: adding route to 10.73.0.0/24
dhcpcd[4182]: br0: adding default route via 10.73.0.1
dhcpcd[4182]: br0: deleting route to 169.254.0.0/16
dhcpcd[4182]: br0: writing lease `/var/db/dhcpcd-br0.lease'
dhcpcd[4182]: br0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason
REBIND

This is under ubuntu 10.04

How are you configuring the bridge interface and dhcpcd?
Does it work as the above?

Thanks

Roy




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#634331: no longer works on a bridge interface

2011-07-18 Thread martin f krafft
 How are you configuring the bridge interface and dhcpcd?
 Does it work as the above?

No.

root@albatross:~# ip link show dev eth0
2: eth0: BROADCAST,MULTICAST,PROMISC mtu 1500 qdisc pfifo_fast state DOWN 
qlen 1000
link/ether 20:cf:30:2a:7c:07 brd ff:ff:ff:ff:ff:ff
root@albatross:~# ip link set eth0 up
root@albatross:~# brctl addbr br0
root@albatross:~# brctl addif br0 eth0
root@albatross:~# ip link set br0 up
root@albatross:~# brctl show
bridge name bridge id   STP enabled interfaces
br0 8000.20cf302a7c07   no  eth0
root@albatross:~# brctl showstp br0
br0
 bridge id  8000.20cf302a7c07
 designated root8000.20cf302a7c07
 root port 0path cost  0
 max age  20.00 bridge max age20.00
 hello time2.00 bridge hello time  2.00
 forward delay15.00 bridge forward delay  15.00
 ageing time 300.01
 hello timer   0.61 tcn timer  0.00
 topology change timer 0.00 gc timer 299.24
 flags


eth0 (1)
 port id8001stateforwarding
 designated root8000.20cf302a7c07   path cost  4
 designated bridge  8000.20cf302a7c07   message age timer  0.00
 designated port8001forward delay timer   13.66
 designated cost   0hold timer 0.00
 flags

root@albatross:~# dhcpcd -dB br0
dhcpcd[23098]: version 5.2.12 starting
dhcpcd[23098]: br0: using hwaddr 20:cf:30:2a:7c:07
dhcpcd[23098]: br0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd[23098]: br0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd[23098]: br0: broadcasting for a lease
dhcpcd[23098]: br0: sending DISCOVER (xid 0xcb4fa2d2), next in 4.68 seconds
dhcpcd[23098]: br0: sending DISCOVER (xid 0xcb4fa2d2), next in 7.65 seconds
dhcpcd[23098]: br0: sending DISCOVER (xid 0xcb4fa2d2), next in 16.12 seconds
dhcpcd[23098]: br0: sending DISCOVER (xid 0xcb4fa2d2), next in 32.08 seconds
dhcpcd[23098]: timed out
dhcpcd[23098]: allowing 8 seconds for IPv4LL timeout
dhcpcd[23098]: br0: probing for an IPv4LL address
dhcpcd[23098]: br0: checking for 169.254.248.32
dhcpcd[23098]: br0: sending ARP probe (1 of 3), next in 1.42 seconds
dhcpcd[23098]: br0: sending ARP probe (2 of 3), next in 1.60 seconds
dhcpcd[23098]: br0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd[23098]: br0: using IPv4LL address 169.254.248.32
dhcpcd[23098]: br0: adding IP address 169.254.248.32/16
dhcpcd[23098]: br0: adding route to 169.254.0.0/16
dhcpcd[23098]: br0: writing lease `/var/lib/dhcpcd5/dhcpcd-br0.lease'
dhcpcd[23098]: br0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason IPV4LL
dhcpcd[23098]: br0: sending ARP announce (1 of 2), next in 2.00 seconds
dhcpcd[23098]: br0: sending ARP announce (2 of 2)
^Cdhcpcd[23098]: received SIGINT, stopping
dhcpcd[23098]: br0: removing interface
dhcpcd[23098]: br0: deleting route to 169.254.0.0/16
dhcpcd[23098]: br0: deleting IP address 169.254.248.32/16
dhcpcd[23098]: br0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason STOP
root@albatross:~# dhclient -v br0
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/br0/20:cf:30:2a:7c:07
Sending on   LPF/br0/20:cf:30:2a:7c:07
Sending on   Socket/fallback
DHCPREQUEST on br0 to 255.255.255.255 port 67
DHCPACK from 192.168.14.1
bound to 192.168.14.32 -- renewal in 2798 seconds.
root@albatross:~# dhclient -x br0
root@albatross:~# dhcpcd -dB br0
dhcpcd[24657]: version 5.2.12 starting
dhcpcd[24657]: br0: using hwaddr 20:cf:30:2a:7c:07
dhcpcd[24657]: br0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd[24657]: br0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd[24657]: br0: reading lease `/var/lib/dhcpcd5/dhcpcd-br0.lease'
dhcpcd[24657]: br0: checking for 169.254.248.32
dhcpcd[24657]: br0: sending ARP probe (1 of 3), next in 1.85 seconds
dhcpcd[24657]: br0: sending ARP probe (2 of 3), next in 1.11 seconds
dhcpcd[24657]: br0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd[24657]: br0: using IPv4LL address 169.254.248.32
dhcpcd[24657]: br0: adding IP address 169.254.248.32/16
dhcpcd[24657]: br0: adding route to 169.254.0.0/16
dhcpcd[24657]: br0: writing lease `/var/lib/dhcpcd5/dhcpcd-br0.lease'
dhcpcd[24657]: br0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason IPV4LL
dhcpcd[24657]: br0: sending ARP announce (1 of 2), next in 2.00 seconds
dhcpcd[24657]: br0: sending ARP announce (2 of 2)
dhcpcd[24657]: br0: broadcasting for a lease
dhcpcd[24657]: br0: sending DISCOVER (xid 0x53cc09cf), next in 4.44 seconds
dhcpcd[24657]: br0: