Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-13-2001, 07:36 AM
|
#1
|
LQ Newbie
Registered: Sep 2001
Location: NC/USA
Distribution: RH6.1
Posts: 6
Rep:
|
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.)
|
|
|
09-13-2001, 07:50 AM
|
#2
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
09-13-2001, 09:34 AM
|
#3
|
LQ Newbie
Registered: Sep 2001
Location: NC/USA
Distribution: RH6.1
Posts: 6
Original Poster
Rep:
|
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)
|
|
|
09-13-2001, 02:27 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
09-13-2001, 02:38 PM
|
#5
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
09-14-2001, 09:33 AM
|
#6
|
LQ Newbie
Registered: Sep 2001
Location: NC/USA
Distribution: RH6.1
Posts: 6
Original Poster
Rep:
|
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!
|
|
|
09-14-2001, 10:32 AM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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!
|
|
|
09-14-2001, 12:29 PM
|
#8
|
LQ Newbie
Registered: Sep 2001
Location: NC/USA
Distribution: RH6.1
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
09-14-2001, 01:00 PM
|
#9
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
09-15-2001, 07:03 PM
|
#10
|
LQ Newbie
Registered: Sep 2001
Location: NC/USA
Distribution: RH6.1
Posts: 6
Original Poster
Rep:
|
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
|
|
|
09-15-2001, 07:11 PM
|
#11
|
LQ Newbie
Registered: Sep 2001
Location: NC/USA
Distribution: RH6.1
Posts: 6
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 03:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|