Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
For two days now I'm fighting to get this done (and the wife is waiting )
I've got three pc's. Two win 2000 and 1 new server, that I'm trying to put Mandrake 9.0 on. Installation works fine.
It contains two networkcards, eth0 and eth1. Eth1 is the cable modem and is setup as DHCP to obtain an address from the provider. The eth0 is setup as local network (connected to a hub) as 192.168.0.1. No problems here. Internet on the server works fine.
Now, all I want is share my internet connection with the other two pc's. So, I went into the configuration setup, selected sharing, and let Mandrake figur it out. (this is all EXACTLY THE SAME as I did with Mandrake 8.0 long time ago)
This is where shit hits the fan. eth0 is suddenly changed to 192.168.1.1 and the gateway is set to 192.168.0.1.
That doesn't make any sense to me, especially since my old pc (mandrake 8.0) is sitting next to me, and I'm checking all settings on it. On that one, eth0 is set to 192.168.0.1 and so is the gateway!
Anyway, no connection sharing, and worse, I even loose the whole internet connection on the server itself!
I switched shorewall off, stop and clear to make sure it's not there...nothing helps. I'm going to reinstall it for the 5th time now, and would like to do it right this time
There must be 12 million people out there who experienced the same problems, could anyone help this dummy out? (step by step)
(dummy or not, Mandrake 9.0 SUCKS for having this shorewall firewall in stead of the wonderfull firestarter on 8.0. At least I could SEE what it does....maybe they'll learn someday )
Thanks for your time Tcaptain, I was about to throw it out the window LOL
When I type dhcpcd eth1 it sais it already running. Yes, netconf shows eth1 to be DHCP be default, no IP address has been typed in. (apart from the submask)
I can try instaling firestarter again, but when I tried this last time, it told me it had many files missing on my system, so I left it there.
Unfortunately I don't seem to be able to install Mandrake 8.0 as well, it doesn't seem to like this system (doesn't read the cd's)
In the mean time I told my other machine to pick it own IP and did some pinging. It pings to both the network cards on my Linuxserver, but that it. Ipv4 is on, double checked.
One weird thing I noticed is, although dhcp seems to be running, when looking at the Mandrake control center, under connections, it leaves my gateway blank, and I used to recall that being filled in with the IP of my LANcard (192.168.0.1) on my old machine.
Mmmm.. I guess I need to understand hwo this works exactly. Let's see if I got this right:
eth0 is 192.168.0.1 LAN
eth1 is 80.??.??.?? CABLE
eth0 is set to static! and eth1 is set to DHCP.
I would think the DHCP for the other pc needs to come from eth0 right? He needs to issue a number between 192.168.0.16 and 192.168.0.253 right? (or wrong)
Now, what is the gateway? (on my old pc it showed the 192.168.0.1 address but that won't work...don ask me why) Now, when I force the gateway to be 192.168.0.1 the LAN eth0 connection goes down, so that shows he's not happy right?
I already had an internet connection (that why I'm typing now ) so, when I type your dhcpcd eth1 command it shows it running,. and it is indeed.
So, I guess my questions would be, do I need a gateway? If yes, what IP number should it have? What IP should I give my eth0 (I guess I can leave that at 192.168.0.1)?
I noticed yesterday, that when I let Mandrake autoconfigure my settings, it creates a gateway of 192.168.1.1 ? Why would it do that and is that the reason why my other pc don receive an IP?
In the mean time Il see if I can find it and install it. I know the firewall that came with MD 8.0 had simular issues, and this Firestarter simply took over the settings. However, MD 9.0 is using IPTables, while I thought MD8.0 used IPChains. Also, the firewall is turned off completely now, I guess I should be able to do without right?
Well, I guess it good to know my problem is so complicated it not fixed yet.
Ie seen this problem described on the net a zillion times, you would think by now someone has a step-by-step fix for this?
I installed mandrake 9 after using the sme e-smith redhat server as a gateway for the passed year after i discovered that it could use my isdn card think finally i could use my isdn line.
hahah - what a waste of time.
mandrake can use the card all right - as long as i dont try and install internet connection sharing(isdn card is asuscom/askey type 35) anyhow as soon as i try that the card settings are distroyed. (I then spent 1/5 weeks downloading redhat 8 (5 discs)
(well i had to fall back on a laptop running win98 and an intenal modem and net vampire to get them)
guess what - isdn runs on red hat but how can i set up internet shareing on that. I have been spoilt for to long with mandrakes drakgw and drakconnect if I have wanted to set sharing with a standard modem.
Can anyone shed some light on setting this up with redhat - nice new graphics on the desktop.
I downloaded iptables from netfilter.org. DHCP daemon came on the slack disk I think. Then I grabbed a lightweight DNS cacher. And finally a script from no-ip so I could have a cool adress like foobar.ath.cx
Then I read like a few HOWTOs and manpages, configged the dhcp daemon, and tried it out. My other computers were getting good IPs so I went on...
To recompile the kernel and compile iptables. Then I put 1 in that ip_forward thingy somewhere in /proc/networksomething/something/
Then I read another few HOWTOs and manpages, learned iptables, set it up for masquerade. This is where it started routing. It had no DNS but i could ping an IP outside.
Finished up with config of the DNS cacher and the no-ip script.
That's pretty much your long way. But hey, you learn a lot... Now I know how to use iptables to set up any firewall rule I feel like
All of this takes about a day of work or so to do..
This is probably why not many people can help you. You want a simple solution.. Microsoft has spoiled y'all
Sorry RJL, I've been away for a few days and today's the first time on a PC in a week...well maybe not the first time on a PC...but the first time I could go and check LQ (eek, 42 pages of stuff to scroll through).
Anyway, I wanted to know if you had solved your original issue...and if not, what did Mdk say was missing for firestarter?
Thanks for your responses. Xyko, I do understand that we are spioled using win, but when any package gives me a button like ICS, it should work instantly, or just take away the button. Strange enough...Mandrake 8.0 worked. Although it also installed a firewall, after a installed firestarter it overwrote the iptable settings etc. and worked instanlty when I opened the proper ports. That I can handle. But take a look at your own story LOL...for a newbie like me that takes ages...
Tha last thing I did was installing Guarddog, which looks even better then firestarter and has a decent GUI. Halfway, Gaurddog asks you to make sure all your connections work, like local, and ICS. You can simply click on disable firewall and test it. That didin't work. So, what I'm trying to say is, non of these programs seemed to have succeeded in sharing the internet, regardless of firewalls etc. (that's what it looks to me...)
After 6 days I gave up, and right now I'm back to my good old Mandrake 8.0 pc, which I hadn't sold yet.
I do like to play around with this very much, and I'm not scared of learning a thing or two, but for my regular job a travell around the world most of the time. Every once in a while I get a week or two off, like these two weeks. If you have to mess around with a pc for 1 of those 2 weeks, wifes have a tenedancy of getting mad...(and they're right ) That's why I gave up, I need the access to my own server from all over the world, and I could not get it done, so...back to 0. I simply do not have the time to let this take days in stead off hours.
And altough I'm very much in favour of Linux (there's a reason why I'm here) to me it seems they are not even close to having simple things like this under control, and that suprises me (read: dissapoints me) very much.
ICS is the second basics of each operating system.....and it should work