Find the answer to your Linux question:
Results 1 to 10 of 10
I just booted into my Gentoo enviornment, and everything seemed fine. but if I do anything that requires an internet connection, emerge, ping, etc i get a Network is unreachable ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Dec 2004
    Location
    Speed School of Engineering
    Posts
    267

    Network is unreachable


    I just booted into my Gentoo enviornment, and everything seemed fine.
    but if I do anything that requires an internet connection, emerge, ping, etc
    i get a
    Network is unreachable error

    does anyone know how to fix this?

  2. #2
    Linux User
    Join Date
    Dec 2004
    Location
    Speed School of Engineering
    Posts
    267
    I have read the other posts in this forum, and none of the solutions there seemed to help.
    I'm using an Intel integrated ethernet card

    If i boot from the Gentoo LiveCD, the internet works fine, and I can chroot into my system and install packages via portage, but just booting to my system gives the 'unreachable' error, so I'm lead to believe its a problem with the kernel I setup (or not, I'm pretty clueless in this area)

    Any help would be greatly appreciated, as a computer without internet access is basically dead to me, and I don;t want to have the last 24 hours have gone to waste by reverting to a previous distro

    -Zach

  3. #3
    Linux Enthusiast
    Join Date
    Dec 2004
    Location
    Rockin' in the USA!!!
    Posts
    603
    Could you give us some more information, are you using dhcp, router, static-ip, what do you get when you do:
    Code:
    ifup eth0

  4. #4
    Linux User
    Join Date
    Dec 2004
    Location
    Speed School of Engineering
    Posts
    267
    i'm using dhcp and kernel 2.6
    Code:
    -bash: ifup: command not found

  5. #5
    Linux Enthusiast
    Join Date
    Dec 2004
    Location
    Rockin' in the USA!!!
    Posts
    603
    Oh sorry, my bad, I'm used to using redhat, so I wrote a script on my system for a pseudo ifup, for gentoo the script should be in /etc/init.d and should go something like this:
    Code:
    /etc/init.d/net.eth0 start

  6. #6
    Linux User
    Join Date
    Dec 2004
    Location
    Speed School of Engineering
    Posts
    267
    Code:
    Bringing eth0 up
    SIOCSIFADDR: No such device
    eth0: unknown interface: No such device
    SIOCSIFBRDADDR: No such device
    eth0: unknown interface: No such device
    SIOCSIFNETMASK: No such device

  7. #7
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Code:
    dmesg | grep eth
    It appears as if you forgot to compile the driver for your ethernet card into your kernel *or* are not loading the module. If the above command doesn't return anything, post the output of 'lspci'.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  8. #8
    Linux User
    Join Date
    Dec 2004
    Location
    Speed School of Engineering
    Posts
    267
    WOW, thats a lot of errors

    Code:
    Method execution failed
    over and over and over

    plus a lot of garble i dont recognize

  9. #9
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    did you check everything in your kernel that you need for the nic to work? You can always cd /usr/src/linux and make menuconfig and see if anything jumps out at you
    Operating System: GNU Emacs

  10. #10
    Linux User
    Join Date
    Dec 2004
    Location
    Speed School of Engineering
    Posts
    267
    btw, how do I use a new kernel once I have compiled it?
    do i only have to reboot?

Posting Permissions

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