Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38

Thread: DSL Connection[12.04 LTS]

  1. #1
    Join Date
    Apr 2010
    Beans
    105

    DSL Connection[12.04 LTS]

    Hello.
    Motivation:
    My computer is dual-boot. I had created two DSL connections inside my Ubuntu environment. some months ago it suddenly stopped connecting to the internet, and I left using ubuntu. Now my university professors require me to use a linux distro and I find it difficult to work there without internet connection.

    problem:
    My ping 127.0.0.1 returns successfully. my netstat shows no problem to me. My lspci gived the name of the etthernet.But I just cannot connect to the internet.

    Please help me

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

    Re: DSL Connection[12.04 LTS]

    Please check
    Code:
    cat /etc/network/interfaces
    cat /etc/resolv.conf
    ifconfig -a
    cat /etc/udev/rules.d/70-persistent-net.rules

  3. #3
    Join Date
    Apr 2010
    Beans
    105

    Re: DSL Connection[12.04 LTS]

    the output are:
    soheil@soheil-desktop:~$ cat /etc/network/interfaces
    auto lo
    iface lo inet loopback

    soheil@soheil-desktop:~$ cat /etc/resolv.conf
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    soheil@soheil-desktop:~$ ifconfig -a
    eth0 Link encap:Ethernet HWaddr 00:1f:d0:22:36:16
    inet6 addr: fe80::21f:d0ff:fe22:3616/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:32 errors:0 dropped:0 overruns:0 frame:0
    TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:6024 (6.0 KB) TX bytes:4434 (4.4 KB)
    Interrupt:44 Base address:0xe000

    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:964 errors:0 dropped:0 overruns:0 frame:0
    TX packets:964 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:108190 (108.1 KB) TX bytes:108190 (108.1 KB)

    soheil@soheil-desktop:~$ cat /etc/udev/rules.d/70-persistent-net.rules
    # This file maintains persistent names for network interfaces.
    # See udev(7) for syntax.
    #
    # Entries are automatically added by the 75-persistent-net-generator.rules
    # file; however you are also free to add your own entries.

    # PCI device 0x10ec:0x8168 (r8169)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1f:d0:22:36:16", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
    soheil@soheil-desktop:~$

  4. #4
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    6,790
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: DSL Connection[12.04 LTS]

    There are no nameservers listed in your /etc/resolv.conf.
    Code:
    echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" | sudo tee -a /etc/resolv.conf
    sudo service network-manager restart

  5. #5
    Join Date
    Apr 2010
    Beans
    105

    Re: DSL Connection[12.04 LTS]

    You mean I need to go enter that code?

  6. #6
    Join Date
    Apr 2010
    Beans
    105

    Re: DSL Connection[12.04 LTS]

    soheil@soheil-desktop:~$ echo -e "nameserver 8.8.8.8\nameserver 8.8.4.4" | sudo tee -a etc/resolv.conf
    [sudo] password for soheil:
    tee: etc/resolv.conf: No such file or directory
    nameserver 8.8.8.8
    ameserver 8.8.4.4
    soheil@soheil-desktop:~$ sudo service network-manager restart
    network-manager stop/waiting
    network-manager start/running, process 2458

  7. #7
    Join Date
    Apr 2010
    Beans
    105

    Re: DSL Connection[12.04 LTS]

    note my "\nameserver 8.8.4.4" command in line1, instead of your "\nnameserver 8.8.4.4"

  8. #8
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,149
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: DSL Connection[12.04 LTS]

    Quote Originally Posted by houshdaran View Post
    note my "\nameserver 8.8.4.4" command in line1, instead of your "\nnameserver 8.8.4.4"
    ..which is a mistake. The additional n is intentional, it is like (\n)(nameserver), where \n is for "Newline" (means the part after \n will be printed in a new line).

    There is another mistake -
    Quote Originally Posted by houshdaran View Post
    soheil@soheil-desktop:~$ echo -e "nameserver 8.8.8.8\nameserver 8.8.4.4" | sudo tee -a etc/resolv.conf
    there is a slash (/) missing before etc/. That's why it returned error that no such file/folder exists. Absolute paths in Linux start with "/". Just copy paste the command praseodym gave you, it is all correct, no typos there.

    Although I am still concerned that you also don't seem to have been given an IP, so I suspect there is more work to do.

    Oh, and please use 'Code' tags to post the outputs. It preserves the formatting of the output and makes it more readable. Please follow the "Using Code Tags" link in my signature to see how to use it.
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags

  9. #9
    Join Date
    Apr 2010
    Beans
    105

    Re: DSL Connection[12.04 LTS]

    Code:
    soheil@soheil-desktop:~$ echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" | sudo tee -a /etc/resolv.conf
    [sudo] password for soheil: 
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    soheil@soheil-desktop:~$ echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" | sudo tee -a /resolv.conf
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    soheil@soheil-desktop:~$ sude service network-manager restart
    No command 'sude' found, did you mean:
     Command 'sudo' from package 'sudo' (main)
     Command 'sudo' from package 'sudo-ldap' (universe)
    sude: command not found
    soheil@soheil-desktop:~$ sudo service network-manager restart
    network-manager stop/waiting
    network-manager start/running, process 2271

  10. #10
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,149
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: DSL Connection[12.04 LTS]

    Quote Originally Posted by houshdaran View Post
    Code:
    soheil@soheil-desktop:~$ echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" | sudo tee -a /resolv.conf
    That /resolv.conf file is unnecessary, the system only needs the /etc/resolv.conf file. Nothing harmful though, just unnecessary.

    So is there any progress in connectivity now?
    What is the output of -
    Code:
    nm-tool
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags

Page 1 of 4 123 ... LastLast

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
  •