networking mandrake to windows via ethernet crossover cable
Linux - NetworkingThis 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.
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.
networking mandrake to windows via ethernet crossover cable
hello, i'm rather new to linux and am currently running 2 dual boot machines on my small "network"
i have these 2 computers connected directly using a crossover cable connecting each machine's ethenet (nic) cards. then on the gateway (my faster of the 2 comps) i have a second ethernet card (this machine)
now to start, this comp has windows xp for the main boot and mandrake linux 10
the other machine's running windows 98 and mandrake 9.2. i was able to get the network running with a shared internet connection working quite successfully using the xp's network configuration wizard on both machine's windows install. however with linux it's a different problem. i've run mandrake's internet connection sharing wizard so many time's it's sick, and have configured them many times over. the internet works on this machine, but on the client the internet won't work in either windows or linux. i'm about ready to give up, honestly i've done everything i can possibly think of and it still doesn't work. . .any help would be greatly appreaciated. if more information is needed, please ask.
basically, on my eth1 (internet connection) it works fine, as a matter of fact i did the original post in linux. however reguarding setting my machine as a dhcp server, no i didn't do that, didn't know i had to. i did notice that the mandrake connection sharing wizard did install a few packages, including samba and squid. i think i might have them configured correctly.
now reguarding the ip address, it does have one, at least on this end, says the ip address for my ethernet card (eth0), configured statically. i tried using dhcp for that card but it didn't work. i figured that's because that's not an internet connection, so therefore no dhcp server to resolve from. setting one up, now that you raise the point, might fix the problem. again i'm still quite new to linux and although i've gotten decent at making it work, networking to it has been horrible. anyways, i'm not sure how to ping in linux, maybe by typing ping, i don't know for certain. anyways, as far as an ip address to ping to, i'm not sure, i only have the ip of the ethernet card (eth0) connected to it on this end, than the other end configured to use this comp as a gateway. i have looked at the network monitoring utility in kde and it definitely has activity on that connection. however the comps actually "talking" to eachother isn't happening. i can't access the network shares on that comp nor can it access the internet like it can in winblows.
Last edited by happyoutkast; 05-03-2004 at 12:16 AM.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
You need to configure the second NIC on the gateway (in this case, eth0 apparently) with the IP 192.168.0.1, give it a subnet mask of 255.255.255.0. On the second computer, give eth0 an IP of 192.168.0.2, and subnet mask 255.255.255.0, and (the important part) gateway of 192.168.0.1.
This is a static configuration, but it's very simple and a "no-brainer".
This is, of course, assuming that eth1 on the main box is getting an IP other than 192.168.0.something. If eth1 is already getting an IP on that subnet, then you need to use a different subnet for eth0. Try 10.0.0.1, same netmask, the second computer will use 10.0.0.2, same netmask, and gateway of 10.0.0.1.
Come to think of it, before you do anything else boot both machines into Linux. On each one, do
$ ifconfig -a
then cut and paste the output here. That way we can see if they're already configured correctly or not. The last part you'll have to do is enable IP forwarding on the "gateway" machine. With IP forwarding on, you should definitely setup a firewall too.
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
Squid...kind of rubbery but good!
Another thing to note is that you installed squid. Squid is a caching proxy server... what that means don't worry about.
Know this though, you should be able to go into your proxy settings on your workstation to which you are trying to share you internet connection and put in the IP of your gateway machine as well as the port on which squid is running (3128 by default) and you should be able to get an internet connection.
Acting as a router and acting as a proxy server are two completely different things. We may be trying to make a router out of a proxy here.
Actually, i should clarify, i didn't install squid, the mandrake "internet connection sharing wizard" did. why it did i don't know. . .so far that static configuration sounds good and easy. . .not sure if winblows will allow me to specify ports for a gateway, and i need this to work for both winblows and linux, since they're both dual boot machines. (trying to wean people from winblows is hard, especially when certain windows games WILL NOT work in linux. . .)
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Squid only proxies HTTP traffic, and by default it's not a transparent proxy (at least that I have seen--you would need iptables setup to do that). You can edit the proxy settings in your browser configuration, but it shouldn't matter. Squid can't block your Internet access.
ah well, that problem has been replaced my a more serious problem. i updated to mandrake 10, booted into it and it worked fine. . .and i didn't change any settings other than trying to get the network to work. . .but either ways my old 9.2 desktop settings, etc were still there
then i went to go back into it and i get an error when i try to start x:
connection reset by peer, no screens found for device (or something similar, i really don't know too much in linux command line, so i've been forced to work in windows lately. . .)
annoying, for sure, have no clue how to fix it, i think mandrake 10 had a pre-release of x. . .all i can think is to reinstall x, i've already run xf86config many times and it still doesn't work, i have noticed that instead of the old XF86Config file it's not XF86Config-4. . . .why this happens to me i don't know, didn't adjust any x settings, hardware's still the same. . .it just decided that it didn't want to work. . .heh
WOW I FIXED IT!!! i'm in linux with x running, how did i know the install chose a driver that didn't exist. changed my driver back to nv instead of nvidia like it had it and it works now!!! cool, i fixed someting. . .now if the interenet connection sharing would work that would rock!!!
to prevent spam i edited this current message: i typed ifconfig -a and of course in case the previous message was mistyped i keyed in ipconfig -a as well. . .i got this: "bash: ifconfig: command not found" i also configured the winblows machine statically with ip address 196.152.0.156 (to mimmick winblows settings) and gateway 192.156.0.1 (this machine) and . . . .the internet still doesn't work on the client machine. . .i just about give up, i really thought this was supposed to work easier. but unfortunately i have to admit, when it comes to setting up a network, winblows makes it much easier. . .
Last edited by happyoutkast; 05-07-2004 at 12:33 AM.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
/sbin might not be in your path, try /sbin/ifconfig -a
You didn't indicate that you've checked IP forwarding yet, so it's quite possible that everything else was configured correctly but you just didn't enable forwarding.
honestly, i never saw the option for ip forwarding, so it's possible it hasn't been set. where do you set it at? actually i don't know command line in linux too much at all, so i've been doing this all under x running kde.
strangely enough, i went back into linux today and just typed ifconfig -a in my terminal window and got this. honestly i don't know why it suddently decided to work, kind of like x suddenly deciding not to work. anyways, for your information here it is, the output:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.