Debian – -bash: auto: command not found

command linedebiannetworking

I'm going to config my network interfaces and run this command:
auto eth0
but it returns -bash: auto: command not found. It seems I've missed something which I don't know. Any idea? What should I install?

Best Answer

auto eth0 is interfaces(5) syntax. It's a line you would add to /etc/network/interfaces, not a command to be run in a shell. Once you correctly configure the interface in /etc/network/interfaces, you can run the ifup/ifdown commands to apply them.

Related Question