tags 324189 + unreproducible
thanks

        Hi,

On sam, aoû 20, 2005, Sylvain COUTANT wrote:
> There is a typo line 12, one should read :
> VLANID=`echo $IFACE|sed "s/vlan*//"`
> VLANID=`echo $IFACE|sed "s/vlan0*//"`

 Actually, after careful reading, this is not a problem:
    % echo vlan0012 | sed "s/vlan0*//"
    12
    % echo vlan12 | sed "s/vlan0*//"
    12
 Your suggestion would work:
    % echo vlan0012 | sed "s/vlan*//"
    0012
    % echo vlan12 | sed "s/vlan*//"
    12
 But it is an incorrect regexp:
    % echo vlannnn012 | sed "s/vlan*//"
    012
    % echo vla12 | sed "s/vlan*//"
    12

 I think the current is correct, but doesn't check for errors.

> /etc/network/if-post-down.d/vlan:
> Vlan with names vlan0* are not handled here so they are brought up but never 
> down.

 They are handled, there's no need for a special test on the interface
 name, that's all.  Calling "vconfig rem vlan12" is enough.  I agree
 that the IF_VLAN_RAW_DEVICE setting in eth*.* is weird, and it could be
 rearranged.

 I couldn't reproduce your bug with the following in my interfaces:

iface eth0.0002 inet manual
    up ifconfig $IFACE up
    down ifconfig $IFACE down

iface eth0.12 inet manual
    up ifconfig $IFACE up
    down ifconfig $IFACE down

iface vlan12 inet manual
    vlan_raw_device eth0
    up ifconfig $IFACE up
    down ifconfig $IFACE down

iface vlan0012 inet manual
    vlan_raw_device eth0
    up ifconfig $IFACE up
    down ifconfig $IFACE down

 You can try this with:
    # for i in eth0.0002 eth0.12 vlan12 vlan0012; do \
    ifup $i && sleep 1 && ifdown $i; \
    done

 Could you copy your failing configuration?

   Cheers,

-- 
Loïc Minier <[EMAIL PROTECTED]>

Reply via email to