LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   yet another internet connection problem (https://www.linuxquestions.org/questions/linux-networking-3/yet-another-internet-connection-problem-259183/)

muffinman newb 11-25-2004 10:05 AM

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

muffinman newb 11-26-2004 10:20 AM

...
 
...

kevinatkins 11-26-2004 10:32 AM

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.

muffinman newb 11-27-2004 02:56 PM

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

poochdog 11-27-2004 05:26 PM

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.

Darin 11-28-2004 02:53 AM

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

muffinman newb 11-28-2004 02:58 PM

.
 
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

Darin 11-29-2004 11:08 AM

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.

muffinman newb 11-29-2004 12:10 PM

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.

phatboyz 11-29-2004 12:57 PM

Please post "ifconfig -a" from you linux box

also post the output of cat /etc/resolve.conf

muffinman newb 12-06-2004 05:54 AM

ifconfig -a is not a command (nor is ifconfig) and
cat /etc/resolve.conf doesnt exist....

muffinman newb 12-09-2004 08:26 AM

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.

mermxx 12-09-2004 03:30 PM

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 :-)

muffinman newb 12-12-2004 10:35 AM

.
 
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

mermxx 12-12-2004 11:41 AM

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?


All times are GMT -5. The time now is 12:50 AM.