LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2012, 09:12 AM   #1
Squibbs
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 06-11-2012, 04:11 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,884

Rep: Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313Reputation: 2313
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.
 
Old 06-12-2012, 06:54 PM   #3
PasBern
Member
 
Registered: Dec 2009
Location: Berlin, Germany
Distribution: Ubuntu 16.10, Fedora 24
Posts: 79

Rep: Reputation: 1
Quote:
Originally Posted by jefro View Post
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),

Pascal
 
Old 06-14-2012, 11:03 AM   #4
Squibbs
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-15-2012, 03:55 PM   #5
PasBern
Member
 
Registered: Dec 2009
Location: Berlin, Germany
Distribution: Ubuntu 16.10, Fedora 24
Posts: 79

Rep: Reputation: 1
Quote:
Originally Posted by Squibbs View Post
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.
 
Old 06-16-2012, 10:18 AM   #6
Squibbs
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Smile

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
 
Old 07-02-2012, 02:53 PM   #7
Squibbs
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keep losing internet connection londy Linux - Networking 5 02-26-2009 10:10 PM
losing Internet connection atomicrm Linux - Networking 4 02-13-2009 12:42 PM
Losing internet connection jimcpl Linux - Wireless Networking 2 10-10-2007 07:06 AM
Losing internet connection Slack 10 Kernel 2.6.7 tulip driver EdwardA Linux - Networking 0 07-03-2004 08:55 AM


All times are GMT -5. The time now is 05:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration