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

    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
    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
    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.
     
    Tomasz Sztejka, Dec 29, 2003
    #2
    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 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. ;)
     
    Robert Rankin, Dec 29, 2003
    #3
  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: 192.168.1.1
    Your routing table shows an IP adress: 192.168.0.0
    And last but not least you are pinging 192.168.1.2

    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 192.168.1.2 for the linux box and
    192.168.1.3 for the windows box.

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

    Richard
     
    Richard Boekamp, Dec 30, 2003
    #4
  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 192.168.1.2
    to my wins search order list. *need I do this*
    2) On IP Address I specified an ip address as being 192.168.1.2 with a
    Subnet mask of 255.255.255.0 *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?
    brat.org domain name what the hell would be sensible?
    192.168.1.1 ip address
    255.255.255.0 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 192.168.1.1 netmask 255.255.255.0 up
    route add -net 192.168.1.0 netmask 255.255.255.0 eth0
    not quite sure why but if looks good to me, I got them from snippits
    somewhere.

    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 192.168.1.0/255.255.255.0 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.
    search brat.org
    nameserver 158.43.240.4
    nameserver 158.43.240.3
    nameserver 192.168.1.1 <--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
    #5
  6. If you just type 'ifconfig' and enter, what do you get then?
    If you ping 127.0.0.1(localhost) 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. 192.168.1.1
     
    =?ISO-8859-1?Q?Lars-G=F6ran_Andersson?=, Jan 2, 2004
    #6
    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.