LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Linux internet using adsl router (https://www.linuxquestions.org/questions/linux-networking-3/linux-internet-using-adsl-router-287844/)

Wozl 02-08-2005 04:53 PM

Linux internet using adsl router
 
Hii,

Iv'e setup my network to my adsl router and everything is fine, i can ping my windows pc and my router, i have acces to the files on my windows pc etc.
But now i want to setup my internet connection...
It's working fine on windows with the adsl router, but i dont know how i have to connect to the internet on the linux box. (suse)

Ive opened the webbrowser, cant find the page. Do i have to setup the internet browser or...

I've searched on the forum, but there are so many threads :p

Can you guys help me :)

michaelk 02-08-2005 04:59 PM

Is the SuSE box configured with a static IP or is it using DHCP?

Set the SuSE gateway address to the router's internal IP address.
Make sure that /etc/resolv.conf contains nameserver info or if using a static IP you will need to manually enter the data.

Wozl 02-08-2005 05:37 PM

its dhcp
how do i have to set the gateway? bacause i already tried some thing with the gateway but no result

i can connect to the router in my webbrowser

thx

tredegar 02-09-2005 04:08 AM

Wozl,

Try ( as root ) the following commands:

ifdown eth0
dhclient eth0


That should bring down eth0, in case it was already trying to do something, then ask your router for an IP address. Then you should be set. If so, you may want to put those commands in /etc/rc.whatever so it always starts at boot.
Your /etc/resolv.conf should look like:

nameserver IP.of.your.gateway (the router's address that you put in your browser to set it up, mine is 10.0.0.2)

Hope this helps

Wozl 02-09-2005 05:01 AM

THX!!


All times are GMT -5. The time now is 01:38 AM.