Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
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.
I have a cable modem and two Ethernet cards. eth0 is 192.168.0.1 and is connected to a hub, to which my other computer is also connected. Here are its settings:
eth1 is connected to the cable modem and gets its IP address from DHCP.
The client computer is already set up correctly.
Now I can't seem to get NAT working to save my life. Can someone please tell me what I need to do? I've tried /sbin/iptables with various arguments, but nothing ever seems to get it working. I must be passing the wrong arguments somewhere along the way. I've searched Google a zillion times, and apparently nothing has been clear enough for me.
It sounds like the same set up I have on my home network with a cable modem. I use the script from http://linuxselfhelp.com/HOWTO/IP-Ma...-examples.html web page. I put it into a file and make it excuteable, then run it. That should let all the computers run on the single modem.
Unfortunately, it's still not working. As it turns out, my computers aren't even seeing each other under Linux. They fail to ping each other. I tried resetting my hub, but that didn't help. They work fine under Windows XP (and Internet connection sharing works).
The client's IP (192.168.0.2) is set manually, not by DHCP. I can't imagine why RH won't see it (or vice versa). Any ideas?
You have a dedicated nic for the local lan - properly 192.168.0.1 on the host. If you are using static (hard coded) IP address on the other computer, make sure the gateway is 192.168.0.1 on those computers with the same submask address (usually 255.255.255.0 ) .
I use hardcoded address on all the computers and I had to hardcode the DNS(Domain Name Server) on the client computer to make them work on the internet. You can get those addresses from the host computer that on the internet.
I've done all that. Unfortunately, a simple *ping* doesn't even produce any results. I don't understand it, since it all works under Windows. Oh well. I may just have to give up and buy a router. (It's either that or reboot into Windows whenever my wife wants to use the Internet.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.