netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bridge stays down until a port is added
@ 2011-08-11  7:06 Marc Haber
  2011-08-11 15:17 ` Stephen Hemminger
  0 siblings, 1 reply; 20+ messages in thread
From: Marc Haber @ 2011-08-11  7:06 UTC (permalink / raw)
  To: netdev

Hi,

since a few kernel versions, I think since 2.6.39, I have noticed that
a bridge interface stays in NO CARRIER state unless the first port is
added:

$ sudo brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.000000000000       no
$ ip a show dev br0
9: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
    inet6 2001:db8::1/64 scope global tentative
       valid_lft forever preferred_lft forever
$ ping6 2001:db8::1
PING 2001:db8::1(2001:db8::1) 56 data bytes
^C
--- 2001:db8::1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2016ms

$ sudo modprobe dummy
$ sudo brctl addif br0 dummy0
$ sudo ip link set dev dummy0 up
$ ping6 2001:db8::1
PING 2001:db8::1(2001:db8::1) 56 data bytes
64 bytes from 2001:db8::1: icmp_seq=1 ttl=64 time=0.019 ms
64 bytes from 2001:db8::1: icmp_seq=2 ttl=64 time=0.023 ms
^C
--- 2001:db8::1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.019/0.021/0.023/0.002 ms
$ ip a show dev br0
9: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether da:1c:11:bc:3e:54 brd ff:ff:ff:ff:ff:ff
    inet6 2001:db8::1/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::d81c:11ff:febc:3e54/64 scope link
       valid_lft forever preferred_lft forever
$

Is that a feature? If so, why does the interface stay pingable after
removing the dummy0 interface from the bridge?

Can I somehow get the old behavior back, that the bridge is
immediately up, and addresses configured on the bridge interfaces are
immediately pingable?

New new behavior is somewhat unhandy when one uses the bridge address
for services that the host offers, to save on IP addresses and
networks (for example, when one has only a single IP address and a
single additional network), since one has to take extra measures to
have the addresses on the bridge interface reachable.

Or am I doing things wrong?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2011-09-27  0:43 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-11  7:06 Bridge stays down until a port is added Marc Haber
2011-08-11 15:17 ` Stephen Hemminger
2011-08-11 20:54   ` Marc Haber
2011-08-11 22:41     ` Stephen Hemminger
2011-08-12 12:22     ` Sven-Haegar Koch
2011-08-20  9:47       ` Marc Haber
2011-08-20 16:30         ` Stephen Hemminger
2011-08-21 12:13           ` Marc Haber
2011-08-22 15:57             ` Stephen Hemminger
2011-09-17 20:42   ` Marc Haber
2011-09-20 20:20     ` Dan Williams
2011-09-25  8:25       ` Marc Haber
2011-09-26 15:47         ` Stephen Hemminger
2011-09-26 20:02           ` Nicolas de Pesloüan
2011-09-26 20:05             ` Stephen Hemminger
2011-09-26 20:56               ` Ben Hutchings
2011-09-26 22:12               ` Nicolas de Pesloüan
2011-09-26 22:42                 ` Stephen Hemminger
2011-09-27  0:28                 ` Sven-Haegar Koch
2011-09-27  0:43                   ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).