Change Server to Static IP without GUI

Schiz0 schiz0phrenic21 at gmail.com
Thu May 15 14:44:30 UTC 2008


On Thu, May 15, 2008 at 10:33 AM, Kipton Moravec <kip at kdream.com> wrote:
> When I set up my server I set it up so it would get a dynamic address.
>
> Now I want to change it to a static address. What file do I have to go
> to to change it? I do not have a GUI, just command line. (I know how to
> do it with the GUI, but the server does not have it.)
>
> Anything I need to watch out for?
>
> Thanks,
> Kip

You'd want to change your /etc/network/interfaces file.

man 5 interfaces

Something like:

auto eth0
iface eth0 inet static
          address x.x.x.x
          netmask 255.255.255.192
          network x.x.x.x
          broadcast x.x.x.255
          gateway x.x.x.x




More information about the ubuntu-users mailing list