LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

Rep: Reputation: 0
openSUSE 10.3 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.255 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

Last edited by reefa; 11-27-2007 at 04:40 PM.
 
Old 11-26-2007, 11:34 PM   #2
reefa
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Original Poster
Rep: Reputation: 0
ah i figured it out

looks like i needed to add a gateway, with:
route add default gw 192.168.1.1
------------------------------------
well not exactly, it still wont work in YaST under static ip settings, but if you put it on DHCP, you can then manually change IPs with ifconfig and then you have to add the default gw again with route, so I'm still trying to figure this out. I'm pretty confused right now, so if anyone has any suggestion on what to do I'd appreciate it.

Last edited by reefa; 11-26-2007 at 11:59 PM.
 
Old 11-27-2007, 05:39 AM   #3
framp
Member
 
Registered: Apr 2003
Location: Next to Stuttgart, Germany
Distribution: Debian, Mint, Raspbian
Posts: 131
Blog Entries: 5

Rep: Reputation: 27
Check your /etc/resolv.conf. It should have a nameserver line with a valid nameserver address.
 
Old 11-28-2007, 08:02 PM   #4
reefa
LQ Newbie
 
Registered: Mar 2005
Posts: 20

Original Poster
Rep: Reputation: 0
Yes, I did add the nameservers under /etc/resolv.conf but I'm still having problems pinging the outside network. I appreciate the help, thanks.
 
Old 11-28-2007, 08:09 PM   #5
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 12-16-2007, 05:47 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
This thread started as a duplicate post at this closed thread, for those who would like to see the entire set of replies.

Mods: When you close a thread because it started as a duplicate post, please consider providing cross reference links in both affected threads. Not for the sake of the OP's, the rule breaking duplicate posters -- they deserve some kind of punishment, but for the sake of innocents like those who will benefit from LQ being the archive Jeremy wants it to be. Even better, if there have been a significant number of posts in the thread to be closed, consider merging the 2 threads, again for the sake of the usefulness of the site.


BTW, OP, you don't provide a model ID for your Linksys, is it one of those that can assign fixed IP's based on MAC addresses? In many cases that is preferable to true static IP's on a LAN.
 
  


Reply



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
openSUSE static IP does not work, but DHCP does reefa Linux - Hardware 7 12-16-2007 11:35 AM
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
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 - Networking

All times are GMT -5. The time now is 08:23 PM.

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