Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I managed to get 12.0.4 Cloud Server with MAAS installed. I have no GUI, and I like it that way I am learning a lot.

But now I'm running into several issues. I want to be able to make my IP static but that's just part of the issue, following the help document doesn't help. I try to go to etc/network/interfaces and it says it doesn't exist. I have made it as far as etc/network but it wont go to interfaces, even though ls shows it is there.

Now, how do I do multiple lines of something? Right now I'm with the ethtool it says to do this: I want to be clear, I actually have ethtool installed.

Changes made with the ethtool command are temporary and will be lost after a reboot.
If you would like to retain settings, simply add the desired ethtool command 
to a pre-up statement in the interface configuration file /etc/network/interfaces.

The following is an example of how the interface identified as eth0 could be
permanently configured with a port speed of 1000Mb/s running in full duplex mode.

auto eth0
iface eth0 inet static
pre-up /sbin/ethtool -s eth0 speed 1000 duplex full

What does that mean pre-up statement? When I try to type this in, it never works auto eth0 retuns me with an error saying no command auto found. This is something similar to what I have to do to get static going.

I just can't seem to find anything on this subject matter anywhere. Even like the most basics of Linux help.

share|improve this question

closed as not a real question by izx, John S Gruber, Mitch, Jorge Castro, jokerdino Aug 26 '12 at 6:00

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
It's best to ask one question at a time, and to make them as specific as possible. –  belacq Aug 25 '12 at 0:11
    
I'd suggest that you modify this question to follow up on the /etc/network/interfaces issue. That's where those commands need to go. BTW, if the interface works without all of this, but with a dynamic IP address, you may be able to define a static address for it in your DHCP server, specifying the interface by its MAC address (see ifconfig eth0 to find out what it is). Also see askubuntu.com/a/7087/63886 –  John S Gruber Aug 25 '12 at 4:21

1 Answer 1

/etc/network/interfaces is a regular file, not a directory. That's why you can't cd to it.

Edit the /etc/network/interfaces file with your favorite text editor. For example:

sudo gedit /etc/network/interfaces

The configuration lines given to be added to /etc/network/interfaces are not simply commands you can run from the terminal; they're instructions to the startup scripts on how to configure the network, and are interpreted by the startup scripts.

share|improve this answer

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