LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   internet stopped working on Suse - ifconfig output seems ok (https://www.linuxquestions.org/questions/linux-networking-3/internet-stopped-working-on-suse-ifconfig-output-seems-ok-542118/)

Valkyrie_of_valhalla 03-31-2007 05:43 AM

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.

auxsvr 03-31-2007 07:03 PM

Could you post the contents of /etc/resolv.conf? Try to ping the modem, does it respond?

Valkyrie_of_valhalla 04-01-2007 11:44 AM

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?

auxsvr 04-02-2007 11:03 AM

Check if you have dhcpcd running with:
Code:

pidof dhcpcd
, if not, something is wrong with the network scripts (try rcnetwork restart), if it is running, maybe your firewall or dhcp server configuration is at fault.

Valkyrie_of_valhalla 04-02-2007 01:02 PM

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...)

auxsvr 04-03-2007 06:44 AM

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
. By the way, how do you do NAT on the modem with an IP address assigned by DHCP? It can only be done with a static IP address, so check the NIC configuration for a static address and set it to automatic. You will still be able to use your web server if the DHCP server on the modem is configured to give your NIC a specific IP address.

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).

Valkyrie_of_valhalla 04-06-2007 02:40 AM

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.