LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   My internet wont work plz help :( (http://www.linuxquestions.org/questions/linux-newbie-8/my-internet-wont-work-plz-help-819131/)

lukataylo 07-10-2010 04:23 PM

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

David2010 07-10-2010 04:57 PM

Quote:

Originally Posted by lukataylo (Post 4029430)
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?

lukataylo 07-10-2010 05:20 PM

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

lukataylo 07-10-2010 05:37 PM

It is a wired ethernet internet connection but how do i do ifconfig?

btmiller 07-10-2010 05:38 PM

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

lukataylo 07-10-2010 06:51 PM

/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

t1nm@n 07-10-2010 10:32 PM

go sudo and type dhclient in terminal and see the output

jmc1987 07-10-2010 10:35 PM

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

Kenny_Strawn 07-10-2010 10:46 PM

Quote:

Originally Posted by lukataylo (Post 4029465)
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.

t1nm@n 07-10-2010 10:53 PM

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

btmiller 07-10-2010 11:18 PM

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?

lukataylo 07-11-2010 05:18 AM

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

btmiller 07-11-2010 02:08 PM

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.


All times are GMT -5. The time now is 10:53 PM.