[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ifup/ifdown are not idempotent



check this series of commands:

fishbowl:~> sudo ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:20:78:10:82:FD  
          inet addr:130.60.48.193  Bcast:130.60.255.255  Mask:255.255.255.0
          inet6 addr: fe80::220:78ff:fe10:82fd/10 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:192 errors:0 dropped:0 overruns:1 frame:0
          TX packets:1287 errors:0 dropped:0 overruns:0 carrier:1276
          collisions:0 txqueuelen:100 
          RX bytes:18419 (17.9 KiB)  TX bytes:77454 (75.6 KiB)
          Interrupt:11 Base address:0xec80 

fishbowl:~> sudo ifdown eth0
SIOCDELRT: No such process

fishbowl:~> sudo ifup eth0
SIOCSIFHWADDR: Device or resource busy

fishbowl:~> sudo ifconfig eth0 down

fishbowl:~> sudo ifup eth0
ifup: interface eth0 already configured

fishbowl:~> sudo ifdown eth0
SIOCDELRT: No such process

fishbowl:~> sudo ifup eth0

finally... if you ask me, this shouldn't be. has anyone else
experienced this?

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
 
                                                      .   `___
(o-    (o-    (o-    (o-   (o-    (o-    (o-           /\/| | |
//\    //\    //\    //\   //\    //\    //\      `  /\/\/l-+-|
v_/_   v_/_   v_/_   v_/_  v_/_   v_/_   v_/_    .`  /\/\/|_|_|

Attachment: pgpZyOGIyxRPJ.pgp
Description: PGP signature


Reply to: