UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
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).
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
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.
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
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.
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
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
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
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.