LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-26-2006, 07:00 AM   #1
ffilc7373
Member
 
Registered: Feb 2004
Location: North London, England
Distribution: Ubuntu
Posts: 125

Rep: Reputation: 16
Internet Connection


I now have Ubuntu loaded and running,(with help from the Forum) but I can't connect to the Internet.
In windows I use a wireless LAN with Netgear WG111T connected via USB to the PC. The router is Netgear DG834GT and this set up works in Windows.
I have tried accessing the Admin>networking menu and working through the setup instructions, it tells me I am connected but I cannot send /receive e-mail or connect to any web site. The on screen message is "server not found".
I note, from reading elsewhere that there are known problems with the WG111T so I have also tried a wire connection to the router and that gives the same result
Your help would again be appreciated.
ffilc
 
Old 09-26-2006, 11:39 AM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What is the output of /sbin/ifconfig and cat /etc/resolv.conf? The first command should show your ethernet connections, the second is a file that sets your DNS servers. Typically, if it says connected and you can't send or receive, it's a DNS issue.

Try ping -c 3 66.102.7.104. If you get a response, it's a DNS issue (that IP address should correspond to one of google's servers). If you don't get a response, it's an ethernet configuration issue within linux.
 
Old 09-26-2006, 12:50 PM   #3
ffilc7373
Member
 
Registered: Feb 2004
Location: North London, England
Distribution: Ubuntu
Posts: 125

Original Poster
Rep: Reputation: 16
Thanks for the reply.
I assumed you meant to do this in the "cable connect" configuration
The first step you suggested gave several lines of text, with lots of zeros.
Since I don't have e-mail I can't send this to you and I cannot copy it across to Windows where I do have e-mail etc.
The second test you suggested give "file does not exist"
and the ping attempt went through the usual steps but did not appear to send anything.
I am going back into Ubuntu to try the same test in the Wireless set up and will send another message with comments on that.
ffilc
 
Old 09-26-2006, 01:02 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Sorry, I meant you to type the commands from a command line. Can you copy the output to a text file and move it via floppy or usb thumb drive to the windows machine? Then post the output in your reply (use the code tag in the advanded edit).
 
Old 09-26-2006, 01:12 PM   #5
ffilc7373
Member
 
Registered: Feb 2004
Location: North London, England
Distribution: Ubuntu
Posts: 125

Original Poster
Rep: Reputation: 16
Yes, I understood that you wanted me to type the commands at the command line and let me just say that the result is the same when using the Wireless configuration.
I can copy the text to a word document but don't know how to transfer that to Windows, I have a USB flash RAM but need advice on how to locate it in Ubuntu and then use that to save the document for extraction in windows.
I am sorry to be so difficult.
ffilc
 
Old 09-26-2006, 01:23 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Okay, I'll try to just walk you through what information I'm really after. When you run /sbin/ifconfig you should have an output that says "eth0" when plugged into an ethernet cable. The wireless one might say wlan0 or eth1 or something else. There will also be the loopback interface "lo" which we'll ignore right now.

The information I want is a section that says "inet addr:192.168.0.40". Your numbers will probably be different.

From MS windows you can get similar information that might help me. Go to a windows command prompt. Then type ipconfig. One of the entries should be Local Area Connection 1 or something like that if you're plugged into the network or Wireless network 1 if via wireless. Write down the IP address and the default Gateway.

Now the other command, cat /etc/resolv.conf should give you an output like
Code:
nameserver 192.168.0.1
nameserver 130.128.1.1
If the file is empty, that's one problem we can fix when I see the other information.
 
Old 09-26-2006, 01:45 PM   #7
ffilc7373
Member
 
Registered: Feb 2004
Location: North London, England
Distribution: Ubuntu
Posts: 125

Original Poster
Rep: Reputation: 16
OK here is the info extracted from Windows
Router Status

Account Name cliff.g3ndc@btinternet.com
Firmware Version V1.01.00

ADSL Port
MAC Address 00:0F:B5:7A:9B:51
IP Address 86.137.100.109
Network Type PPPoA
IP Subnet Mask 255.255.255.255
Gateway IP Address 217.47.155.141
Domain Name Server 194.72.0.114
194.74.65.69

LAN Port
MAC Address 00:0F:B5:7A:9B:50
IP Address 192.168.0.1
DHCP On
IP Subnet Mask 255.255.255.0

Modem
ADSL Firmware Version A2pB016a.d14k5
Modem Status Connected
DownStream Connection Speed 1152 kbps
UpStream Connection Speed 288 kbps
VPI 0
VCI 38

Wireless Port
Name (SSID) FLORAL
Region Europe
Channel 11
Wireless AP Enabled
Broadcast Name Disabled

The addresses etc look the same in Ubuntu
The response the the second input....cat/etc/resolv.conf
is "No such file or Directory"

let me know what more you need
ffilc
 
Old 09-26-2006, 01:52 PM   #8
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What about when you plug it into the router directly (with an ethernet cable)? Let's try to get it working there first, and then we can migrate to the wireless.
 
Old 09-26-2006, 02:16 PM   #9
ffilc7373
Member
 
Registered: Feb 2004
Location: North London, England
Distribution: Ubuntu
Posts: 125

Original Poster
Rep: Reputation: 16
The info I supplied comes from the router.
If I plug in the cable, leaving the wireless adaptor in operation and access the Router the information is the same. If I disable the wireless adaptor (unplug it) I cannot access the router. I get the message that "the server is not available"
From the command line ipconfig just gives me "Windows Configuration" with nothing more.
ffilc
 
Old 09-26-2006, 03:13 PM   #10
ffilc7373
Member
 
Registered: Feb 2004
Location: North London, England
Distribution: Ubuntu
Posts: 125

Original Poster
Rep: Reputation: 16
From Ubuntu after typing /sbin/ifconfig
eth0 Link encap : Ethernet HW addr 00:0C:6E:87:18:6C
inet addr : 192.168.0.2 Bcast :192.168.0.255
Mask : 255:255:255:0
UP BROADCAST MULTICAST MTU : 1500 Metric
RX packets : 0 errors : 0 dropped : 0 overruns : 0 fram : 0
collisions : 0 txqueulen : 1000
RX bytes : 0 (0.0b) TX bytes : 0 (0.0b)
Interupt : 185 Base address : 0xb400
ffilc
 
Old 09-26-2006, 04:03 PM   #11
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Okay, when you're plugged in, it looks like you're getting an address from your router, 192.168.0.2.

Now try ping -c 3 66.102.7.104 and see if you get a response.
 
Old 09-27-2006, 03:22 AM   #12
ffilc7373
Member
 
Registered: Feb 2004
Location: North London, England
Distribution: Ubuntu
Posts: 125

Original Poster
Rep: Reputation: 16
Good Morning, local time 09:15
In Ubuntu, from the command line
ping -c 366.102.7.104
Usage : ping [-LRUbdfnqrvVaA] [-C count] [-i interval] [-w deadline]
[-p pattern] [-s packet size] [-t ttl] [-I interval]
[-M mtu discovery hint] [-S sndbuf]
[-T timestamp option] [-Q tos] [hop1...] destination
then returns to the command line
I would read this as the ping was not sent.
ffilc
 
Old 09-27-2006, 11:26 AM   #13
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Quote:
Originally Posted by ffilc7373
ping -c 366.102.7.104
It appears you missed the space between ping -c 3 (ping 3 times) and 66.102.7.104 (the ip address of google).
 
Old 09-27-2006, 01:53 PM   #14
ffilc7373
Member
 
Registered: Feb 2004
Location: North London, England
Distribution: Ubuntu
Posts: 125

Original Poster
Rep: Reputation: 16
Yes !!, spot on, I should know better, no address con start with 366.
I have 3 packets transmitted and 3 packets received.
So Ubuntu will talk to the Router, the Router connects to the Internet in Windows but Ubuntu does not connect to the internet.
I am not sure if this is significant but you may remember that cat/etc/resolv.conf returns the massage No such file or directory Is there a file missing ?
ffilc
 
Old 09-27-2006, 01:57 PM   #15
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
That seems to be the proper file. The ping tranmitted and recieves basically means you're able to talk to the internet and the problem is a nameserver problem.

I would create the /etc/resolv.conf file (as root or sudo) and then put this inside
Code:
#/etc/resolv.conf file created Sept 27, 2006
nameserver 192.168.0.1
nameserver 194.72.0.114
Then you might have to do sudo /etc/init.d/networking restart (or maybe it's network instead of networking, I forget).
 
  


Reply



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
Slow Internet Connection when Connecting to Internet on Browsers lennysokol Linux - Networking 8 04-09-2011 04:29 PM
Internet connection timeout on Fedora Core 5 using USB connection mike1111 Linux - Networking 0 07-23-2006 09:44 PM
Nic card -> cable internet modem no internet connection zeshan_b Mandriva 21 09-26-2004 11:48 AM
My internet apps cannot detect my internet connection esthon_wood Mandriva 5 08-30-2004 08:38 PM
i can get internet connection in windows but in LINUX there is no connection ruzvay Linux - Networking 2 06-08-2004 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:28 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
Open Source Consulting | Domain Registration