Announcement

Collapse
No announcement yet.

adsl internet connection

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    adsl internet connection

    hi
    i have an internet connection that is always on but cannot connect to the internet
    the network works fine and as i am new to linux it is not so easy to fix
    any help would be great
    thanks

    #2
    Re: adsl internet connection

    Can you post the contents of your /etc/network/interfaces file, and the results of the command "ifconfig -a". Also, can you describe your connection to your ADSL modem? Are you going through a router/switch with other computers? If you are going direct, is your connection USB or ethernet?

    Comment


      #3
      Re: adsl internet connection

      The ADSL router connects to a switch, where the linux machine (and others) are plugged into. The router is configured to be "always on", so no dialing is necessary.

      Interfaces file:
      auto lo
      iface lo inet loopback
      address 127.0.0.1
      netmask 255.0.0.0

      auto eth0
      iface eth0 inet static
      address 192.168.10.210
      netmask 255.255.255.0
      gateway 192.168.10.200

      auto eth1
      iface eth1 inet dhcp

      auto eth2
      iface eth2 inet dhcp

      auto ath0
      iface ath0 inet dcp

      auto vlan0
      iface vlan0 inet dhcp



      ifconfig -a:
      eth0 Link encap:Ethernet HWaddr 00:C0F:08:36:00
      inet addr:192.168.10.210 Bcast:192.168.10.255 Mask:255.255.255.0
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      RX packets:14 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:1934 (1.8 KiB) TX bytes:0 (0.0 b)
      Interrupt:11 Base address:0x2000

      lo Link encap:Local Loopback
      inet addr:127.0.0.1 Mask:255.0.0.0
      UP LOOPBACK RUNNING MTU:16436 Metric:1
      RX packets:19 errors:0 dropped:0 overruns:0 frame:0
      TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0
      RX bytes:1356 (1.3 KiB) TX bytes:1356 (1.3 KiB)

      Comment


        #4
        Re: adsl internet connection

        Well, ifconfig apparently shows that you're not getting through. In your first message you said that the network works fine, but this seems to indicate that your linux box isn't talking to anybody.

        The only thing I can see that might be wrong in the /etc/network/interfaces file is the ath0 entry which, I think, should say "dhcp" instead of "dcp", but I don't know anything about wireless. I do have a couple of questions, though. You have a couple of interfaces that are dhcp, but you're specifying your primary interface as static, (1) Are you sure your switch gives you a static ip address? and, if so (2) Are you SURE that 192.168.10.210 is the correct address? You might try removing or disabling the eth1 and eth2 ethernet adaptors, they don't seem to show up ifconfig.

        Comment


          #5
          Re: adsl internet connection

          If your router has DHCP server ?if was configured by you ISP maybe has it running₧ you could try using dhcp for eth0, just look something like:

          nterfaces file:
          auto lo
          iface lo inet loopback
          address 127.0.0.1
          netmask 255.0.0.0

          auto eth0
          iface eth0 inet dhcp

          auto eth1
          iface eth1 inet dhcp

          auto eth2
          iface eth2 inet dhcp

          auto ath0
          iface ath0 inet dhcp

          auto vlan0
          iface vlan0 inet dhcp

          You can use "ifdown eth0" and "ifup eth0" to check if works. The wireless is the same as wired, is "dhcp", unless you are using other programs to provide an ip. But the hardware usually uses "dhcp".

          Comment


            #6
            Re: adsl internet connection

            The machine only has 1 network adapter installed, which I assume to be eth0, so physically removing the eth1 and eth2 devices is impossible. Removing them from the Interface file has no effect.

            Also, when setting the network to use DHCP the internet and the network do not work, but when setting the IP address to a static one then the network works but not the internet.

            The router has a built-in IP address of 192.168.10.200, so I assume that using a fixed IP address on the machine is the way to go (as this is what I do with the Windows machines and they work fine).

            Is it possible that there is a firewall or setting thatis disabling or blocking internet access but letting the network through?

            Thanks

            Comment


              #7
              Re: adsl internet connection

              I must admit I'm puzzled by your /etc/network/interfaces file. How was it generated? Normally, the installer doesn't produce a bunch of inteface entries for non-existant devices. So, if eth0 is really your only outside connection, I would definitely remove all the entries from /etc/network/interfaces except for the loopback and eth0. Beyond that, I can't think of anything to suggest.

              Comment


                #8
                Re: adsl internet connection

                I have tried removing the other entries from the interface file, but it does not help. The file was generated by Linux itself, and has not been edited afterwards.

                Perhaps there is a place where I can enter a DNS or something?

                Comment


                  #9
                  Re: adsl internet connection

                  I'm not sure why you think that you need to add a dns entry, but to answer your question: DNS information is kept in a file called /etc/resolv.conf . You're not supposed to edit that file by hand, though. The official way is to use resolvconf (see man 8 resolvconf). I have been known to modify my resolv.conf file by hand, when desperate, where desperate is defined as my ISP's DNS servers take more than 3 minutes to respond to a query. It's actually no more difficult to do it right, though. You need to know the IP address of your ISP's primary (at least) and secondary (better) DNS servers.

                  Comment


                    #10
                    Re: adsl internet connection

                    stil no internet

                    Comment

                    Working...
                    X