4

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.

smcg
  • 505
  • 4
  • 18

2 Answers2

6

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

ckliborn
  • 2,778
  • 4
  • 25
  • 37
1

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).

Mircea Vutcovici
  • 17,619
  • 4
  • 56
  • 83