Your description isn't clear enough (for me, that is) but some things you can try:
- is your connection on? using
ifconfig see if you have
ppp0 connection (if you're using dialup or pppoe-DSL):
you should then have a ppp0 (or if you just have a DSL that never asks passwords i.e. is always "on", and connected to your primary ethernet card, eth0) which should show your internet ip address. Check if it's ok; if it's not, your connection needs to be first configured and established (more about this later on).
- if your connection is ok, i.e. you have an ip, try to ping an ip address rather than domainname (ping x.x.x.x rather than ping google.com); if the ping gives replies, the problem is your DHCP isn't ok (or manually set) and DNS servers are missing.
- if you can't ping those either, but you have a connection (ppp link is up, for example), try this (I still haven't found out what's wrong with this): close the connection, disable your device where the connection is coming from (usually eth0 on DSL connections), then restart the connection. For some reason if the connection is established when your machine boots, configuring the rest of the ethernet stuff might fuss your (dhcp) settings. For example, for a DSL pppoe connection configured trough
pppoeconf or
adsl-config, either of these:
Code:
poff -a && ifconfig eth0 down && pon dsl-provider
/sbin/adsl-stop && /sbin/ifconfig eth0 down && /sbin/adsl-start
the latter one is for distributions where pppoe-start is called adsl-start (try pppoe-start instead of pon too, if it's not found).
If you need to configure a connection, you can use several tools. For DSL (pppoe) I use
pppoeconf (adsl-setup), which is text based tool and needs to be run once. After that 'pon dsl-provider' and 'poff' work. For dialups, either one of those graphical tools like Kppp or then something like wvdial.