Results 1 to 5 of 5

Thread: How do I set eth0 to connect on boot?

  1. #1
    Join Date
    Sep 2008
    Location
    Boston
    Beans
    87
    Distro
    Ubuntu 10.04 Lucid Lynx

    How do I set eth0 to connect on boot?

    I'm currently running 10.04 LTS server on a TS130 ThinkServer. Unfortunately because I have the new 82579LM gigabit network card, in order to connect I had to compile the module separately and modprobe it to enable eth0.

    Because I'm using this as a remote server on a static IP, I routinely need to SSH to it, but whenever it needs to be reset, I must run
    Code:
    sudo dhclient
    after logging in locally on the box, or else it cannot connect to the internet.

    Is there anyway I can automate the box to auto-connect eth0 by running dhclient as root on startup?
    "life's sweet, so photograph it; that way someone else can see how sweet it truly was..."

  2. #2
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    5,955
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: How do I set eth0 to connect on boot?

    You can add

    Code:
    dhclient eth0
    into the /etc/rc.local before the phrase "exit 0" via:

    Code:
    sudo nano /etc/rc.local
    CTRL+x to save & exit

  3. #3
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,148
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I set eth0 to connect on boot?

    It is mainly done on /etc/network/interfaces. Could post yours ?
    Regards.

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

    Re: How do I set eth0 to connect on boot?

    Are you getting a static lease from the DHCP server? Otherwise, I'm confused why you need dhclient with a static address. As mentioned (especially on a server - without Network Manager) /etc/network/interfaces is the place to start.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  5. #5
    Join Date
    Sep 2008
    Location
    Boston
    Beans
    87
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How do I set eth0 to connect on boot?

    Quote Originally Posted by Iowan View Post
    Are you getting a static lease from the DHCP server? Otherwise, I'm confused why you need dhclient with a static address. As mentioned (especially on a server - without Network Manager) /etc/network/interfaces is the place to start.
    I'm running the box behind a proxy router so the box need only make a request and the proxy decides the IP.
    "life's sweet, so photograph it; that way someone else can see how sweet it truly was..."

Tags for this Thread

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
  •