Does the network need to be restarted after editing /etc/network/interfaces

interfacenetworking

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.

Best Answer

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

Related Topic