LinuxQuestions.org
Register a domain and help support LQ
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 07-10-2010, 04:23 PM   #1
lukataylo
LQ Newbie
 
Registered: Feb 2008
Posts: 10

Rep: Reputation: 0
My internet wont work plz help :(


I just installed ubuntu 10.04 and my internet wont worrk properly I can go on sites like google but almost any other non majour website i cannot visit please help
 
Old 07-10-2010, 04:57 PM   #2
David2010
Member
 
Registered: May 2009
Posts: 255

Rep: Reputation: 23
Quote:
Originally Posted by lukataylo View Post
I just installed ubuntu 10.04 and my internet wont worrk properly I can go on sites like google but almost any other non majour website i cannot visit please help
We need more information than that.

Is it wireless internet or wired?

what does the command "ifconfig" say?
 
Old 07-10-2010, 05:20 PM   #3
lukataylo
LQ Newbie
 
Registered: Feb 2008
Posts: 10

Original Poster
Rep: Reputation: 0
It is qired internet using ethernet I can connect to gmail and even send emails using it, abnother computer at home using the same internet connection works perfectly and i will tell u what if config says as soo aas i re-start
 
Old 07-10-2010, 05:37 PM   #4
lukataylo
LQ Newbie
 
Registered: Feb 2008
Posts: 10

Original Poster
Rep: Reputation: 0
It is a wired ethernet internet connection but how do i do ifconfig?
 
Old 07-10-2010, 05:38 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,133

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
A bit of friendly advice: to get the best help please describe the problem completely and include all relevant configuration details (how your network is set up, exactly what sites you can't get to, etc.). Also please type in complete sentences with proper capiralization, spelling, etc. It will make it easier for people to read your posts and give you the help you need!

Given that you can connect to some sites and not others, I'm guessing it's a DNS problem though that's a bit of a shot in the dark given the limited information. Can you please post your /etc/resolv.conf? Can you check (using dig) to see if name lookups are working properly? By this I mean type in the terminal:

dig www.example.com

where www.example.com is some site you wish to get to but can't. Is dig able to resolve the name (post the output of the command here if you're not certain how to interpret it)?

edit: to do ifconfig open your terminal and type:

/sbin/ifconfig -a

Last edited by btmiller; 07-10-2010 at 05:38 PM. Reason: details on ifconfig
 
Old 07-10-2010, 06:51 PM   #6
lukataylo
LQ Newbie
 
Registered: Feb 2008
Posts: 10

Original Poster
Rep: Reputation: 0
/etc/resolv.conf fie is as follows:

# Generated by NetworkManager
nameserver 208.67.222.222
nameserver 208.67.220.220

dig www.lifehacker.com does the following

; <<>> DiG 9.7.0-P1 <<>> www.lifehacker.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14196
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.lifehacker.com. IN A

;; ANSWER SECTION:
www.lifehacker.com. 86400 IN A 69.60.7.199

;; Query time: 202 msec
;; SERVER: 208.67.222.222#53(208.67.222.222)
;; WHEN: Sun Jul 11 00:39:57 2010
;; MSG SIZE rcvd: 52


/sbin/ifconfig- a does the following:

luka@luka-desktop:~$ /sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1d:60:39:be:7e
inet addr:192.168.1.69 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21d:60ff:fe39:be7e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:664 errors:69 dropped:0 overruns:0 frame:69
TX packets:541 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:302621 (302.6 KB) TX bytes:155298 (155.2 KB)
Interrupt:19 Base address:0xdead

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:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:720 (720.0 B) TX bytes:720 (720.0 B)


It ios also notable that I have tried chagning my dns to open dns, that didnt work, I have alo tried creating a blacklist-ipv6.conf in the relevant directory and that didnt work either, and I have also tried changing the same balkclist ipv6 setting within firefox and that didntwork either

Also another computer connected to the same internet works just fine and apart from linux ubuntu i have tried some live cd's such as kubuntu and open suse and they had the same problem.

Just to remind you I am able to visit websites such as google and gmail and they are not cashed as i can perfrom search quiers and read emails, btw the ubutnu software center doesnt work eitehr coming up with the following error:

Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 116, in _process_transaction
self.update_cache()
File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 426, in update_cache
self._cache.update(progress, raiseOnError=True)
File "/usr/lib/python2.6/dist-packages/apt/deprecation.py", line 103, in deprecated_function
return func(*args, **kwds)
File "/usr/lib/python2.6/dist-packages/apt/cache.py", line 309, in update
raise LockFailedException("Failed to lock %s" % lockfile)
LockFailedException: Failed to lock /var/lib/apt/lists/lock



BTW: I should rever all thoses changes I made to the system shouldn't i?

One more thing I have a windows 7 install on teh exact same pc and it works gr8 i hope thats more info
 
Old 07-10-2010, 10:32 PM   #7
t1nm@n
Member
 
Registered: Aug 2009
Location: Trivandrum, Kerala, India.
Distribution: Lubuntu 14.04
Posts: 93
Blog Entries: 3

Rep: Reputation: 17
go sudo and type dhclient in terminal and see the output
 
Old 07-10-2010, 10:35 PM   #8
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 866

Rep: Reputation: 110Reputation: 110
If you are on a LAN and I am assumming your using a DHCP server. But just incase you are configuring all ip addresses make sure you don't have a duplicate ip address on your network
 
Old 07-10-2010, 10:46 PM   #9
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
Quote:
Originally Posted by lukataylo View Post
It is a wired ethernet internet connection but how do i do ifconfig?
Open up a terminal and type:

Code:
sudo ifconfig eth0 # or whatever your ethernet device is
Post the output of that command please.
 
Old 07-10-2010, 10:53 PM   #10
t1nm@n
Member
 
Registered: Aug 2009
Location: Trivandrum, Kerala, India.
Distribution: Lubuntu 14.04
Posts: 93
Blog Entries: 3

Rep: Reputation: 17
well try these commands

Quote:
sudo su
Quote:
ifconfig -a
see the interface in ur previous post i saw you have eth0
Quote:
ifconfig eth0 down
Quote:
ifconfig eth0 up
Quote:
dhclient
or if you have installed the oump utility try pump eth0 to give it an ip address

@jmc1988 hey can you point out how you can manually assign an ip adress to a machine..i'm trying that in vmware with xp and bt3
 
Old 07-10-2010, 11:18 PM   #11
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,133

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Judging from the OP's ifconfig output, it seems he already has an IP address (via DHCP or otherwise) and is able to resolve the hostname www.lifehacker.com.

If you put the IP for lifehacker.com (69.60.7.199) according to youre post) in your browser does it display the lifehacker.com page? If not something is blocking the traffic. Do you have a firewall on the machine? Is there a firewall on your local network. Since the PC is dual boot and the Windows half is working fine maybe there's a firewall running in Linux that's blocking the traffic. Can you try to do a traceroute to that IP address (use the traceroute command in Linux and tracert in Windows) to see if you can see where the traffic is being blocked?
 
Old 07-11-2010, 05:18 AM   #12
lukataylo
LQ Newbie
 
Registered: Feb 2008
Posts: 10

Original Poster
Rep: Reputation: 0
sudo ifconfig et0 # produces the following:

luka@luka-desktop:~$ sudo ifconfig eth0 #
[sudo] password for luka:
eth0 Link encap:Ethernet HWaddr 00:1d:60:39:be:7e
inet addr:192.168.1.69 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21d:60ff:fe39:be7e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1352 errors:31 dropped:0 overruns:0 frame:31
TX packets:1083 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1287540 (1.2 MB) TX bytes:237318 (237.3 KB)
Interrupt:19 Base address:0xdead


Sudo su and then ifconfig -a does the following:

root@luka-desktop:/home/luka# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1d:60:39:be:7e
inet addr:192.168.1.69 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21d:60ff:fe39:be7e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1428 errors:73 dropped:0 overruns:0 frame:73
TX packets:1153 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1299730 (1.2 MB) TX bytes:254471 (254.4 KB)
Interrupt:19 Base address:0xdead

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:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:720 (720.0 B) TX bytes:720 (720.0 B)

if config eth0 down/up dont seem to be doing anything:

root@luka-desktop:/home/luka# ifconfig eth0 down
root@luka-desktop:/home/luka# ifconfig eth0 up



dhclient does the following:

Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:1d:60:39:be:7e
Sending on LPF/eth0/00:1d:60:39:be:7e
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 192.168.1.69 from 192.168.1.254
DHCPREQUEST of 192.168.1.69 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.69 from 192.168.1.254
bound to 192.168.1.69 -- renewal in 34467 seconds.

AQnd no putting 69.60.7.199 instead of the lifehacker.com page doesnt display it either

When i tray and traceroute the ip adress this is what coems up:

The program 'traceroute' can be found in the following packages:
* traceroute
* traceroute-nanog
Try: apt-get install <selected package>

On other posts for people with a similar problem it has been suggested that it is an MTU issue:When I try ping -s 32 www.google.com this is what happens:

root@luka-desktop:/home/luka# ping-s 32 www.google.com
No command 'ping-s' found, did you mean:
Command 'pingus' from package 'pingus' (universe)
ping-s: command not found

BTW thanks all for helping me out like this and I know I am a bit of a noob I just wish I could help more
 
Old 07-11-2010, 02:08 PM   #13
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,133

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
It's odd that you're getting frame errors on eth0 (although there's not many of them). You can set your MTU down. Try "ifconfig eth0 mtu 1500" to make sure it's set to 1500 (the standard MTU on most networks. If that doesn't work try setting it lower, like to 1000.
 
  


Reply

Tags
internet


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
My internet wont work vicky_me Linux - Networking 4 09-05-2006 03:02 AM
why wont my internet work? jonny_fun Linux - Networking 3 05-01-2006 12:59 PM
Internet WONT work! :-( Damien295x Linux - General 8 11-01-2005 09:37 AM
why wont my internet work? jimthing2001 Linux - General 2 01-06-2004 08:14 AM
mouse wont work - HELP PLZ - Baphomay Linux - Newbie 3 08-26-2001 03:59 PM


All times are GMT -5. The time now is 10:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration