Can't figure out why I can't connect to the internet

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Can't figure out why I can't connect to the internet

Post by Luke »

On my laptop, I had my wireless and wired connections set up just fine. Then yesterday it just stopped connecting. It still says its connected and when I unplug the router, it says it's not connected any more. It detects my wireless network fine and it says it connects to that as well, but when I open up firefox, I can't access the internet. This is on ubuntu edgy. Does anybody know what the issue may be or where I may be able to dig up anwsers?

<---- linux n00b :oops:
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

i remember when i first loaded edgy, there was the little blinky ethernet icon on the dealy and i clicked it and then i clicked the drop-down box and select eth0 rather than loopback and it worked fine after that.

all i can think of :/
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

tried that already. No worky. I haven't even been able to research the problem because I have no other computer except at work, so I went all weekend w/out using the internet 8O
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

what does ifconfig report? i.e. if you have an ip address to your router (and can ping it) then you should call your isp :)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I agree, run the following then copy & paste it here.

Code: Select all

ifconfig
iwconfig
cat /etc/resolv.conf
route -n
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

I have to do this at my parents house (which is where I am) because I have no other computer to use to connect to devnet at my house. This is the results of the commands you asked me to post

Code: Select all

luke@luke-laptop:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0F:1F:C9:3F:81  
          inet addr:169.254.61.201  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::20f:1fff:fec9:3f81/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:323 errors:0 dropped:0 overruns:0 frame:0
          TX packets:89 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:23014 (22.4 KiB)  TX bytes:8727 (8.5 KiB)
          Interrupt:11 

eth1      Link encap:Ethernet  HWaddr 00:0E:35:74:95:92  
          inet6 addr: fe80::20e:35ff:fe74:9592/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:124 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2049 errors:0 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:5 Base address:0xa000 Memory:fafef000-fafeffff 

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:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:100 (100.0 b)  TX bytes:100 (100.0 b)

luke@luke-laptop:~$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      unassociated  ESSID:off/any  
          Mode:Managed  Channel=0  Access Point: Not-Associated   
          Bit Rate:0 kb/s   Tx-Power=20 dBm   Sensitivity=8/0  
          Retry limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          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

sit0      no wireless extensions.

luke@luke-laptop:~$ cat /etc/resolv.conf
search MC2Design.local
nameserver 192.168.15.1
luke@luke-laptop:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
luke@luke-laptop:~$ 
This just makes me realize how little I really know about this OS. I need to buy a book :(
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

You've not got the route configured, nor IP assigned to wireless.

run (as root, or sudo):

Code: Select all

# ifconfig eth1 192.168.0.2
# route add -net 192.168.0.2 netmask 255.255.255.0 gw 192.168.0.1 dev eth1
where 192.168.0.2 is your machines IP, and 192.168.0.1 is your routers internal IP.


EDIT: The above is for static IP, for DHCP you'd need a bit more jazz but I can't remember it :P
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

I am still pretty green when it comes to networking. I never got too into it and I really need to. So forgive me, but could you answer some dummy questions for me?

I'm the only machine on the network and I connect via wireless. My machine will have it's own IP? I know my router has an IP, but I don't remember what it is. How do I find out? :oops:
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

I'm a wireless noob. However - you say that it 'connects' when you plug it in, right? Just not to the www?

Were you "connected" at the time of running the commands d11wtq posted? If so, try the route command again, but without the -n switch. If your router is connected, you may see it by hostname. (-n is the flag to show ip, not hostname if it's set.)

I'd also hazard a guess that:

192.168.15.1

is your router IP.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

get ready to laugh at ninja... :oops:

My DSL modem was unplugged

/me hides :roll:
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

BAHAHAHAHAHAHAHAHAHAHAHAHA

don't worry ive torn my hair out for an hour and a half just to call my isp and find out that my routers power was unplugged
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

The Ninja Space Goat wrote:get ready to laugh at ninja... :oops:

My DSL modem was unplugged

/me hides :roll:
... ... ... :P
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

:lol:
Post Reply