2

This question already has an answer here:

I need to setup a static IP for eth0, my server has multiple network interfaces and I don't want to bring any of them, except for eth0 down.

I found lot of guides like https://www.howtoforge.com/linux-basics-set-a-static-ip-on-centos but all of them ends with "now restart networking" or "now reboot"

I can't reboot this server, nor I can bring down eth1 even if it was for a microsecond. How would I change eth0 config without touching other interfaces?

marked as duplicate by Faheem Mitha, cuonglm, vonbrand, taliezin, G-Man Oct 13 '15 at 6:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

You can use:

ifdown eth0 to stop and ifup eth0 to start

  • along with ifconfig eth0 192.168.2.3 up to specify IP. dont forget to edit configuration file. – Archemar Feb 28 '15 at 21:47

Not the answer you're looking for? Browse other questions tagged or ask your own question.