Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hello! I'm new to linux and i just installed suse 10.2. During the installation it automatically picked up my onboard network card, so i entered my ip and a default ...
  1. #1
    Just Joined! SnagaDuath's Avatar
    Join Date
    Aug 2007
    Location
    South Africa
    Posts
    52

    Question Network card installed, but no internet connection

    Hello!

    I'm new to linux and i just installed suse 10.2. During the installation it automatically picked up my onboard network card, so i entered my ip and a default gatway to my router, but it could not download the latest release notes. So i skipped that and finished the installation.
    Now when i run firefox i can log onto my router by typing it's ip into the address bar, but i do not have an internet connection.

    It works fine on all other computers on the network and on my own when i run windows.

    Any ideas?

    Thx
    SnagaDuath

  2. #2
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    658
    Are you getting an 'unknown host' error?

    If so, check /etc/resolv.conf for a line to the effect of

    Code:
    nameserver <gateway IP>
    If that isn't the error, ping google and post the error here.

    Let us know how you get on,

    Chris...
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

  3. #3
    Just Joined! SnagaDuath's Avatar
    Join Date
    Aug 2007
    Location
    South Africa
    Posts
    52
    The resolv.conf file contains only one line : "domain Domain"
    When i ping google i get the unknown host error you talked about.

  4. #4
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    658
    Easy then (someone please note use of Famous Last Words), put in the nameserver line on a line by itself, being sure to change the bit in <> to the actual IP address of your gateway. You'll need to be root to edit the file.

    Try pinging again and let us know how you get on,

    Chris...
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

  5. #5
    Just Joined! SnagaDuath's Avatar
    Join Date
    Aug 2007
    Location
    South Africa
    Posts
    52
    I changed th resolv file to:

    nameserver 192.168.1.1

    now i get 'network unreachable' when i ping goolge.

    I noticed that when i enable dhcp on my router and configure my network card accordingly everything works fine and the resolv file contains this exact line, but the moment dhcp is turned off i can only access the router.

    thx for taking the time to help me!

  6. #6
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    658
    Yes, dhcp will configure all of these things for you, but it might be valuable for you to fix this without dhcp just so you can see what's involved.

    Can I get you to run the following commands (using the static settings you have so far) as root.

    Code:
    ifconfig
    route -n
    cat /etc/resolv.conf
    Chris...
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

  7. #7
    Just Joined! SnagaDuath's Avatar
    Join Date
    Aug 2007
    Location
    South Africa
    Posts
    52
    I would very much like to have it configured using static settings, i'm just happy that i don't have to reboot to windows every 10min anymore

    this is the output for the commands:

    Bennie:/etc # ifconfig
    eth0 Link encap:Ethernet HWaddr 00:14:85:EFC:57
    inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::214:85ff:feef:dc57/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:7867 errors:0 dropped:0 overruns:0 frame:0
    TX packets:7765 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:4801991 (4.5 Mb) TX bytes:1261739 (1.2 Mb)
    Interrupt:217 Base address:0xc000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:646 errors:0 dropped:0 overruns:0 frame:0
    TX packets:646 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:47116 (46.0 Kb) TX bytes:47116 (46.0 Kb)

    Bennie:/etc # route -n
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
    127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

    Bennie:/etc # cat /etc/resolv.conf
    domain Domain
    nameserver 192.168.1.1

  8. #8
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    658
    It looks like your missing the default gateway entry in your routing table:

    Code:
    route add default gw 192.168.1.1
    Should fix it up temporarily. If this works, let us know and we can look at making it permanent. Otherwise, post the errors you get.

    Chris...
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

  9. #9
    Just Joined! SnagaDuath's Avatar
    Join Date
    Aug 2007
    Location
    South Africa
    Posts
    52
    It works now!

    I'm a bit baffeled, though....i'm sure i entered the default gateway in the configuration during the installation

    Anyway...thx a lot for your help!!

  10. #10
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    658
    Check this thread for a quick discussion on making default gateways permanent under suse.

    Let us know how you get on,

    Chris...
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

Page 1 of 2 1 2 LastLast

Posting Permissions

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