Ubuntu Networking: No IP for eth0

Discussion in 'Linux & BSD' started by gballard, Nov 22, 2004.

  1. gballard

    gballard Moderator

    Messages:
    549
    When I initially installed Ubuntu...I told it to use my D-Link 650+ wireless as the default network connection. That is all fine while I am using the laptop at home but when I got to the office this morning...I needed it to use the onboard network adapter at eth0. During the boot sequence, it got to the point where it was bringing up the network interfaces. It started spitting errors in relation to eth0...something about unable to set multicast or something along those lines. It eventually booted up to the desktop and I logged in. I opened a terminal and typed in ifconfig...it sees a network card at eth0 and gives the MAC address and even gives an IPv6 IP address...but no IPv4 address is listed. Is this an instance where I need to setup a profile for home and a profile for work? If so...how do I do that?....:(
     
  2. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    does the wireless card have an IP address assigned in the same range as one the eth0 should take? Same netmask as well?
     
  3. gballard

    gballard Moderator

    Messages:
    549
    the wireless card is not even in the laptop at the moment...I only use the wireless at home.
     
  4. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    what happens when you try

    ifconfig eth0 inet <ipaddress> netmask <netmask>

    oddly enough where <ipaddress> is the ip you would normally get and <netmask> is the network mask ;)
     
  5. gballard

    gballard Moderator

    Messages:
    549
    OK...I figured out what happened. It sees the built-in wireless as eth0 and eth1 is actually my on-board ethernet card. I edited /etc/network/interfaces and made the changes where needed and then typed ifup eth1 and its working now...thanks for the input.
     
  6. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    ah, yeah that would do it :p
     
  7. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    So leave the wireless card in the laptop :p