LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Closed Thread
  Search this Thread
Old 11-26-2007, 11:14 PM   #1
reefa
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Rep: Reputation: 0
openSUSE static IP does not work, but DHCP does


Hello, I have been having problems connecting to the internet with the static IP option. I configure all my network settings through YaST under "Network Card Settings". Whenever I use the static IP option my internet connection fails, but I can ping my router on 192.168.1.1 and it responds. I can also ping all my computers on the local network, but when I ping yahoo.com or google.com it says "ping: unknown host yahoo.com". So I am forced to use the DHCP settings to get the internet working again. I do not wish to use this, because I want to take advantage of the various different static IPs I have. However, the static IP option worked under windows, but has failed to work with openSUSE 10.3. Whenever I setup static IP on my FreeBSD box it worked fine, so I know it's not any problems related to my linksys router.
I have even tried entering in the IPs manually with:
ifconfig eth0 192.168.1.162 broadcast 192.168.1.1 netmask 255.255.255.0 but I still get the same result. I have also tried editing /etc/resolv.conf and entering in the nameservers, but no luck. I even rebooted the computer after entering in the ifconfig for static IP.

I would appreciate it if someone could help me resolve this issue.
Thanks,

Darvish
 
Old 11-27-2007, 05:03 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242
I'm not completely sure but I think you'll need to specify the DNS = router address. That was my problem with debian, until I modified the file resolv.conf and it worked. I don't know how to do it in Suse. Try to find out, if not you can wait for other responses
hth
 
Old 11-27-2007, 05:11 AM   #3
rupertwh
Member
 
Registered: Sep 2006
Location: Munich, Germany
Distribution: Debian / Ubuntu
Posts: 297

Rep: Reputation: 49
Did you define a default gateway? If not, you'll only be able to communicate within your local net.

If it's not that, you'll first have to find out if it's a name resolution problem or a routing problem (or both). Try pinging an outside host by ip.
 
Old 11-28-2007, 07:51 AM   #4
lambchops468
Member
 
Registered: Mar 2007
Location: New Jersey, USA
Distribution: Archlinux
Posts: 165

Rep: Reputation: 30
Quote:
Originally Posted by rupertwh View Post
Did you define a default gateway? If not, you'll only be able to communicate within your local net.

If it's not that, you'll first have to find out if it's a name resolution problem or a routing problem (or both). Try pinging an outside host by ip.
Yeah...when you open the yast applet for network cards, the tabs on top are the ones u wanna hit. Routing is where you enter the default gateway and DNS is where you have to enter your name servers, which is probably your router...

unless your router isn't set up that way...

if entering your router's ip doesn't work, use OPENDNS or your ISP...

Opendns "Our nameservers are 208.67.222.222 and 208.67.220.220."
 
Old 11-28-2007, 07:57 PM   #5
reefa
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Original Poster
Rep: Reputation: 0
I tried adding my nameservers to the /etc/resolv.conf file and I also added the default gw router. I'm unable to ping anything outside the network, it gives me "ping: unknown host yahoo.com"
but I can ping my local network(including the router).

I also tried using the YaST network configuration under routing tab, I added the following router table:

Destination: 192.168.1.162(my IP)
Gateway: 192.168.1.1(my router IP)
Netmask: 255.255.255.0

I pretty sure I'm entering in the right stuff there, does anyone have any other ideas? I appreciate the help, thanks.

Last edited by reefa; 11-28-2007 at 07:59 PM.
 
Old 11-28-2007, 08:09 PM   #6
reefa
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Original Poster
Rep: Reputation: 0
Well it seems to be working for some reason now that I added the nameservers again to /etc/resolv.conf, YaST must of modified /etc/resolv.conf so I had to add the NS to /etc/resolv.conf again,
thanks for the help guys.
 
Old 11-28-2007, 11:47 PM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
Old 12-16-2007, 11:35 AM   #8
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Continue the discussion here.
 
  


Closed Thread


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
static ip doesn't work but dhcp does peru Linux - Networking 2 09-18-2006 05:07 PM
Static won't work - DHCP does derajer Slackware 6 12-15-2005 02:05 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
RH9 / DHCP Doesn't Work / Static Does mfriedkin Linux - Wireless Networking 1 02-06-2004 02:18 PM
static ip machine attached to dhcp router? will this work? herron Linux - Networking 7 04-16-2003 06:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:16 AM.

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