Simple ping between windows98 and Linux(Slackware) using crossover cat5

Discussion in 'Linux Networking' started by Robert Rankin, Dec 29, 2003.

  1. 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

    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.
    Robert Rankin, Dec 29, 2003
    1. Advertisements

  2. 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

    * 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
    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

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


    on Linux with succes and


    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, 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

    Tomasz Sztejka.
    Tomasz Sztejka, Dec 29, 2003
    1. Advertisements

  3. 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 and enabled SMB and Ping

    To set up my network card I have as root I typed ifconfig up, I suspect should be 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
    bash-2.05b# ping
    PING ( 56(84) bytes of data.
    From icmp_seq=1 Destination Host Unreachable
    From icmp_seq=2 Destination Host Unreachable
    From icmp_seq=3 Destination Host Unreachable
    From icmp_seq=4 Destination Host Unreachable
    From icmp_seq=5 Destination Host Unreachable

    route -n
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface UH 0 0 0 ppp0 U 0 0 0 eth0 U 0 0 0 lo UG 0 0 0 ppp0

    fconfig eth0
    eth0 Link encap:Ethernet HWaddr 00:0C:76:36:E6:B1
    inet addr: Bcast: Mask:
    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. ;)
    Robert Rankin, Dec 29, 2003
  4. You better read a linux networking howto, since the type of questions you
    are asking are really b4 the beginning of anything. Some basic knowledge is
    nescesarry to be able to ask the right questions.

    Btw the way: it is not your output that sucks, but your settings....

    Your eth0 configurations shows an IP adress:
    Your routing table shows an IP adress:
    And last but not least you are pinging

    This should be 1 and the same address in all 3 lines. Best never use any
    zero or 255 adress in the end. And some purists like te reserve the dot1
    address for a router, so use fe for the linux box and for the windows box.

    But most of all, read some howto's first.

    Richard Boekamp, Dec 30, 2003
  5. Where I am from where I was 2 1/2 days later, as always my main problem is
    the getting started, the ping, without it I didn't know what worked and
    what didn't, and how it worked.

    on my windows98se machine in my network neighborhood properties I set
    up the identification of my machine multitainer, and the domain as
    MONT_1 and changed the tcp/ip properties of the network card, and added to
    only two tabbed menus:

    1) On Wins configuration I enables wins resolution and added
    to my wins search order list. *need I do this*
    2) On IP Address I specified an ip address as being with a
    Subnet mask of *could I obtain an address automatically*

    I did not change any other configuration should I for whatever reason be
    changing anything else?

    on my linux box slackware 9.0-->9.1
    In best order I can manage
    run netconfig and select:

    billy hostname what the hell would be sensible? domain name what the hell would be sensible? ip address netmask

    I chose static ip would it have been better/possible/practical to set up a
    DHCP server in windows98se.

    Then I have to modprobe 8139too the driver for my network card I suspect
    this should be loaded automatically, but I'm using kernel 2.6 and its a
    bit screwy with the changes from modules.conf.

    the to get the party started I type.
    ifconfig eth0 netmask up
    route add -net netmask eth0
    not quite sure why but if looks good to me, I got them from snippits

    Now can I ping not a chance

    I put a firewall up using guarddog which muddied the waters a bit. It
    comes with a graphical interface which is nice, set up a new defined zone,
    as being LAN with the zone address being and
    added protocols Microsoft SMB over TCP; Windows Networking(NETBIOS); Ping
    in the Local Boxes, In my Local to clients in zone I added the these again
    in the LAN boxies. I assume this is correct but anthing you suspect I
    should be switching on or off I would be grateful.

    smb is compiled in the kernel, and I did not have to run smdb or nmbd I
    just have to type smbmount //multitainer/C /mnt/multitainer/C/ and type my
    password which works fine for root. Linneighborhood didn't work although I
    could recheck this as root.

    I've added //multitainer/C /mnt/multitainer/C smbfs
    password=aclloyd,fmask=0777,dmask=0777,noauto,user,rw 0 0
    to /etc/fstab which only works for root at the moment. I can now see my
    windows mounts on my linux box which is the main thing.

    I will have a go at setting this up the linux-->windows later, if you know
    a quick way to do this, or can point me in the right direction it would be
    nice, but I know there is information out there, but it would be useful to
    know of a sesible way of backing up my selective parts of my drive so I
    can back up to CD/Network.

    Last thing I lost my connection to DNS on the internet by doing all this
    I added these lines to my resolv.conf but it was a lucky guess.
    nameserver <--should this go first last or be left off?

    I know I need to automate this, and any advise would be appreciated as
    there seems to be a variety of different ways of achieving the same ends.

    And I need to start accessing the internet through my linux machine, again
    any advise, idiots guides before I start breaking things on my computer
    would be appreciated.

    BTW if I was to add additional machines through a hub would I just follow
    the same procedure?
    Robert Rankin, Jan 2, 2004
  6. If you just type 'ifconfig' and enter, what do you get then?
    If you ping what do you get then?
    Try ping your linuxbox from within windows - do that work?

    The only thing you need to do is the setup by ifconfig and then it
    should work. Ping doesn't need any nameservice as long as you just use
    dotted addressing e.g.
    =?ISO-8859-1?Q?Lars-G=F6ran_Andersson?=, Jan 2, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.