Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

TCP/IP Ethernet

Posted on 1997-03-02
4
Medium Priority
?
354 Views
Last Modified: 2011-10-03
I have a win95 box and a linux box that I want to network together.  I have followed the Ethernet/IP Masquerade/NET HOWTOS and still am having problems.  Here is the situdation:

Linux Kernel 2.0.27
SMC WD8013 Ethernet cards

Linux box:
IP 192.168.1.1
Netmask 255.255.255.0
GW 193.3.65.1 (my ISP)
Broadcast 192.168.1.0

The kernel see the ETH0 device it shows up during boot fine.

/etc/rc.d/rc.inet1 runs fine...

route looks fine

When I ping 192.168.1.2 (my win95 box) I get noting yet TX and RX show up on my ifconfig

Likewise Ping 192.168.1.1 from my win95 box to my linux box. I see TX/RX lite on the win95box and see RX lite on the linux box yet ping says no connection 100% packet loss.

This is complicated:  If anyone is willing to takle this one
email me I setup Telnet access to my box.

Thank you,

Ray

rayc@indy.net

0
Comment
Question by:rayc021897
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Expert Comment

by:rfedane
ID: 1584064
If you havent got it fixed by now - This is the problem as I understand it from your description.

Machine A (Linux, 192.168.1.1)
Machine B (Win95, 192.168.1.2)

Machine B has an always up ppp on 193.3.65.1

You cant ping either machines from the other.

Lets take it from the start.

192.168.1.x is always on the same physical net, so the gateway information is irrelevant.
If you can't ping the one from the other, either the net software or the physical link is broken.
In other words - you have a bad cable (**VERY** likely)
Terminated correctly ? Most people forget that you must have a T-peice in both ends with a terminator on both and the female connected to the board. Never the cables directly.

Get that to work first. And don't be fooled. There are only these two possibilities. Either the network hardware or the network drivers. There is no possibility that it is Linux acting up.
If you can get ifconfig data then the network drivers stand.
So it could be the Win95 drivers or the cables.

When you have that working - next problem.
You are running named. Be carefull with that.
Masquerade and named doesn't always go hand in hand.
Try telling your resolver that name service is not available.
(Edit /etc/resol* and /etc/host.conf*)
I have had some strange problems because masquerade found the network name and then tried to reconnect to that when the line dropped. It couldn't because it was a  dynamic ppp.

Also be aware of that pppd is a script in the newer Linux's.
You must throw the script away and rename the pppd2.whateverIsNewest to pppd. Otherwise diald can't control whats going on. If it tries to drop the line it kills the pppd-script and doesn't kill the pppd itself. You will get into some mess then.

But basicly - I don't like named and masq at the same time. I had big time problems with that.
You know you don't have name service when the route displauys numbers instead of names.

Otherwise I think your setup looks good.
Karsten

0
 
LVL 1

Expert Comment

by:alcockba
ID: 1953579
I hope the broadcast address was a typo. 192.168.1.0 is a network address, the broadcast address would be 192.168.1.255
0
 

Expert Comment

by:jonathangeeves
ID: 2041351
could you give an ifconfig and a route -n from your machine?
0
 
LVL 1

Accepted Solution

by:
netwrkr earned 40 total points
ID: 2115251
wow!  where to start?  scratch the above 3 answers to not make your head start hurting.  this is not that difficult if you follow step by step.  I assume here that your linux machine is the one with the modem and is responsible for getting the internet connection and you want your windows machine to be on the net at the same time, using the same ip address of your linux machine.  This being the case your linux machine will have 2 ip addresses.  The first being an internal addy...192...the second being the *real* ip address of a computer on the internet - the real ip addy will be assigned to you when you dial into your isp.  So....follow what I have here exactly (it's time tested and mother approved :o) )

Linux Machine
Ip.  192.168.1.2  (.1 is default for a *real* router.  ie dont use it)
Subnet:  255.255.255.0
Dns:  Get from your ISP (I assume you are using dialup)
Gateway:  default route

Windows Machine:
Ip.  192.168.1.3
Subnet:  255.255.255.0
Dns:  I have my linux machine doing dns requests so I have 192.168.1.2 but you might try the same settings from your linux machine if it doesnt work for you.
Gateway:  ipaddress of your linux box.  ie.  192.168.1.2
I believe you also need Netbeui installed on your Windows machine along with TCP/IP.  

edit your /etc/hosts to look as follows

127.0.0.1     localhost
192.168.1.2   linuxmachine.com
192.168.1.3   windowsmachine.com

ensure your /etc/resolv.conf is as follows
search localdomain
nameserver xxx.xxx.xxxx.xxx <--assigned by your isp (DNS)
nameserver xxx.xxx.xxxx.xxx <-- Secondary DNS

With all that going reboot your windows machine about 5 times (jk) then try to ping each machine by ip address. ie.  from windows ping 192.168.1.2 and from linux ping 192.168.1.3.   If you don't have connectivity at this point you have to look at harware.  ie.  cables and cards and quite possibly windows.  Try pinging 127.0.0.1 on each computer....if this works the problem is elsewhere, if it doesnt work, it means the problem is with that card/drivers/etc.

Provided you now have connectivity between the 2 machines you can get masquerading going.

ipchains -P forward DENY
ipchains -A forward -s 192.168.1.2/24 -j MASQ

then you should be able to do a:  ipchains -L and see that
you are MASQ from 192.168.1.x to anywhere on the net.  

if you need more help email me at security@vines.net.

 


0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question