RE: How to remove a dummy interface on the fly

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

 





On Mon, 8 Sep 2008, Stephen Parfitt wrote:

Hi,

Thanks Sark, trouble is though, there is no script, I create the dummy interface manually with ifconfig. I thought a /etc/init.d/network restart would remove the dummy0 interface too but its still there.

There is no ifconfig delete that relates to removing an interface.

Has anyone managed to remove a dummy interface?

Have you tried "ifconfig dummy0 0.0.0.0"?

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Sakthivel
Sent: 07 September 2008 08:02
To: General Red Hat Linux discussion list
Subject: Re: How to remove a dummy interface on the fly

hi,

     Remove the /etc/sysconfig/network-scripts/ifcfg-dummy0 file and restart the network service and check.

Reagrds,
Sark.

--- On Fri, 9/5/08, Stephen Parfitt <sparfitt@xxxxxxxxx> wrote:
From: Stephen Parfitt <sparfitt@xxxxxxxxx>
Subject: How to remove a dummy interface on the fly
To: redhat-list@xxxxxxxxxx
Date: Friday, September 5, 2008, 12:55 PM

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@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
--
redhat-list mailing list
unsubscribe
mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=subscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

!DSPAM:48c4f7b968801352593867!

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux