Quote:
root@ubuntu:/media/dvdrecorder# route -n
|
If you see a line like this, it's practical to know what the prompt is and what the command:
Everything before the "#" is the prompt, normally the "#" is used to indicate that you're working under the user "root" (so you must be extra careful). Normal users normally come with a dollar sign ($) as the end of their prompt.
The prompt you quoted said "user root AT machine called ubuntu whose current directory is /media/dvdrecorder" and then he runs the command "route -n".
This command you can run by yourself (as root) from any directory (given that the route command is in your path, which it should be).
The quote you took gave the command "route -n" which resulted in the output that was below it: (I added spaces for readability)
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ra0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 ra0
Here the default route ran to the host 192.168.0.1, which could've resulted in the wrong interface being selected (probably the ethernet card) (ra0 doesn't really ring a bell what kind of device this is, maybe wireless) instead of the route that should become default.
Think of routes just being those signs near crossroads you sometimes can see:
You get there and you see a sign reading:
"<-- Denver | Other destinations-->"
If you have to to go Denver you should turn left, if you need to go
anywhere else you go to the right. The latter is the default route, and if it points you to the wrong direction the "traffic" gets lost. (Computers really are dumb things that do exactly as you tell them)
Now if your default route changes, because you just built a connecting road to the outside world (so you actually can get there) (read: you just dialed in) the signs for your computer to go to "the other destinations" has to be replaced, by removing the old one with a new one:
Code:
route del -net 0.0.0.0 netmask 0.0.0.0 dev ra0
or
Code:
route del 0.0.0.0/0
should work as well.
(it's been a long time ago that I had to manually set routes, am not 100% sure if you could do it easily this way by setting the device to go to by default; Otherwise add the default route with the IP number your ISP gave you: route add default aaa.bbb.ccc.ddd)
However since you could get something from the internet (your wget for the apt-get) I don't think it's a kernel routing issue; But, to be honest: it's worth trying ;-)
Question: does Konqueror allow you to connect to google or do both Firefox and Konqueror give issues?
If Konqueror can browse the internet and Firefox won't something is wrong with Firefox and we're searching in the complete wrong direction of issues. If both won't connect, it may well be possible something is odd with the connection (routing table, firewall, proxy, DNS etc)