LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-22-2006, 10:09 PM   #1
bruteit
LQ Newbie
 
Registered: Oct 2006
Location: Wisconsin
Distribution: Suse
Posts: 4

Rep: Reputation: 0
Gaining access to internet


Hello,

So I have searched and searched and think that I have tried virtually everything. If someone can help me and tell me what/if I am doing something wrong that would be great.

I am new to linux for the most part. When I installed debian last time I wanted to run linux it automatically connected to the internet, no problem. This was also before I had a router.

So here are the details:
I have a linksys router (WRT54G) With the latest firmware update
I have the cat5 cable going from my pc to slot 2 on router. The internal network IP is 192.168.1.101 when I am windows
When I use regular dhcp, it doesn't allow me to connect to router or internet.
When I set a static IP, no matter what it is 192.168.1."x" it allows me to connect to router but not to internet.

My question is, where am I going wrong and what can I do to fix the issue so I can begin my process of learning SuSE.

Thanks in advance for help,
Ryan
 
Old 10-23-2006, 03:23 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
you would want to check you /etc/resolv.conf file for dns servers.
paste the output of
ping 192.168.1.1 (your router)
ping www.yahoo.com
 
Old 10-23-2006, 04:30 AM   #3
bruteit
LQ Newbie
 
Registered: Oct 2006
Location: Wisconsin
Distribution: Suse
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the advice. Here are the results. I am new to linux so I may have done something wrong. First thing I did was view the resolv.conf

>view /etc/resolv.conf
-
-
-
-
-
"etc/resolv.conf" [readonly] 0L, 0C 0,0-1 All

Then I did the pings

-Through DHCP
>ping 192.168.1.1
connect: network is unreachable
>ping yahoo.com
unknown host yahoo.com


Through static IP of 192.168.1.103
>ping 192.168.1.1
[Router was recieving packets]
>ping yahoo.com
unknown host yahoo.com

This isn't word for word because I don't know how to copy on linux to get it to wins. It was hand written then typed to here.

Thanks

Ryan
 
Old 10-23-2006, 05:42 AM   #4
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
you need to add dns servers to your /etc/resolv.conf
nameserver 192.168.1.1
should do the trick. if it doesnt, check your router for the dns servers and input them in the resolv.conf file.
 
Old 10-23-2006, 01:17 PM   #5
bruteit
LQ Newbie
 
Registered: Oct 2006
Location: Wisconsin
Distribution: Suse
Posts: 4

Original Poster
Rep: Reputation: 0
Is there a how-to on how to do that? I am very new to linux so I really don't know any of the commands and what not. Thanks again.
Ryan
 
Old 10-23-2006, 04:05 PM   #6
usaf_sp
Member
 
Registered: Jul 2005
Location: Tennessee
Distribution: openSUSE
Posts: 419

Rep: Reputation: 30
STOP!

Your first step is to ensure that DHCP server is enabled on your router and that Dnsmasq is enabled (this allows the router to forward the Domain Name Servers to the Linux Box. Suse is fairly good at doing this.

If you have a static IP (meaning that your ISP has assigned you an IP address that does not change) you will need to set up the router to use the IP and DNS specified. You can still use DHCP so that any computers connecting to the router do not have to have a static IP themselves. The only thing using static in this circumstance is the router.

If you have a dynamic IP, then you can have the router connect via DHCP as well as your client computers. DHCP server needs to be enabled on the router as well as DNSmasq.

If this router is wireless, you need to change the settings using a hardwired computer (cat5 to port2 will do).

In a web browser type 192.168.1.1 to access the HTML admin screen. If you have changed the default password use that. If you have never changed the default it will be "admin". Make your changes, save them, power down the router and modem.

In YaST go to network devices. Set up your connection via DHCP using Knetwork Manager.

It is easier for you to reboot at this point since you will have to shut down and restart many services and SuSE is very unpredictable when connecting after runlevel 5.

What is your firmware version? You may need to update.

Good Luck!

PS.- CAUTION CAUTION CAUTION
Never flash (install new firmware) your router using a Wireless connection. You will turn your router into a brick (as in a useless piece of junk)!

Last edited by usaf_sp; 10-23-2006 at 04:10 PM.
 
  


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
gaining root access thebiggiantmouse Ubuntu 5 09-19-2006 03:53 AM
Gaining access to an inherited machine... please help elemental666 Linux - Security 8 10-21-2005 10:18 AM
Gaining access to Printerserver? gundestrup Linux - Hardware 8 08-07-2005 05:02 AM
Gaining access to Printerserver? gundestrup LinuxQuestions.org Member Intro 2 05-18-2004 11:54 AM
Gaining root access in KDE d-katz Linux - General 9 02-27-2004 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 09:07 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