LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux Newbie - losing internet connection (https://www.linuxquestions.org/questions/linux-newbie-8/linux-newbie-losing-internet-connection-4175410868/)

Squibbs 06-11-2012 09:12 AM

Linux Newbie - losing internet connection
 
I tried before to get my head around Ubuntu but became confused. I have now gone back to see if I can do better. However I am finding that the program is dropping in and out of the internet connection every couple of minutes. How can I overcome this please. I am using a BTHub3, also have a Belkin Wireless G Desktop Card installed in computer. Previously when I used the program this did not happen. I also have WIN 7 loaded on computer.

jefro 06-11-2012 04:11 PM

Dropping out may need to be more clear.

What do you mean when you say dropping out and what tests did you do or what indications do you see?

Try a few different live cd/dvd's and see if they all do the same might be a good start.

PasBern 06-12-2012 06:54 PM

Quote:

Originally Posted by jefro (Post 4700936)
Dropping out may need to be more clear.

What do you mean when you say dropping out and what tests did you do or what indications do you see?

I totally agree, do all your internet connections get interrupted or only loading webpages? So for example are your email-client, Bittorrent-client, chat-programme, etc. also offline? If not, you might have a DNS-resolving problem. Could you check whether you still have an IP address when your machine just dropped out? Type either
Code:

ifconfig
as ROOT or
Code:

/sbin/ifconfig
as regular user in a terminal to determine, if you have received an IP address (probably a dynamic one). The reason for the different commands is that /sbin is not in the normal PATH environment for ordinary users but you may execute ifconfig even when not ROOT.

The output should look something like this:


Code:

eth0      Link encap:Ethernet  Hardware Adresse 00:03:0d:48:ef:1f 
          inet Adresse:192.168.2.101  Bcast:192.168.2.255  Maske:255.255.255.0
          inet6-Adresse: fe80::203:dff:fe48:ef1f/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:716905 errors:0 dropped:0 overruns:0 frame:0
          TX packets:601625 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:879018112 (838.2 MiB)  TX bytes:49804611 (47.4 MiB)
          Interrupt:16 Basisadresse:0x2000

lo        Link encap:Lokale Schleife 
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metrik:1
          RX packets:936 errors:0 dropped:0 overruns:0 frame:0
          TX packets:936 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:51916 (50.6 KiB)  TX bytes:51916 (50.6 KiB)

I hope this helps (my system is in German so bear with me:o),

Pascal

Squibbs 06-14-2012 11:03 AM

Sorry to have been so long - have been away. Tried 'ifconfig' amd was then baffled because I could not find out how to copy the terminal text to file so I could include it here. Tried Ctrl C & Ctrl V into Libre Office but no joy. Have got to look further to find out how to do this. Will try to find some lists of instructions. I am a real 'newbie'!!!
When I log into Linux I immediately get a message flashing 'BTHub3-ZX6T connnection established' - then immediately it flashes again 'BTHUb3-ZX6T Disconnected you are now off line' and it continues to do this every three seconds. I have to reboot into Windows to access the forum and internet.

PasBern 06-15-2012 03:55 PM

Quote:

Originally Posted by Squibbs (Post 4703228)
Sorry to have been so long - have been away. Tried 'ifconfig' amd was then baffled because I could not find out how to copy the terminal text to file so I could include it here. Tried Ctrl C & Ctrl V into Libre Office but no joy. Have got to look further to find out how to do this.

I assume you are using a GUI terminal emulator like 'terminal' or 'konsole' (not switching to tty2 by ALT+CTRL+F2). You may copy text either by just highlighting it and then pasting it with the middle button of the mouse into the text field of your choice in this case a text editor. This works across all applications, also for entry fields on a website when registering for something for example (even pasting a command found on the internet into the terminal!). Or you can right-click the selected text and paste it with another right-click into the editor. Perhabs you might want to use a "pure" text editor for capturing terminal output like 'Gedit' (on GNOME/UNITY) or 'Kate' (KDE). Thus you will not have any formatting issues, as these editors do not do formatting like Libre Office.

In case this does not work, you can get around it doing the following:

Type the command and redirect the output to a text file with '>': (# inserted here to indicate you need to be ROOT to execute this command or else type '/sbin/ifconfig')

Code:

# ifconfig > ifconfig-output.txt
This will create a text-file ifconfig-output.txt in the directory you are currently in (when typing the command), else type the absolute path to the file like: /DIR1/DIR2/name_of_the_output_file. You can then open the file by a text editor. The ending is actually not necessary, but it helps remembering what kind the file actually is, when you hit upon it year later or so and can't recall.

To view this file in the terminal use:

Code:

cat ifconfig-output.txt
This will only display the contents of the file, no editing possible.



Quote:

When I log into Linux I immediately get a message flashing 'BTHub3-ZX6T connnection established' - then immediately it flashes again 'BTHUb3-ZX6T Disconnected you are now off line' and it continues to do this every three seconds. I have to reboot into Windows to access the forum and internet.
This looks like a problem with your computer, i.e. Ubuntu

Please tell us whether you have an IP address when you are disconnected, if not type
Code:

dhclient
to see if you get one upon request. This does not resolve the problem itself but helps solving the issue.

I assume, when being disconnected, all your applications accessing the internet are offline?


Please post the contens of your network-interfaces file:

Code:

cat /etc/network/interfaces
There is your configuration of your network interfaces, wired (eth0) and wireless (wlan0) and loopback (lo).


I hope we are getting closer to the origin of your network problems.

Squibbs 06-16-2012 10:18 AM

Thank you very much for your response. Believe it or not I am going away again - will be back in a week and will try to use the information you have just given me. I really do appreciate the help.
Regards

Squibbs 07-02-2012 02:53 PM

Thanks to everyone for your suggestions. Thanks also for telling me how to save ifconfig info. I did this and got the following:

eth1 Link encap:Ethernet HWaddr 00:06:4f:65:c5:1b
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:18 Base address:0xc400

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

wlan0 Link encap:Ethernet HWaddr 00:17:3f:d3:6f:3b
inet6 addr: fe80::217:3fff:fed3:6f3b/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:2243 errors:0 dropped:0 overruns:0 frame:0
TX packets:8445 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:419652 (419.6 KB) TX bytes:1649844 (1.6 MB)

Tried dhclient and got nothing. Also tried changing settings for web access but could not find IP addresses.
Decided to run 'repair' when booting. Good move.

Then got
eth1 Link encap:Ethernet HWaddr 00:06:4f:65:c5:1b
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:18 Base address:0xc400

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:15632 errors:0 dropped:0 overruns:0 frame:0
TX packets:15632 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1166160 (1.1 MB) TX bytes:1166160 (1.1 MB)

wlan0 Link encap:Ethernet HWaddr 00:17:3f:d3:6f:3b
inet addr:192.168.1.64 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::217:3fff:fed3:6f3b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3232 errors:0 dropped:0 overruns:0 frame:0
TX packets:11269 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:660488 (660.4 KB) TX bytes:2201999 (2.2 MB)

Went to settings and the system was able to pick up the IP addresses. So I now have successful acccess to the internet.

Once again many thanks to everyone for all your help.


All times are GMT -5. The time now is 12:08 AM.