On 2011/02/04 14:37, Camiel Dobbelaar wrote: > On 4-2-2011 13:32, Henning Brauer wrote: > > * Camiel Dobbelaar <c...@sentia.nl> [2011-02-04 13:21]: > >> With hundreds of (vlan) interfaces, a shutdown takes quite a while. > >> Fix below. > > > > hmm. this relies on all carp interfaces being in the carp interface > > group. while that is the default, it is not necessarily so. > > I didn't know that a groupname takes precendence, neither did the > manpage. :-)
> +If an interface group with that name exists, all interfaces in the group > +will be shown. seems it's more complicated than that - if you remove all interfaces from group carp, 'ifconfig carp' lists nothing: $ ifconfig |grep ^carp carp1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 carp2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 $ ifconfig carp $ but with another type, this doesn't apply: $ sudo ifconfig bge0 group em $ ifconfig em | egrep '(0: |groups:)' bge0: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> mtu 1500 groups: em $ sudo ifconfig bge0 -group em $ ifconfig em | egrep '(0: |groups:)' em0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500 groups: egress