View Single Post

  #3 (permalink)  
Old 12-29-2003
Robert Rankin
 
Posts: n/a
Default Re: Simple ping between windows98 and Linux(Slackware) using crossover cat5

On Sun, 28 Dec 2003 23:16:16 -0800, Tomasz Sztejka wrote:

> Robert Rankin <tuppe666@hotmail.com> wrote in message
> news:<pan.2003.12.29.03.16.48.243221@hotmail.com>. ..
>> Networking has baffled me for some time, I have read a slew of how-to's
>> but none really fit what I want.
>>
>> I eventually want some mechanism for mounting a windows share on my
>> linux box, because I am now comfortable in leaving my files on linux,
>> and eventually.

>
> Hi,
> I'm relatively new too to Linux too, but finally get it to work in
> following configurations: Linux->Win98->Internet,
> Linux->Linux->internet, XP->Linux->Internet. There was a lot of reading,
> reading and reading. Took
> at last one month. The good thing on Linux is that there is something
> to
> read if things does not work. The best is, that if you do something
> once, it works forever, so I could forgot how to do it :P
>
> * Sharing files with Windows.*
>
> You need to install Samba. It was in my distribution. You need to make
> sure to run smb and nmdb daemons. Configure them, as specification says.
> I recommend using Web interface to do it.
>
> The Samba itselfs is a "core" sharing engine. To actually use shared
> files you will need some GUI to mount them without a lot of thinking.
> Try Komba2, it was in my distribution.
>
> Anyway, for me sharing Linux<->Windows or Linux<->Linux works much
> smoother than Windows<->Windows. In 1xXP+1xW98+1xLinux confing only
> Linux sees both machines without problems. The Win98+Win98 needs 30
> minutes to see each other. And there is nothing to read how to fix the
> problem...
>
> * Sharing internet connection. Internet connected to linux. *
>
> In my case, the most flexible way was to:
>
> On machine equiped with internet run dhclient to get internet
> configuration, and dhcpd (DHCP server daemon) to provide local machines
> with this configuration. I could not manage how to pass information from
> dhclient to dhcpd automatically so I retyped it by hand.
> Then, to make yours two machine cluster to look as a single machine
> for external network (its necessary), you need to run thing called
> masquareade (sorry for typing mistakes, it is difficoult word for me).
> Regardless of how horrible it may look, it is a single line of iptables
> command.
> Necessary step to protect your network is to configure built-in
> firewall. I used the Guarddog UI to do it. This is wise to not allow
> NetBIOS or SAMBA to get outside.
> The last step is easiest - on your windows machine choose in network
> configuration to recon everything automatically. It will then ask DHCP
> server on your linux machine to provide data and start working. The only
> problem appears, if Linux box is turned on after windows box started.
>
> * Sharing internet connection. Internet connected to windows (98). *
>
> In this case you need to at first get your network to work manually.
> On windows machine, give your local network adapter ip by hand (make it
> to be in range of 192.168.0.?? or 192.168.1.??. Don't use ip range, your
> ISP uses. On linux side do it too. You must be able to excute:
>
> ping WINDOWS_MACHINE_IP
>
> on Linux with succes and
>
> ping LINUX_MACHINE_IP
>
> on Windows DOS-BOX with succes.
>
> This step is important - if I did not configured network manually at
> first, sharing internet from windows did not worked.
>
> Then, on windows install Internet Connection Sharing. Ignore if it
> asks to create configuration floppy. The ICS is a DHCP server +
> masquareade. So, on Linux box you need to run dhclient and that's all.
> The necassary step is to find, install and configure firewall on your
> windows machine. Without it it will stop working after about a month
> (viruses, "friendly" neighbours, spy-ware and etc). I used TinyFirewall
> (version 2.xxx), but it is not what I like. Good firewall should be able
> to use network zones and block passing protocols between them.
>
>
> I will post you more details (step by step what I did if I gain my
> memory back :), once I'm back home. Let me know if you are still
> interrested.
>
> regards,
> Tomasz Sztejka.
>
>
>
>> I want to be able to surf the Internet in windows as my usb speetouch
>> modem is always attached to my linux box at the moment.
>>
>> I then maybe want to do more than this, my main problem is when I had
>> too windows machines, using a crossover worked really well freindly
>> graphical interfaces, quick guides everywhere. But nothing for my
>> Windows98se-->Linux-->Internet connection.But nothing lots of help with
>> hubs, and connecting to lans etc etc but nothing on this, and most help
>> posts seem to be advanced of my cuddent state. so for now all I want is
>> to ping between the two machines, see whether my cards are set up
>> correctly and working.
>>
>> Any help would be grateful received.


Thank you for your help I added SMB to my kernel I suspect I have a copy
of samba around somewhere, if not I'll install now.

I have a question you say 192.168.0.?? or 192.168.1.?? you say I have seen
both of these configurations all windows to windows guides, and I know
192.168 is a special number I've seen include the former, I assume I can
use the latter.

I have(ignoring masqarading for the moment) set up a new zone in guarddog
called LAN with address 192.168.1.0/24 and enabled SMB and Ping

To set up my network card I have as root I typed ifconfig up 255.255.255.0
198.168.1.1, I suspect 255.255.255.0 should be 255.255.255.253 but I'm not
sure I just stole an example, if you could comfirm this it would be lovely.
also I know there should be a text file I should be editing somewhere but
I'm not sure what it is or what should go in there.

this is my output it sucks.
ifconfig eth0 up netmask 255.255.255.0 198.168.1.1
bash-2.05b# ping 198.168.1.2
PING 198.168.1.2 (198.168.1.2) 56(84) bytes of data.
From 198.168.1.1 icmp_seq=1 Destination Host Unreachable
From 198.168.1.1 icmp_seq=2 Destination Host Unreachable
From 198.168.1.1 icmp_seq=3 Destination Host Unreachable
From 198.168.1.1 icmp_seq=4 Destination Host Unreachable
From 198.168.1.1 icmp_seq=5 Destination Host Unreachable

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
81.86.216.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
198.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 81.86.216.1 0.0.0.0 UG 0 0 0 ppp0

fconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:76:36:E6:B1
inet addr:198.168.1.1 Bcast:198.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1324 errors:0 dropped:0 overruns:0 frame:0
TX packets:180 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:99432 (97.1 Kb) TX bytes:10800 (10.5 Kb)
Interrupt:11 Base address:0xa000

thank you for your help I had installed lineighbourhood in preparation for
this but I'll have a go with just about anything else I'm not fussy. ;)


Reply With Quote