LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   How to set static IP in Suse 10 (https://www.linuxquestions.org/questions/suse-opensuse-60/how-to-set-static-ip-in-suse-10-a-414651/)

leupi 02-12-2006 04:16 PM

How to set static IP in Suse 10
 
I need to set a static IP in Suse 10 and am having a bit of trouble. I set the IP in Yast but I then lose that abiltity to go online. I go to Yast > Network devices > network card. I edit the card and give it a static IP and that works fine. I then go to 'Host Name and Name Server' and add the DNS info (151.196.0.38, AND .39) that I get from the router and add it to 'Name Server' 1 and 2. What should I put in the 'Name Search' 1 and 2 boxes?

Whatever I am doing I am doing wrong as I can not go online once I am done. I know that the info is right as I have a WinXP machine set up with a static IP and that one works fine. Thanks.

Todd

leandean 02-12-2006 11:26 PM

Name search is the name of the domain your nameservers are on: xxxxxxxx.com. If, and I assume you are by what you've supplied, you are going to the internet through a router, you give the 'route' the router uses to connect to the outside world: 192.168.3.1 or some such.

blahpony 02-12-2006 11:53 PM

Under the router settings in YaST, put in your default gateway. This will be the internal IP of your router. Most likely 192.168.x.x or similiar.

Agentvenom 02-13-2006 10:28 PM

You can always add your DNS the old fashioned way:

Code:

route add default gw 192.168.0.1
Of course to execute the command you need to be logged in as root. Just substitute whatever gateway you want to add for the 192.168.0.1 (I chose it because it's my router) :)

leupi 02-19-2006 09:50 PM

So under 'Name Server 1' and 'Name Server 2' I would put 151.196.0.38 and 151.196.0.39 which I got from the router (primary and secondary DNS).

As far as 'Domain Search 1' and 'Domain Search 2' I need the name of the domain that my nameservers are on, this part has me a bit lost. I am using Verizon DSL and you use the form xxxxxxxxxx.com. Can I assume that that would be verizon.net? I am not sure how to handle that part.

Thanks.

Todd


All times are GMT -5. The time now is 05:42 PM.