Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On Debian - Say I have a network card eth0 on my /etc/network/interfaces file, and I want to add a new interface to it (that uses dhcp). Is it necessary to restart the networking service (/usr/sbin/service networking) when I do this in order to bring the new interface online? Or is there anything else I have to do after I edit the file?

I know that editing, say, dhcpd.conf requires dhcp to be restarted. Wasn't sure about interfaces.

Thanks for your help, from a developer pretending to be a sysadmin for a day.

share|improve this question

2 Answers 2

up vote 6 down vote accepted

You can either restart the nework service or just bring the new/modified interface down and up with a command like: (Note be sure to do this from the console or an out of band management interface)

ifdown ethX (Where X is the ID of your enternet interface) ifup ethX

share|improve this answer
    
does bringing the interface down and up bring the other machines on the interface offline temporarily? –  smcg Apr 24 '12 at 13:35
    
yes - all addresses on that interface would be effected –  ckliborn Apr 24 '12 at 17:26

If you use NetworkManager, then you should not edit /etc/network/interfaces file and the configurations are applied without restart of the "service". If you edit it by hand, then you need to restart the networking configuration for the interface you are changing the config.

And I think that DHCP is not working for alias interfaces (this would be a limitation of the DHCP client).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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