Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-30-2004, 10:37 PM   #1
Registered: Nov 2003
Location: Quebec City Canada
Distribution: SuSE 9.1 Pro.
Posts: 30

Rep: Reputation: 15
Unhappy SuSE 9.0 and 9.2 Static IP Setup ?

Hi every body!

I have 2 computer, one with SuSE 9.0 and the other one SuSE 9.2.

I have set up the 2 for DHCP and i use a router/hub. All work fine. (Internet, lan)

I want to use static IP instead of DHCP so that if i use my laptop unplug and then want to go on the net, i wont have to reboot.

I tried to set it up. The lan is working but it does not access the net. It tell me that it dose not find the hostname. I think that it is a question of DNS setup. I tried to fix the problem but with no success. So i set it back to DHCP until i find a solution.

Can anyone help me and tell me how to set the thing to work in static IP ?

Thank you in advance for your reply.

Old 12-30-2004, 10:41 PM   #2
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
edit /etc/resolv.conf file as root
add nameservers statements
nameserver x.x.x.x
nameserver y.y.y.y

Most probably you will need to put the IP of your router in there.
Old 12-30-2004, 10:49 PM   #3
Registered: Nov 2003
Location: Quebec City Canada
Distribution: SuSE 9.1 Pro.
Posts: 30

Original Poster
Rep: Reputation: 15
What do you meen by the x.x.x.x and the y.y.y.y ?

Do you meen that i should replace it by my provider DNS IP adress, primiary for x and secondary for y ?

How do i put the ip for my router in that file, can you give me an example?

Here is the file contant:

# Modified_by: dhcpcd
# Backup: /etc/
# Process: dhcpcd
# Process_id: 8584
# Script: /sbin/modify_resolvconf
# Saveto:
# Info: This is a temporary resolv.conf created by service dhcpcd.
# The previous file has been saved and will be restored later.
# If you don't like your resolv.conf to be changed, you
# variables are placed in /etc/sysconfig/network/config.
# You can also configure service dhcpcd not to modify it.
# If you don't like dhcpcd to change your nameserver
# settings
# then either set DHCLIENT_MODIFY_RESOLV_CONF=no
# in /etc/sysconfig/network/dhcp, or
# /etc/sysconfig/network/config or (manually) use dhcpcd
# with -R. If you only want to keep your searchlist, set
# DHCLIENT_KEEP_SEARCHLIST=yes in /etc/sysconfig/network/dhcp or
# (manually) use the -K option.
search @ @

that IP is the lan ip adress for my router that i use to configure it using a web browser.



Last edited by frank-01; 12-30-2004 at 10:58 PM.
Old 12-31-2004, 12:51 PM   #4
LQ Newbie
Registered: Dec 2004
Location: Somewhere in Cyberspace
Distribution: Fedora. openSUSE. Ubuntu. BackTrack
Posts: 10

Rep: Reputation: 0
I believe neo77777 means you should enter your primary and secondary nameserver values in the Domain Site sector of the /etc/resolv.conf flie in your SuSE box.

However YaST2 configuration Utility can provide a more user friendly interface to configure static IP's. Power Up YaST2(as root) and check out the network device module. Also make sure you set up your default gateway properly.
Old 12-31-2004, 02:11 PM   #5
Registered: Nov 2003
Location: Quebec City Canada
Distribution: SuSE 9.1 Pro.
Posts: 30

Original Poster
Rep: Reputation: 15
I have tried that, nothing i do work.

I have tried to change the file manually with no success.

I have tried YaST2 with no success ether.

I have tried to isolate the problem by trying to access the net using:
but it did not work, it tell's me an error message.

An error occurred while loading
Could not connect to host

that address work when i am with DHCP.

so the problem is not with DNS.

I am at lost.

One thing i think is that it has someting to do with setting my computer to work with my router.

YaST2 set it up right in DHCP mode but not in static IP



Last edited by frank-01; 12-31-2004 at 03:03 PM.
Old 01-01-2005, 06:28 PM   #6
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
In YaST .. Network Devices .. Network Card .. Change configured devices .. Edit .. change static IP address on next screen, click on Host name and nameserver button and enter your ISPs nameservers in Nameserver 1 and 2
click Back .. click Routing and enter your gateway address in Default Gateway box (presumably

That should work fine.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setup the static ip address hansi umayangan SUSE / openSUSE 1 04-04-2005 02:54 AM
suse and static ip setup? caperneoignis Linux - Networking 1 07-27-2004 11:23 AM
SuSE 9.1 Pro, Static IP setup and SAMBA issues enygma Linux - Networking 2 07-22-2004 06:58 PM
Got debian installed!! - Need to setup static ip now?? trey85stang Debian 5 04-10-2004 05:24 PM
How to setup static IP on RH8 RevDavis Linux - Networking 2 02-23-2004 04:14 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration