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-25-2004, 10:05 AM   #1
muffinman newb
LQ Newbie
 
Registered: Nov 2004
Distribution: mandrake 10.1
Posts: 10

Rep: Reputation: 0
yet another internet connection problem


ok, i hav a linux (mandrake 10.1) and windows (xp) box.
internet is not working in linux but does in windows, altough i am new to linux i hav had help from a fairly knowlagable friend who can not help. i use an adsl router so i have tried lan and adsl connections without result. i have used the exact settins that windows use (and windows works) yet nothing. plz help
 
Old 11-26-2004, 10:20 AM   #2
muffinman newb
LQ Newbie
 
Registered: Nov 2004
Distribution: mandrake 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
...

...
 
Old 11-26-2004, 10:32 AM   #3
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 33
Hello,

First things first, I think that with a router, you'll need to configure a LAN connection to access the internet (I'm assuming that the router plugs into the ethernet port on your machine?). Go into Mandrake Control Centre and a dd a LAN connection, delete any other spurious connections (ADSL, etc.)

The problem could then be either DNS or actual routing. If you can get a LAN connection configured, post back and I'll try and diagnose it with you.
 
Old 11-27-2004, 02:56 PM   #4
muffinman newb
LQ Newbie
 
Registered: Nov 2004
Distribution: mandrake 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
lan done (i think)

ok, i have done the lan settings i think. I think they are done because when i click 'connect lan' it comes up 'connecting to internet', after a while it says connection complete, then promtly turns to 'not connected' i tried ping 10.0.0.2 afterwards (as advised by a friend) and it came up 'network : Not reachable' , which confuses matters. i have an onboard ethernet adapter if that complicates issues
 
Old 11-27-2004, 05:26 PM   #5
poochdog
Member
 
Registered: Jul 2004
Location: United Kingdom
Distribution: Fedora Core 9
Posts: 141

Rep: Reputation: 15
Type netconfig in a terminal window and set an IP address for your linux machine. This is assuming your router uses a set of allowed ip's. You will need to set one within this range.
 
Old 11-28-2004, 02:53 AM   #6
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
In XP open a cmd shell and type 'ipconfig /all' and copy down the IP address, subnet mask, default gateway and DNS servers. Put that information into [whatever graphical utility it is you are using to set it in Linux.]

If that's what you already did, or you do it and it still isn't working open a shell and post the result of trying to ping:
the IP address you gave linux,
the default gateway,
one of the DNS servers,
an Internet IP address like 64.179.4.149
an Internet site by name like linuxquestions.org
 
Old 11-28-2004, 02:58 PM   #7
muffinman newb
LQ Newbie
 
Registered: Nov 2004
Distribution: mandrake 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
.

ok first of all i tried 'ipconfig' and apparently yhat isnt even a command, i looked down the 'net' usage menu and config isnt there (i tried 'netconfig' and 'net config')
secondly, when i tried pinging 10.0.0.2 (my ip address as set by windows) it says
'network: not reachable'
when i tried pinging google 'ping www.google.com'
it says the domain isnt reachable
 
Old 11-29-2004, 11:08 AM   #8
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
I think we need to clarify, when you say you have Windows and Linux, do you mean that one computer dual boots into either, or that you have 2 computers and one has XP while the other has Mandrake and they are both plugged into the same network?

ipconfig is the command you run, not in Linux but in Windows 2000/XP to see what IP address is set. If you run that command in Windows you can see what IP address is set there, to help you (and us) know what address to use in Linux.

When you tried to ping 10.0.0.2 and received the network: not reachable error was that in Linux? In Linux run the command ifconfig to see what IP address is set there, make sure it's set like you wanted it to be.

When you tried to ping google, that was in Linux I'm hoping, was the message 'unknow host' or was it 'destination [host or net] unreachable'?

If you have two computers running at the same time then you need to use different IP addresses for each computer, but they have to be close (on the same subnet.) If you have one computer with both Windows and Linux, set the IP address in Linux to the exact same one that is in Windows, but if you have two computers and the Windows one has an IP address like 10.0.0.2 then set the other computer to be all the same numbers except the last one, which can be any other number but 0, 1 or 255 so 10.0.0.3 or 10.0.0.54 or whatever you want.
 
Old 11-29-2004, 12:10 PM   #9
muffinman newb
LQ Newbie
 
Registered: Nov 2004
Distribution: mandrake 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
clarity

i have two computers, a dual boot pc (myn) and an xp machine. Which is why i use a router....
when i set the ip configuration from windows in linux, linux still wont connect (well it comes up 'connected' then quickly changes to 'not connected' (which is confusing))
the ping problem said 'unkmown host' (sorry)
my computer has a different ip address to the other computer, but im trying to use the ip address of my box from windows in linux and keeping the other machine completly the same.
 
Old 11-29-2004, 12:57 PM   #10
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
Please post "ifconfig -a" from you linux box

also post the output of cat /etc/resolve.conf
 
Old 12-06-2004, 05:54 AM   #11
muffinman newb
LQ Newbie
 
Registered: Nov 2004
Distribution: mandrake 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
ifconfig -a is not a command (nor is ifconfig) and
cat /etc/resolve.conf doesnt exist....
 
Old 12-09-2004, 08:26 AM   #12
muffinman newb
LQ Newbie
 
Registered: Nov 2004
Distribution: mandrake 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
Question any thing else?

i realise that this hasnt exactly been a walk in the park, so if there is any more advice the plz tell me, if there is nothing else tell me and i can take a hammer to my computer (or just try a new etho card. Thank you for all the help so far.
 
Old 12-09-2004, 03:30 PM   #13
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
in xp as darin says u can use the ipconfig command
start>run>cmd this will bring up a terminal window or u can go to start>programs>accessories>command prompt either way u will get to the same terminal window
then type ipconfig>enter this will give u the ip addy u r using for windows + gateway + subnet OR u can ipconfig/all which will provide ur ISP dns server addy and the type of lan card u r using + mac addy + whether u have dhcp enabled.

In linux to use the command ifconfig u must again use a terminal window and change to root user.
su>enter password>ifconfig -a

try both these commands using each OS and post the output :-)
 
Old 12-12-2004, 10:35 AM   #14
muffinman newb
LQ Newbie
 
Registered: Nov 2004
Distribution: mandrake 10.1
Posts: 10

Original Poster
Rep: Reputation: 0
.

eth0 Link encap:Ethernet HWaddr 00:0E:A6:69:FE:79
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Base address:0x9800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:130 errors:0 dropped:0 overruns:0 frame:0
TX packets:130 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9420 (9.1 Kb) TX bytes:9420 (9.1 Kb)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

i hope this makes sense,
muffinman
 
Old 12-12-2004, 11:41 AM   #15
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
it would seem that ur lan card does not have an ip addy assigned to it. Have u used mandrake control centre to set up your lan connection?
 
  


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
Internet connection problem Swetko Linux - Networking 1 11-09-2005 10:36 AM
Internet Connection Problem genrl Linux - Networking 6 09-23-2005 03:43 PM
internet connection problem inc0gs Red Hat 3 07-19-2004 01:42 PM
internet connection problem!? romo Linux - Networking 2 12-03-2001 03:03 AM
Internet connection problem kornholio Linux - Newbie 1 04-27-2001 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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