Setting static IP on Ubuntu 8.04 Server

Discussion in 'Installation/Configuration' started by Carlo Gambino, Jul 20, 2008.

  1. Carlo Gambino

    Carlo Gambino New Member

    I have been configuring this server and thought I had set the static IP by configuring /etc/network/interfaces:

    Code:
    # 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?
     
  2. ralic

    ralic New Member

    Code:
    # The primary network interface
    auto eth0
    iface eth0 inet [B]dhcp[/B]
            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.
     
  3. Carlo Gambino

    Carlo Gambino New Member

    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! ;)
     

Share This Page