How to connect two private network in redhat?for example 10.0.0.0 and 192.168.0.0?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Also look at the route command or ip command for setting routes. You should indicate which Linux distro you have.
RPM based distro's have files in /etc/sysconfig/ you can edit. Debian based distros have a file in /etc/ that configures the network.
Squid is a proxy server, not a router. If you configure squid as a reverse proxy to cache web traffic, its IP address would be used to access web sites instead of the gateway. You may need to enable forwarding so that both networks can reach your proxy server address, or listen on both interfaces. In either case, you will have routes configured anyway. A squid server would be in addition to routing. The router works on the IP layer. A squid server works at the application layer. So you are comparing apples and strudel.
Thank you for clearing my confusion jschiwal,i enabled forwarding on pc where squid is also installed but still two network can't ping eachother,so do i have to enable forwarding on other two network pc also?
there are several possibilities, like nat, port forwarding or simple routing.
As far as I see you have two network card, one is configured in 10.0.0.0, the other is 192.168.0.0.
This host has 2 ip adresses (both NIC have one).
in 10.0.0.0 you need to configure a gateway to 192,168.0.0. This will be your RH (the 10.0.* NIC) and this host will route the requests to the other NIC. I do not know if you have DHCP, DNS or other related softwares installed. Also do you have internet access also, or other communications?