PDA

View Full Version : Setting static IP on Ubuntu 8.04 Server


Carlo Gambino
20th July 2008, 02:35
I have been configuring this server and thought I had set the static IP by configuring /etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
address 192.168.1.199
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1

But when I restart the nework, the IP is still assigned via DHCP. Is there something else I should be doing?

ralic
20th July 2008, 09:19
# The primary network interface
auto eth0
iface eth0 inet dhcp
address 192.168.1.199
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1

Change the dhcp to static.

Carlo Gambino
21st July 2008, 17:50
Thanks, ralic!

I knew something simple was standing in my way. I've been pushing myself to learn in so many different directions that I seem to be missing simple things.

Perhaps tis time to slow down a little! ;)