Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 23
I have got Dual boot of Windows & Ubuntu on my PC. Internet work fine on windows. However, unable to access any website or get updates on Linux. In ubuntu, ...
  1. #1
    gth
    gth is offline
    Just Joined!
    Join Date
    May 2010
    Posts
    9

    Question Internet not working. Please help

    I have got Dual boot of Windows & Ubuntu on my PC.
    Internet work fine on windows. However, unable to access any website or get updates on Linux. In ubuntu, the icon for network connection shows are 'wired connected' using eth0.

    I have read some post here & tried out some commands on console.


    :~$ lspci | grep -i ethernet
    02:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)



    :~$ ifconfig
    eth0 Link encap:Ethernet HWaddr 07:60:24:9f:91:79
    inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::280:28f:fe8f:7145e/54 Scope:Link

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host


    :~$ dmesg | grep eth
    [ 2.078432] eth0: RealTek RTL8139 at 0x2000, 070:47:24:4f:71:7e, IRQ 14
    [ 12.617946] eth0: link up, 100Mbps, full-duplex, lpa 0x44E1
    [ 22.756068] eth0: no IPv6 routers present

    :~$ cat /etc/network/interfaces
    auto lo
    iface lo inet loopback


    :~$ cat /etc/resolv.conf
    # Generated by NetworkManager
    nameserver 192.168.1.1



    Pl. help resolve issue.

  2. #2
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,230
    Hello and welcome gth!

    Can you please post the output of

    Code:
    lsmod
    Thanks!
    nujinini
    Linux User #489667

  3. #3
    gth
    gth is offline
    Just Joined!
    Join Date
    May 2010
    Posts
    9

    lsmod output

    Code:
    :~$ lsmod
    Module                  Size  Used by
    cbc                     3516  72 
    aes_i586                8124  73 
    aes_generic            27484  1 aes_i586
    ecb                     2524  1 
    binfmt_misc             8356  1 
    snd_es1938             18532  3 
    gameport               11368  2 snd_es1938
    snd_pcm_oss            37920  0 
    snd_mixer_oss          16028  1 snd_pcm_oss
    snd_pcm                75296  2 snd_es1938,snd_pcm_oss
    snd_page_alloc          9156  1 snd_pcm
    snd_opl3_lib           10396  1 snd_es1938
    snd_hwdep               7200  1 snd_opl3_lib
    snd_mpu401_uart         6940  1 snd_es1938
    snd_seq_dummy           2656  0 
    snd_seq_oss            28576  0 
    snd_seq_midi            6432  0 
    snd_rawmidi            22208  2 snd_mpu401_uart,snd_seq_midi
    snd_seq_midi_event      6940  2 snd_seq_oss,snd_seq_midi
    snd_seq                50224  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
    dm_crypt               12928  0 
    iptable_filter          3100  0 
    snd_timer              22276  4 snd_pcm,snd_opl3_lib,snd_seq
    snd_seq_device          6920  6 snd_opl3_lib,snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
    lp                      8964  0 
    ppdev                   6688  0 
    ip_tables              11692  1 iptable_filter
    snd                    59204  17 snd_es1938,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_opl3_lib,snd_hwdep,snd_mpu401_uart,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    x_tables               16544  1 ip_tables
    psmouse                56180  0 
    serio_raw               5280  0 
    soundcore               7264  1 snd
    parport_pc             31940  1 
    shpchp                 32272  0 
    parport                35340  3 lp,ppdev,parport_pc
    fbcon                  36640  72 
    tileblit                2460  1 fbcon
    font                    8124  1 fbcon
    bitblit                 5372  1 fbcon
    softcursor              1756  1 bitblit
    8139too                22620  0 
    8139cp                 19260  0 
    mii                     5212  2 8139too,8139cp
    floppy                 54916  0 
    i915                  221064  2 
    drm                   159584  2 i915
    i2c_algo_bit            5760  1 i915
    intel_agp              27484  2 i915
    agpgart                34988  2 drm,intel_agp
    video                  19380  1 i915
    output                  2780  1 video

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,975
    You probably don't have a proper DNS server entry in /etc/resolv.conf. Post the output of that file here. Your ethernet is working, otherwise you would not have an IP address (192.168.1.2). The other possibility is that the gateway address is not correct (the address of your router).
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Linux User hatebreed's Avatar
    Join Date
    May 2010
    Posts
    332
    you should try ifconfig eth0 down, then ifconfig eth0 up and see if gets the proper ip. the routers i've seen assign 192.168.2. something for your ip. see if you can log into your router through your browser and check out what it's setting up for ips as far as 192.168.2. whatever through 192.168.2. whatever. this will tell you if your at least getting the proper ip or not and you can also check out your gateway and dns there also.

  6. #6
    gth
    gth is offline
    Just Joined!
    Join Date
    May 2010
    Posts
    9
    Content of /etc/resolv.conf

    Code:
    # Generated by NetworkManager
    nameserver 192.168.1.1
    Also,
    Code:
    ifconfig eth0 down
    Code:
    ifconfig eth0 up
    did not solve the problem.

  7. #7
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,114
    It looks as if your router is assigning an IP address to the computer
    and setting the router address as the name server. This is the
    way many routers work, so it doesn't look unusual.

    Try looking up an address like

    Code:
    rcgreen@blue:~$ nslookup google.com
    Server:		68.87.73.246
    Address:	68.87.73.246#53
    
    Non-authoritative answer:
    Name:	google.com
    Address: 72.14.204.147
    Name:	google.com
    Address: 72.14.204.99
    Name:	google.com
    Address: 72.14.204.104
    Name:	google.com
    Address: 72.14.204.103
    If you get no address, try logging on to the router
    by putting its address in the address bar of your web browser.

    192.168.1.1

    This is the configuration page. It will reveal useful stuff,
    like the ISPs gateway and name servers. As a workaround
    you could add one of their name servers to /etc/resolv.conf
    but it will reset to the default when you reboot. First, see if this
    is the issue.
    Last edited by rcgreen; 05-19-2010 at 10:25 AM.

  8. #8
    gth
    gth is offline
    Just Joined!
    Join Date
    May 2010
    Posts
    9
    Code:
    :~$ nslookup ***.google.com
    Server:		192.168.1.1
    Address:	192.168.1.1#53
    
    Non-authoritative answer:
    ***.google.com	canonical name = ***.l.google.com.
    Name:	***.l.google.com
    Address: 209.85.153.104
    ps: *** = www

  9. #9
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,975
    Actually, resolv.conf will not get reset automatically at reboot, but some operations will modify it, such as if you connect thru a VPN. In any case, add these entries to the top of your /etc/resolv.conf and try to access the internet again:

    nameserver 199.45.32.37
    nameserver 199.45.32.40

    One last possibility is if you have installed/enabled SELinux extensions and haven't set it up properly, you might not be allowed internet access by the security system.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  10. #10
    Linux User hatebreed's Avatar
    Join Date
    May 2010
    Posts
    332
    I still think the first thing you should do is log into your router and make sure your getting the proper info. this is the heart of your network and the first spot you should look when in your stumped. If everything looks good there you know that part is good and you can work on your system. Another reason you should start there is sometimes your router will give you the ip and dns and gateway but your router isn't getting the ip from you isp correctly. So you may have an ip on your system but your router doesn't have it's ip and you won't have internet access.

Page 1 of 3 1 2 3 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
  •  
...