LinuxQuestions.org
Visit Jeremy's Blog.
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 09-13-2001, 07:36 AM   #1
meebert
LQ Newbie
 
Registered: Sep 2001
Location: NC/USA
Distribution: RH6.1
Posts: 6

Rep: Reputation: 0
Question can't ping win98 box


I've setup linux rh6.1 on a machine with two nics. when I plug it into my network, it cannot ping other machines, and other machines cannot ping it.

I know the cards are installed and working, they ping each other just fine. Also, I tried hooking it up to my cable modem and was able to get it working relatively easily.

Is ther anything special I need to do to make linux visible to windows machines? (I'm not trying to file share.)
 
Old 09-13-2001, 07:50 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
If you are just trying to ping and its not working then it sounds like you have basic IP address issues. What IP addresses are you using on your LAN, and what IP addresses have you assigned to your network cards? The more details you can provide the better - the output of ifconfig and route could be good too.

I take it that when you hooked the cards upto the cable modem you were getting an IP address via DHCP yeah? If both cards are in the same machine then being able to ping each other doesn't really prove much about the hardware working, it just shows that the kernel recognises that you have two interfaces in the same box.

cheers

Jamie...
 
Old 09-13-2001, 09:34 AM   #3
meebert
LQ Newbie
 
Registered: Sep 2001
Location: NC/USA
Distribution: RH6.1
Posts: 6

Original Poster
Rep: Reputation: 0
config

ping returns something lie "destination host unreachable"

I'm using 192.168.145.3 and .5 with mask of 255.255.255.0

the win98 box I'm pinging from/to is 192.168.145.2 same mask

route returns (from memory)
eth0 192.168.145.5 genmask 255.255.255.255 UH
eth1 192.168.145.3 genmask 255.255.255.255 UH
eth0 192.168.145.5 genmask 255.255.255.0 U
eth1 192.168.145.3 genmask 255.255.255.0 U

and there is a loopback devide in there somewhere

ifconfig returns what seems to be valid info:
eth0 with ip 192.168.145.5 mask is 255.255.255.0
eth0 with ip 192.168.145.3 mask is 255.255.255.0

broadcasts re both 192.168.145.255 or 254 (can't remember which)
 
Old 09-13-2001, 02:27 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i found out a few days ago that two nics must be run on separate sub nets. you'rs are running on the same one. keep the netmask at 255.255.255.0 and change the next leevl up in the IP address eg...

192.168.0.3 for eth0
192.168.1.3 for eth1

otherwise you aint going anywhere.
 
Old 09-13-2001, 02:38 PM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by acid_kewpie
i found out a few days ago that two nics must be run on separate sub nets.
Well you learn something new ever day!

Have you got any further details on this? Is this the case with all the kernels? Its especially strange when you can have multiple IP addresses on the same interface, for example the internal NIC on my server has 192.168.1.1, 192.168.1.3 & 192.168.1.254 without difficulty using Aliasing.

Any info greatly appreciated

cheers

Jamie...
 
Old 09-14-2001, 09:33 AM   #6
meebert
LQ Newbie
 
Registered: Sep 2001
Location: NC/USA
Distribution: RH6.1
Posts: 6

Original Poster
Rep: Reputation: 0
diff subnets?

I'm not saying you're wrong and I WILL try it... but that makes no sense.

I hope it's that easy!
 
Old 09-14-2001, 10:32 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i got that nifo on here a week ago, and it did work first time, after ages and ages of farting around doing everything under the sun i could think of.

It is still causing me a lot of trouble tho, and (i've said in another thread.. pls help if you can..!!!) that both 8139too cards are stuck on half duplex, which has actually reduced my practical network bwidth by a factor of 8!! a ping time program i have for win said I had 8000kbps, but now only finds 1000kbos, which is just as slow as the 10Mbps hub i'm trying to do without!!! :-) Criminy.

As for what kernels and such like,... i've no idea. All information i've found abuot dual NIC's has pertained to hardware level issues, rather than the higher levels problems i'm enoucntering now. ahh well. My main problem is that i can ping across the two subnets (due to the netmask required!) ..... ahh well

I've seen posts on here about using the same ip address for 2 NIC's which i presumed was possible, but it would seem that this is totally impossible afterall. If anyone knows how to make it all work, that would really rock. my current jobby sucks big time!

meebert: i think it does actually make sense, although i wish i didn't think so.

Ethernet standard IEEE802.3 is a bus type network, as opposed to a ring network, token based or not. The concept of having two separate interfaces directly connected to the same bus is very illogical as far as i can see. Although the physical setup of the network might not actually have an apparent bus so to speak, even a two pc network does have a bus...

----------
| PC1 |_________
| | |
---------- |
|
---------- |
| PC2 |________|
| |
----------
God knows what that'll look like when i post it...

so.. even by just bending the cable... you can see that there is a bus actually... if you think abuot it. and ofcourse, you only need to draw out a hub as a diagram rather than a box, to see that that is a bus system too.

OOH! I GET IT!!! OK, So..... if both cards are active on the same network then they are, in theory trying to send the same TCP / UDP etc.. packets on to the very same bit of wire. And obviously collisions would have somethinhg akin to an erm... 100% hit rate!! So obviously, VERY obviously you don't want that to ever ever ever happen.

Hope that doesn't sound patronising.. as i genuinely only realsied that as i was typing it.. most of the capitals are aimed at me! :-)

So does that make sense to people? i *think* it does.... and is it right? I spent half my last year studying network theory and such like.. bout time i should put it into practise!

hehe.. i think i need a sit down!
 
Old 09-14-2001, 12:29 PM   #8
meebert
LQ Newbie
 
Registered: Sep 2001
Location: NC/USA
Distribution: RH6.1
Posts: 6

Original Poster
Rep: Reputation: 0
Question Hey thanks for the info!

Thanks for the help, I'm gonna try putting the cards on separate subnets.

One thing I'm wondering though is why win98 and win2k can have multiple cards on the same subnet without a problem?

Even if it works which doesn't matter to me if it does or not, I'm curious. I'm gonna use one card for a cable modem setup, I was just making sure everything worked before I took the next step.

One thing I've noticed is that if I don't make up a domain in linux, it will try to find a host online which results in some delays in certain tasks.

Is

Last edited by meebert; 09-14-2001 at 12:36 PM.
 
Old 09-14-2001, 01:00 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what exactly do you mean by 'use' two nic's? I guess that it's only a very subtle difference between the two systems. in linux you can have two nic's officailly running side by side, but one is automatically stopped from broadcasting, cos of my explanation above. Windows may well attempt to manage them differently, perhaps flipping between teh two or something... i don't really know, i'll admit.
 
Old 09-15-2001, 07:03 PM   #10
meebert
LQ Newbie
 
Registered: Sep 2001
Location: NC/USA
Distribution: RH6.1
Posts: 6

Original Poster
Rep: Reputation: 0
using as in utilizing

in windows I can installed and use two nics in the same computer each on the same subnet.
ie:
192.168.1.1
192.168.1.2
with same mask.

I'm not a network guru at all, so I don't understand all of this to any great level. But when a question comes up I like to get an answer if possible. just a curiosity thing.

From what you're saying I gather that being on the same subnet isn't a problem, the problem is that both broadcast.
is this right?

Is
 
Old 09-15-2001, 07:11 PM   #11
meebert
LQ Newbie
 
Registered: Sep 2001
Location: NC/USA
Distribution: RH6.1
Posts: 6

Original Poster
Rep: Reputation: 0
diff subnets (it worked)

I put the cards on as x.x.1.5 and x.x.0.3 and I can at least get pings now. inside interface is a lovely tulip and I had to let it auto-negotiate in order to get anything. weird.

thanks for the tips.

Is
 
  


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
How to block ping on win98 m/c ? emailssent General 1 10-19-2004 06:27 AM
XP Box won't connect to internet thru RH9 Box (firewall/dhcpd), it can only ping fire Rhapsodic Linux - Networking 4 07-10-2004 03:02 PM
Can ping box to box thru router - good sign? toastermaker Linux - Networking 15 12-07-2003 12:00 AM
no ping win98<=>linux :( rubz Linux - Networking 8 12-03-2003 07:33 AM
I need help networking a linux box to a win98 box... philfighter Linux - Networking 0 11-13-2001 09:49 PM

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

All times are GMT -5. The time now is 04:14 AM.

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