netmask: command not found

Posted by Ian R. on Server Fault See other posts from Server Fault or by Ian R.
Published on 2010-05-11T21:27:39Z Indexed on 2010/05/11 21:34 UTC
Read the original article Hit count: 245

Filed under:
|

I purchased a new server with a few ip's so I modified the /etc/network/interfaces file recently so that my ip's can go live. While editing that file I created a backup and deleted the original file. I recreated the interfaces file using the touch command and gave +x permissions but now, when trying to restart the interface (/etc/network/interfaces restart) I get all sorts of errors:

/etc/network/interfaces: line 10: iface: command not found
/etc/network/interfaces: line 11: address: command not found
/etc/network/interfaces: line 12: netmask: command not found
/etc/network/interfaces: line 13: auto: command not found

Can any1 point what I forgot to do?

Thanks.

© Server Fault or respective owner

Related posts about linux

Related posts about linux-networking