LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-21-2003, 07:02 AM   #1
kekeboo
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Rep: Reputation: 0
no internet connection


Hi!

Well i'm trying to connect my computer (linux suse 8.1) to the internet. The connection is via an adsl router, but i am not able to manage it.
My brother has the same settings and no problems with surfing with in the internet.
What could the problem be?!
 
Old 06-21-2003, 07:05 AM   #2
stony
Member
 
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131

Rep: Reputation: 15
Hi,

the problem could be everywhere...

check if:

- your network cable is connected succesfully
- your nic is setup succesfully
- your gateway is set correctly
- the router isn't blocking any request from your site
- the nameserver settings are correct
- you can ping the router (by ipaddress not name)
- you can ping anything outside (try google 216.239.39.99)
- in case you're using dhcp the lease time isn't to small
- in case you're using dhcp the ip address is resolved by the dhcp server

and so on ...

have a nice day

cu

Last edited by stony; 06-21-2003 at 07:06 AM.
 
Old 06-21-2003, 07:16 AM   #3
kekeboo
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Network cable is connected succesfully.
as i already said, everthing is setted in the same way as on the computer of my brother.
Diffrent is only my ip address and the local name.

How can i ping the router?
And what are you meaning with the 2 last points?!

thx// schonmal danke
 
Old 06-21-2003, 07:20 AM   #4
GŠutama
Member
 
Registered: Jun 2003
Location: Tokyo
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
Can you ping your router?
Can you ping anything outside your router?

If not check this.

Is your network interface set up correctly?

check with

ifconfig

You should have two interfaces lo (local loopback) and eth0.

If you don't have the interface up, set it up manually with ifconfig $IPADDR or you could try the script 'ifup eth0'. This should set up everything for you nicely.

Check that you have a route to your default gateway (that is your router)

route
(this gives you the static routeing table of your machine. Check that there is an entry that reads default under 'Destination'. Check that it is the correct ip adresses to your router.

if not use 'route add default gw $IP_TO_ROUTER'

Now you have connection to your router and you should be able to ping it.

Now you only have to get DNS working.

check if there is a file called /etc/resolv.conf
It should read

nameserver $IP_TO_ROUTER

If you used the 'ifup' script this should all have been set up for you.
 
Old 06-21-2003, 07:25 AM   #5
stony
Member
 
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131

Rep: Reputation: 15
Hi,

perhaps you're using a crossover cable and your brother doesn't ?

Check if the LED of you NIC is on and also the LED of your hub/switch

cu
 
Old 06-21-2003, 07:27 AM   #6
GŠutama
Member
 
Registered: Jun 2003
Location: Tokyo
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
The 'ifup' script only works if you have DHCP

How to ping the router:

You need the ip of the router:
Get that from your brother and the route command.

then ping $IP_OF_ROUTER
 
Old 06-21-2003, 07:45 AM   #7
kekeboo
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Do I have to write in a console?
If yes, in what console and where do I find it?

PS: its my second day with linux, so dont hit me
 
Old 06-21-2003, 07:52 AM   #8
GŠutama
Member
 
Registered: Jun 2003
Location: Tokyo
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
Yes you have to write in a console.

1) You can get a console by hitting a Ctrl-Alt-F(1-6).
This will switch to a virtual terminal were you can login.
To get back to your grafical X windows you hit Ctrl-Alt-F7

2) You look in the menus for 'Console', 'rxvt', 'xterm' I don't know what Suse installs by default. There are more consoles out there but I recon one of these are installed.

If any of the commands doesn't work in the console try switching to root with 'su'
 
Old 06-21-2003, 08:11 AM   #9
kekeboo
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Original Poster
Rep: Reputation: 0
well i tried to ping the router but there is this error message:
"network is unreachable"

the same message appears, when i tipped route add default gw "ip"
 
Old 06-21-2003, 08:24 AM   #10
GŠutama
Member
 
Registered: Jun 2003
Location: Tokyo
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
For the 'route' command to work you need to have a interface up and running.
Did you set up the interface with ifconfig?
Did you try the ifup script? (if it is installed, just try and se if it works)
 
Old 06-21-2003, 08:52 AM   #11
kekeboo
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Original Poster
Rep: Reputation: 0
No, i didnt do it yet.

I may have to mention, that i have onboardLAN

the chipset ist LAN (RJ-45) Jacks: 10/100 LAN (with Intel 82562EZ)
(Mainboard is Intel 865PE Chipset based)

Linux calls it "micro-star international ethernet"

Do I have to update it?
 
Old 06-21-2003, 08:59 AM   #12
GŠutama
Member
 
Registered: Jun 2003
Location: Tokyo
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
I don't know really.

Is the interface eth0 listed when you type

ifconfig -a

this willl show you all interfaces avalible. If eth0 isn't there I'm not your man.
 
Old 06-21-2003, 09:06 AM   #13
kekeboo
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Original Poster
Rep: Reputation: 0
lo and sit0 are listed

eth0 isnt' there.

My brother has eth0 listed.

What do I have to do now?!
 
Old 06-21-2003, 09:20 AM   #14
kekeboo
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Original Poster
Rep: Reputation: 0
i just tipped "ifconfig $ipaddr" but there stands something about lo
 
Old 06-21-2003, 09:21 AM   #15
GŠutama
Member
 
Registered: Jun 2003
Location: Tokyo
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
OK I recon sit0 is another name for eth0. I love these differences ;-)

ok try 'ifup sit0'

if that doesn't work do

ifconfig sit0 192.168.???.???
(this brings the sit0 interface up and assigns the ip that you specified, check your brothers ip and take a free ip that is close, change the ?'s to something)

now you need a routeing table. Use

route add default gw 192.168.???.???
(where ???.??? is the ip to your router)

Now you should be able to ping stuff using the ip adress.

To get DNS:
check if '/etc/resolv.conf' exists and see if it contains 'nameserver $ROUTER_IP'
with
'cat /etc/resolv.conf'

if not
echo "nameserver $ROUTER_IP" > /etc/resolv.conf

Last edited by GŠutama; 06-21-2003 at 09:24 AM.
 
  


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
Slow Internet Connection when Connecting to Internet on Browsers lennysokol Linux - Networking 8 04-09-2011 04:29 PM
Nic card -> cable internet modem no internet connection zeshan_b Mandriva 21 09-26-2004 11:48 AM
Messed up my internet settings (NO internet connection) :( Almazick Linux - Networking 2 09-08-2004 12:05 PM
My internet apps cannot detect my internet connection esthon_wood Mandriva 5 08-30-2004 08:38 PM
i can get internet connection in windows but in LINUX there is no connection ruzvay Linux - Networking 2 06-08-2004 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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