LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-05-2004, 03:16 PM   #1
CompSci
LQ Newbie
 
Registered: Aug 2004
Location: auckland, new zealand
Distribution: mandrake 10
Posts: 7

Rep: Reputation: 0
problem connecting to w98 machine..


hi,

im a total newbie to linux, and i just installed mandrake 10 on my pc.

i used to have wxp on it, and connect to my other pc with w98 through a crossover tp cable. this works fine, and i use this for both local filesharing and internetsharing.

internet is connected to my second nic (eth1) through pppoe on the wxp/mandrake pc, and works fine both in xp and linux.

the problem is that i cannot for my life get any connection with the w98 pc in linux, even though the hw is working correct since it works fine when i boot in wxp. i try ping'ing, but just get some errormessages saying 'destination host unreachable' or something like that. the same thing happens when i try to ping the linux pc from w98.

the settings on the linux pc is ip 192.168.0.1 mask 255.255.255.0 and the w98 pc is set to obtain ip automatically (the internet connection sharing tool in windows did that); currently it has ip 192.168.0.93 mask 255.255.255.0 and default gw 192.168.0.1.

so...basically i need help with two things, 1. get the pings up and running so that i have something to work on, and 2. share the internet connection on the mandrake pc to the w98 pc.

i've searched on the internet for days about this, but havent gotten anywhere so any help would be very much appreciated!

thanks!
 
Old 08-05-2004, 03:29 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Can you post the output from:
ifconfig
route -n
 
Old 08-05-2004, 03:50 PM   #3
CompSci
LQ Newbie
 
Registered: Aug 2004
Location: auckland, new zealand
Distribution: mandrake 10
Posts: 7

Original Poster
Rep: Reputation: 0
[root@christian christian]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:E2:54:69:67
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::200:e2ff:fe54:6967/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:202 errors:0 dropped:0 overruns:0 frame:0
TX packets:144 errors:0 dropped:0 overruns:5 carrier:0
collisions:1 txqueuelen:1000
RX bytes:24876 (24.2 Kb) TX bytes:57570 (56.2 Kb)
Interrupt:10 Base address:0x2000

eth1 Link encap:Ethernet HWaddr 00:02:44:85:78:4B
inet6 addr: fe80::202:44ff:fe85:784b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:584 errors:0 dropped:0 overruns:0 frame:0
TX packets:651 errors:0 dropped:0 overruns:0 carrier:0
collisions:2 txqueuelen:1000
RX bytes:268377 (262.0 Kb) TX bytes:99968 (97.6 Kb)
Interrupt:11 Base address:0x1000

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:52 errors:0 dropped:0 overruns:0 frame:0
TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3376 (3.2 Kb) TX bytes:3376 (3.2 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:202.74.205.235 P-t-P:202.74.206.8 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1
RX packets:562 errors:0 dropped:0 overruns:0 frame:0
TX packets:624 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:254628 (248.6 Kb) TX bytes:84441 (82.4 Kb)

[root@christian christian]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
202.74.206.8 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 202.74.206.8 0.0.0.0 UG 0 0 0 ppp0
[root@christian christian]#
 
Old 08-05-2004, 03:55 PM   #4
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
maybe u could try manually entering the ip addresses in win98 in network tcp/ip properties and doing the same in linux . If u have the winxp/linux as ur internet connection and have run ics(on xp) then leave the default gateway address as 192.168.0.1
Also another thing u could check out is if u have a firewall installed on your win machine if so then this could be stopping u from pinging but it sounds like there is more of a prob with the addresses if u r connecting to linux and win98 and not using xp then ics is not really needed. Personally I would set ur addresses manually and then u will know what is what :-)
 
Old 08-05-2004, 04:05 PM   #5
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
XP/Mandrake dual boot. 98 networking is set up with XP but not Mandrake. How about 98 in Mandrake hosts file, resolv.conf??
 
Old 08-05-2004, 04:17 PM   #6
CompSci
LQ Newbie
 
Registered: Aug 2004
Location: auckland, new zealand
Distribution: mandrake 10
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by binidiot
XP/Mandrake dual boot. 98 networking is set up with XP but not Mandrake. How about 98 in Mandrake hosts file, resolv.conf??
# right, i have 98 on the second pc and xp/mandrake in dualboot so i don't really want to mess with the settings on the 98 pc since it is set up to work (and works) with the xp configuration i have.

# what do you mean by 98 in mandrake hosts file, resolv.conf?

# thanks alot for helping out guys!
 
Old 08-05-2004, 04:52 PM   #7
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
Sorry, I meant in Mandrake is there not hosts, host.conf, host.equiv....somewhere to identify the Win98 machine's address so it can find the ping. I think when you turn XP off to boot Linux that Linux may not know that local IP.
 
Old 08-05-2004, 06:58 PM   #8
CompSci
LQ Newbie
 
Registered: Aug 2004
Location: auckland, new zealand
Distribution: mandrake 10
Posts: 7

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally posted by binidiot
Sorry, I meant in Mandrake is there not hosts, host.conf, host.equiv....somewhere to identify the Win98 machine's address so it can find the ping. I think when you turn XP off to boot Linux that Linux may not know that local IP.
# yes there is an /etc/hosts that contain lines which maps ip addresses to hostnames, but that really isn't a problem i think as long as i try to ping the ip address directly....

# i think there must be something else wrong here, but i just can't figure out what it is...i always thought that if i set the ip to 192.168.0.x and 192.168.0.y and the netmask to 255.255.255.0, then they should be able to ping each other not matter what....apparently this is not so for mandrake linux

# i hope you guys can help me out on this, i really need it!

# thanks
 
Old 08-06-2004, 03:58 AM   #9
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
Hmm, let's see now...with the XP DHCP, ICS out of the picture, eth0/192.168.0.1 in Mandrake, cabled to Win98 NIC with a 192.168.0 IP, same netmask ... where does that ping go ... can you ping Mandrake 192.168.0.1 from the Win98 machine?? How about a default gateway set in Mandrake for eth0. If you set eth0 default gateway to Win 98 IP what would happen? In the end you'll need to set up Mandrake as a gateway to share the internet.

Just trying to understand. Right now, I have opposite setup.....98/Linux and 98/FreeBSD dual boots and XP connected to internet. Have no trouble sharing internet or locally no matter which OS is booted am on the verge of slicing that 120gig XP disk to put Linux on the front line.
 
Old 08-06-2004, 06:09 AM   #10
CompSci
LQ Newbie
 
Registered: Aug 2004
Location: auckland, new zealand
Distribution: mandrake 10
Posts: 7

Original Poster
Rep: Reputation: 0
# hi, i tried sending a ping from the w98 pc to the mandrake pc, but got the same result there - destination host unreachable.

# im not sure what you mean by setting the default gateway of eth0 to the ip of the w98 pc, but currently i have :

Destination Gateway Genmask Flags Metric Ref Use Iface
202.74.206.8 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 202.74.206.8 0.0.0.0 UG 0 0 0 ppp0

# so it seems the gateway of eth0 is 0.0.0.0...or am i interpreting this trace incorrectly?

...i'm on the verge of giving up on linux - how do they expect people to go from windows to linux when something this simple is so hard to do?

# thanks for your help though, it's really appreciated!
 
Old 08-06-2004, 09:28 AM   #11
CompSci
LQ Newbie
 
Registered: Aug 2004
Location: auckland, new zealand
Distribution: mandrake 10
Posts: 7

Original Poster
Rep: Reputation: 0
# i have made some progress here now. i disabled the firewall in mandrake linux, an d set the w98 pc to receive automatic ip. when it restarted i could ping both ways, and i can ping the internet from the linux pc.

# i can still not ping or access the internet from the w98 pc, so if anyone knows how i can fix that, it'd be great!

# the linux pc is now like this:
[root@christian root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:E2:54:69:67
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::200:e2ff:fe54:6967/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1216 errors:0 dropped:0 overruns:0 frame:1
TX packets:1068 errors:0 dropped:0 overruns:11 carrier:0
collisions:0 txqueuelen:1000
RX bytes:664609 (649.0 Kb) TX bytes:92539 (90.3 Kb)
Interrupt:10 Base address:0x2000

eth1 Link encap:Ethernet HWaddr 00:02:44:85:78:4B
inet6 addr: fe80::202:44ff:fe85:784b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:853 errors:0 dropped:0 overruns:0 frame:0
TX packets:877 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:240212 (234.5 Kb) TX bytes:96604 (94.3 Kb)
Interrupt:11 Base address:0xf000

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:336 errors:0 dropped:0 overruns:0 frame:0
TX packets:336 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:29733 (29.0 Kb) TX bytes:29733 (29.0 Kb)

ppp1 Link encap:Point-to-Point Protocol
inet addr:202.74.195.121 P-t-P:202.74.206.7 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1
RX packets:153 errors:0 dropped:0 overruns:0 frame:0
TX packets:172 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:68513 (66.9 Kb) TX bytes:24635 (24.0 Kb)

[root@christian root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
202.74.206.7 0.0.0.0 255.255.255.255 UH 0 0 0 ppp1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 202.74.206.7 0.0.0.0 UG 0 0 0 ppp1
[root@christian root]#

# and my w98 pc is configured like this:
Windows 98 IP Configuration



Host Name . . . . . . . . . : INGVILD.mshome

DNS Servers . . . . . . . . : 202.74.207.10

Node Type . . . . . . . . . : Mixed

NetBIOS Scope ID. . . . . . :

IP Routing Enabled. . . . . : No

WINS Proxy Enabled. . . . . : No

NetBIOS Resolution Uses DNS : No



0 Ethernet adapter :



Description . . . . . . . . : Xircom CE3 10/100 Ethernet Adapter

Physical Address. . . . . . : 00-80-C7-4D-D0-D9

DHCP Enabled. . . . . . . . : Yes

IP Address. . . . . . . . . : 192.168.0.93

Subnet Mask . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . : 192.168.0.1

DHCP Server . . . . . . . . : 192.168.0.1

Primary WINS Server . . . . :

Secondary WINS Server . . . :

Lease Obtained. . . . . . . : 08 06 04 02:06:18

Lease Expires . . . . . . . : 08 06 04 08:06:18
 
Old 08-06-2004, 09:39 AM   #12
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
Hello, I think mermxxx above had it right. Since Win98 NIC is set up for DHCP with XP, it depends on XP DHCP for routing. You're gonna have to manually set IPs in Mandrake and Win98. I am typing on Win98 (tri-boot w/FreeBSD, DragonFlyBSD) machine right now. It is also netted by XP DHCP machine and it's Win98 IP is 192.168.0.94.

I have:

Control Panel->Network->Configuration tab->click "TCP/IP nic card" in the installed components list->click Properties->IP Address tab->choose Specify an IP Address and add 192.168.0.94 with 255.255.255.0 in space provided->Gateway tab add 192.168.0.1->OK->OK

and now must reboot see if anything has changed. Cheers.
 
Old 08-06-2004, 10:10 AM   #13
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
Geez, you're gonna fix Mandrake before I get done troubleshooting Windows 98/XP .... Anyways in last post I forgot to add my XP host name and mshome.net domain and 192.168.0.1 in DNS Configuration tab. Now I am cool. Windows simplicity, heh ... that's a lot of clickin and clacking and rebootin to do such a simple thing......

OK. So next step is how to get 98 out to internet via Mandrake. Off to Debian with me.
 
  


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
Problem connecting to remote fax machine bayard Linux - Hardware 0 10-18-2005 02:41 PM
problem connecting to w98 machine.. CompSci Mandriva 0 08-03-2004 03:59 AM
connecting to another windows machine caesarkim Linux - Networking 7 11-26-2003 12:45 PM
connecting to a Windows machine Mladek Linux - Software 2 07-12-2003 05:08 PM
connecting to a win9x machine MeLassen Linux - Newbie 4 10-01-2001 03:53 AM

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

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