internet stopped working on Suse - ifconfig output seems ok
I have a cable connection through my network card. It uses dhcp to get the ip and everything.
Until 2 days ago, it was working fine. 2 days ago, I installed apache, set up a http server to send some files to some friends, and it was working fine. Since yesterday, it doesn't work. Ifconfig correctly displays my ip, gateway and everything else. But, it doesn't work. Not even ping (it says hostname not found). I played around with yast, and my network card seems to be set ok. I couldn't solve anything (except I somehow managed to make it use about 800Mb of RAM, and my 512Mb computer was almost unusable...). It works fine on both Slackware and windoze... Don't know what to do at this point... I've been getting lots of errors lately on Suse (a 2 year old install is too much for any OS)... Thanks for reading. Any suggestions/info is welcomed. |
Could you post the contents of /etc/resolv.conf? Try to ping the modem, does it respond?
|
Thanks for the idea. I got it working.
resolv.conf was empty... somehow the name servers weren't assigned through dhcp, although it was configured to do so (theoretically, but yast is not to be trusted). I manually entered the nameservers ip that slackware uses and it works. But still, why weren't they assigned through dhcp as they should have been? Any ideas anyone? |
Check if you have dhcpcd running with:
Code:
pidof dhcpcd |
thanks for the reply.
yup, dhcpcd is running... how can I check the configuration of dhcp and firewall? (except with yast, it says everything's ok...) |
Make sure that you allow DHCP client access at the firewall settings in yast. Check whether DHCLIENT_MODIFY_RESOLV_CONF="yes" in
/etc/sysconfig/network/dhcp and MODIFY_RESOLV_CONF_DYNAMICALLY="yes" in /etc/sysconfig/network/config. Also, please post the output of Code:
ps xa| grep dhcpcd I assume that your dhcp server is configured properly (i.e. any device you connect to it gets a dhcp lease with the correct settings). |
Thank you.
That was it. Yast modified only the dhcp file, not the config one, which had that parameter's value set to "no". Suse's Yast disappoints me more and more every day... |
All times are GMT -5. The time now is 08:56 AM. |