Operating System - Linux
1820475 Members
3314 Online
109624 Solutions
New Discussion юеВ

Remove interface from running linux server

 
SOLVED
Go to solution
Gilbert Standen_1
Frequent Advisor

Remove interface from running linux server

How to remove network interface without reboot? Don't want to do "/etc/init.d/network restart" just want to completely remove one interface without a reboot. Thanks

If I could take one thing with me into the next world it would be my valid login to HP ITRC Forums
4 REPLIES 4
Court Campbell
Honored Contributor
Solution

Re: Remove interface from running linux server

ifconfig ethX down
ifconfig ethX unplumb
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Ivan Ferreira
Honored Contributor

Re: Remove interface from running linux server

ifdown ethX
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Gilbert Standen_1
Frequent Advisor

Re: Remove interface from running linux server

thanks, but don't think ifdown will do it. :-) I'm told by the network admins here that "ifdown" only puts the interface in a down state, but the ip address still remains on the interface, where we are looking for a running way to do the equivalent of getting rid of ifcfg-ethX and doing /etc/init.d/network restart". I think the previous post "ifconfig ethX destroy" is a more likely solution, but thank you very much for your response anyway, it is appreciated.
If I could take one thing with me into the next world it would be my valid login to HP ITRC Forums
Court Campbell
Honored Contributor

Re: Remove interface from running linux server

You need to edit the file /etc/sysconfig/network-scripts/ifcfg-ethX. Set ONBOOT=no.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"