Correct way of bringing network interface down in linux
        Posted  
        
            by Karolis T.
        on Server Fault
        
        See other posts from Server Fault
        
            or by Karolis T.
        
        
        
        Published on 2009-07-02T08:31:02Z
        Indexed on 
            2010/05/26
            12:03 UTC
        
        
        Read the original article
        Hit count: 396
        
For example:
$ ifconfig dummy0 up
$ ifconfig dummy0 "192.168.1.190 netmask 255.255.255.0"
Calling ifconfig with no parameters shows the interface
dummy0    Link encap:Ethernet  HWaddr b6:1f:f3:92:6d:20  
      inet addr:192.168.1.190  Bcast:192.168.1.255  Mask:255.255.255.0
      inet6 addr: fe80::b41f:f3ff:fe92:6d20/64 Scope:Link
      UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:0 (0.0 B)  TX bytes:1050 (1.0 KiB)
How can I bring the interface down so that it doesn't show up in
- ifconfig
 - ifconfig -a
 - ifconfig dummy0
 
without rmmod dummy
because dummy is used just for example purposes.
If there is no way to do that, what "throw-away" IP could I set to it and be safe from any trouble?
like
$ ifconfig dummy0 down
$ ifconfig dummy0 0.0.0.0
        © Server Fault or respective owner