LinuxQuestions.org
Help answer threads with 0 replies.
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 04-28-2009, 05:17 PM   #1
thepugslo
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Rep: Reputation: 0
cannot connect to internet


I installed debian 501 yesterday, used a netints and it worked fine. When install finished everything booted up fine but i get no internet.

when i hover over the network monitor it says i have a self-assigned address and i can only get to the debian homepage which i believed is cached

i am obviously new to linux and any help would be greatly appreciated
 
Old 04-28-2009, 06:31 PM   #2
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Rep: Reputation: 49
Can you please post the output from this command (run as root):
Code:
ifconfig -a
 
Old 04-28-2009, 07:44 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
And.....what is your internet connection?---eg DSL, Cable, etc.

Do you have a router?

Open a terminal and enter:
ping www.google.com

If no reply, then try:
ping 74.125.155.104

If the second one works, and the first does not, then you have a DNS issue. Depending on your setup, you may get DNS server addresses using DHCP, or you may have to enter them manually.
 
Old 04-29-2009, 12:50 AM   #4
nirmalya2006
LQ Newbie
 
Registered: Apr 2009
Location: Kolkata,India
Distribution: Fedora 10
Posts: 23

Rep: Reputation: 16
I had the same problems with Fedora 10. But now it is solved. May be you would find your solutions in the following link.The link connects you to the solutions that I got from this forum. Hope it helps

http://www.linuxquestions.org/questi...ternet-720203/

Nirmalya.
 
Old 04-29-2009, 02:35 PM   #5
thepugslo
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
to janhe:

eth0 Link encap:Ethernet HWaddr 00:1b:38:68:d2:ee
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:39 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12918 (12.6 KiB) TX bytes:1576 (1.5 KiB)
Interrupt:252 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1616 (1.5 KiB) TX bytes:1616 (1.5 KiB)

wlan0 Link encap:Ethernet HWaddr 00:1e:4c:23:53:4c
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)

wmaster0 Link encap:UNSPEC HWaddr 00-1E-4C-23-53-4C-00-00-00-00-00-00-00-00-00-00
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)


to pix:
cable modem thru wireless router(wired, not even worried about wireless at the moment, thats next har har) but i have plugged laptop directly into modem and still have no connection

ping www.google.com and i got unknown host www.google.com
ping 74.125.155.104 and i got network is unreachable

thing is i had my roomate who got me into linux to work with the laptop, i dont know what its called but the numbers are 255.255.255.255
when it should be 255.255.255.0
could that be the problem?
 
Old 04-29-2009, 04:01 PM   #6
thepugslo
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
nirmalya2006, i tried that link and only possiblilty would be

then you need to add the DNS from your provider in
/etc/resolv.conf

nameserver xxx.xxx.xxx

If you don't know the DNS from your provider, you can use openDNS

nameserver 208.67.222.222
nameserver 208.67.220.220

but how do i add to that folder? also there is an existing folder... update-lib.d/avahi-daemon...
 
Old 04-29-2009, 05:20 PM   #7
joeseph0404
LQ Newbie
 
Registered: Apr 2009
Location: St. Louis, MO
Distribution: Ubuntu of any kind :)
Posts: 17

Rep: Reputation: 1
I may be incorrect, but from the looks of the ifconfig file, you may not even have an ip address. The command listed here will tell the network card to go out and get an ip address from the router or DSL modem.

If you have a wired connection, run as root:

Code:
dhclient eth0
or if it is wireless, use (as root):

Code:
dhclient wlan0
Hope this works for ya!

Last edited by joeseph0404; 04-29-2009 at 05:24 PM.
 
Old 04-29-2009, 05:21 PM   #8
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Rep: Reputation: 49
The problem is you didn't get an IP address from the router.
You should check the contents of /etc/network/interfaces
If you post the content of /etc/network/interfaces, please put [ code ] and [ / code ] tags around it (leave out the spaces) You can do that by clicking go advanced and using the # button.

This is the reference I'm using: http://wiki.debian.org/DebianReference/Network

It is very extended, maybe too much for a clueless newbie (not saying you are clueless). It does say your installation should have set up the network connection correctly. It also says what /etc/network/interfaces should contain, somewhere.

EDIT: please say so if you can connect to the internet after you run the command joeseph0404 gave you. Put also post the contents of /etc/network/interfaces. Running dhclient every time you reboot isn't much of a solution IMHO

Last edited by janhe; 04-29-2009 at 05:25 PM.
 
Old 04-29-2009, 05:56 PM   #9
joeseph0404
LQ Newbie
 
Registered: Apr 2009
Location: St. Louis, MO
Distribution: Ubuntu of any kind :)
Posts: 17

Rep: Reputation: 1
I second what janhe says. The command I gave you is more of a temporary test to see if dhcp will work, but as janhe said, editing the interfaces file is a more permanent solution.
 
Old 04-30-2009, 12:01 AM   #10
thepugslo
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
ok well no good, hes what i got:


dhclient eth0:

thepugslo@debian:~$ sudo dhclient eth0
[sudo] password for thepugslo:
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/eth0/00:1b:38:68:d2:ee
Sending on LPF/eth0/00:1b:38:68:d2:ee
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
thepugslo@debian:~$

dhclient wlan0:

thepugslo@debian:~$ sudo dhclient wlan0
There is already a pid file /var/run/dhclient.pid with pid 3659
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:1e:4c:23:53:4c
Sending on LPF/wlan0/00:1e:4c:23:53:4c
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
thepugslo@debian:~$

and as for the /etc/network/interface:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
iface eth0 inet dhcp

auto eth0

so, what now, still no internet, i attempted to reinstall debian and when i got to the netints part of it auto-config of the inst it couldnt get wired nor wireless, now im more confused than before
 
Old 04-30-2009, 03:20 AM   #11
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Rep: Reputation: 49
very strange...
can you post the output from the command iwconfig?
 
Old 04-30-2009, 07:42 AM   #12
thepugslo
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
thepugslo@debian:~$ sudo iwconfig
[sudo] password for thepugslo:
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11 ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=20 dBm
Retry min limit:7 RTS thrff Fragment thr=2352 B
Encryption keyff
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

thepugslo@debian:~$
 
Old 05-01-2009, 12:13 AM   #13
thepugslo
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
SUCCESS!!!
i had to reinstall debian and it successfully worked and im actually typing this on the laptop.

Thank you all for the help, hopefully everything goes well with the wireless connection, mabey ill see you in the help wireless isnt working lol

pugslo
 
  


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
Able to connect to default Gateway, Unable to connect to internet Dumb.Coder Linux - Newbie 11 04-14-2009 05:22 AM
Cant connect to Lan but can connect to the internet gprecht Linux - Newbie 2 02-11-2009 09:29 PM
connect to internet trough wireless others connect to me with lan Amir Menesy Linux - Wireless Networking 1 11-13-2007 09:28 PM
how i connect (bridging) two internet connection and how to use that both the connect karthi26 Linux - Newbie 1 08-26-2007 04:10 AM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 08:32 PM


All times are GMT -5. The time now is 01:07 AM.

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