Results 1 to 5 of 5

Thread: Making ethernet static ip automatically

  1. #1
    Join Date
    Feb 2009
    Beans
    50
    Distro
    Ubuntu 10.04 Lucid Lynx

    Making ethernet static ip automatically

    No matter what I try whenever I restart my computer the ethernet connection resets to eth0 with default settings. What I want is to have it default to a static ip configuration.

  2. #2
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Making ethernet static ip automatically

    I had to edit the /etc/network/interfaces file by hand (as root).

    You can do:

    Code:
    man interfaces
    in a teminal for all the details; I attached the examples that can be found in: /usr/share/doc/ifupdown/examples/network-interfaces.

    The example:

    Code:
    # An example ethernet card setup: (broadcast and gateway are optional)
    #
    # auto eth0
    # iface eth0 inet static
    #     address 192.168.0.42
    #     network 192.168.0.0
    #     netmask 255.255.255.0
    #     broadcast 192.168.0.255
    #     gateway 192.168.0.1
    sets up eth0 for a static ip (remember to remove the #'s in your actual file).
    Attached Files Attached Files
    Last edited by ddnev45; February 22nd, 2009 at 04:41 AM.
    The mark of an honest man ... is that he means what he says and knows what he means.
    A.R.

  3. #3
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Making ethernet static ip automatically

    Try this one. Another option is to un-install Network Manager, and re-install the older version.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  4. #4
    Join Date
    Dec 2008
    Location
    Littleton, Colorado USA
    Beans
    362
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Making ethernet static ip automatically

    I had to uninstall NetworkManager so that it didn't install and run at ALL the run-levels. Then I had to hook up the network script and have it installed at run-level 2,3 & 5. NetworkManager doesn't work at all for static IPs.

    The gui interface also had trouble setting the network mask. It set mine to 255.255.255.255, which won't and didn't work. I had to hand edit the file in /etc/system/network_interface to 255.255.255.0.

    I had to do the above for a dual Ethernet Linux firewall for both interfaces. I setup the Internet side Ethernet card to use "network" and to get a DHCP address from my providers servers.

    Hope this helps. The NetworkManager is not ready for prime time. It needs a static option.

  5. #5
    Join Date
    Oct 2006
    Beans
    25

    Re: Making ethernet static ip automatically

    Quote Originally Posted by tenmilez View Post
    No matter what I try whenever I restart my computer the ethernet connection resets to eth0 with default settings. What I want is to have it default to a static ip configuration.

    You not the only one w/ this problem. Maybe some clues here?

    http://ubuntuforums.org/showthread.p...ight=kill+dhcp

    lynnevan

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •