How to remove a dummy interface on the fly

Stephen Parfitt sparfitt at avaya.com
Fri Sep 5 07:25:35 UTC 2008


Hi,
 
When working with LVS I need to add dummy0 interfaces to the real
servers like this:
 
#ifconfig dummy0 192.168.10.7 netmask 255.255.255.0
 
This then shows up and works nicely:
 
[root at gbcdff1274m ~]# ifconfig -a
dummy0    Link encap:Ethernet  HWaddr DA:37:9F:77:D0:99  
          inet addr:192.168.10.7  Bcast:192.168.10.255
Mask:255.255.255.0
          inet6 addr: fe80::d837:9fff:fe77:d099/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:210 (210.0 b)
 
 
The problem is, the servers are shared and after testing I need to hand
them back, the only way I know to remove the dummy0 interface is to
reboot the machine, is there a nice way I can remove it from the command
line without a reboot?
 
I've tried:
 
ifconfig dummy0 down, this disables it but it remains in the list.
/etc/init.d/network restart and it still remains
 
Any help much appreciated.
 
 
Steve P



More information about the redhat-list mailing list